summaryrefslogtreecommitdiff
path: root/include/net/flow_offload.h
diff options
context:
space:
mode:
authorwenxu <wenxu@ucloud.cn>2020-06-18 20:49:09 +0800
committerDavid S. Miller <davem@davemloft.net>2020-06-19 20:12:58 -0700
commit66f1939a1b705305df820d65f4d9a8457d05759c (patch)
tree056c00a6747398a6c196af346e08d744063a8e19 /include/net/flow_offload.h
parent26f2eb27d081081dbea6d3c11602c9ece36f4d9c (diff)
downloadlwn-66f1939a1b705305df820d65f4d9a8457d05759c.tar.gz
lwn-66f1939a1b705305df820d65f4d9a8457d05759c.zip
flow_offload: use flow_indr_block_cb_alloc/remove function
Prepare fix the bug in the next patch. use flow_indr_block_cb_alloc/remove function and remove the __flow_block_indr_binding. Signed-off-by: wenxu <wenxu@ucloud.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/flow_offload.h')
-rw-r--r--include/net/flow_offload.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net/flow_offload.h b/include/net/flow_offload.h
index bf4343042956..1961c7982273 100644
--- a/include/net/flow_offload.h
+++ b/include/net/flow_offload.h
@@ -545,7 +545,9 @@ static inline void flow_block_init(struct flow_block *flow_block)
}
typedef int flow_indr_block_bind_cb_t(struct net_device *dev, void *cb_priv,
- enum tc_setup_type type, void *type_data);
+ enum tc_setup_type type, void *type_data,
+ void *data,
+ void (*cleanup)(struct flow_block_cb *block_cb));
int flow_indr_dev_register(flow_indr_block_bind_cb_t *cb, void *cb_priv);
void flow_indr_dev_unregister(flow_indr_block_bind_cb_t *cb, void *cb_priv,