diff options
author | Vlad Buslov <vladbu@mellanox.com> | 2019-08-26 16:45:01 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-26 14:17:43 -0700 |
commit | c9f14470d04830de217f9d28fcd0deffd7e8c0b1 (patch) | |
tree | c9872a94afc6f2b5c92c1452d8144024c25c4fec /include/net/flow_offload.h | |
parent | a449a3e77a85fc8b31fef7238451dc87af8ff1af (diff) | |
download | linux-stable-c9f14470d04830de217f9d28fcd0deffd7e8c0b1.tar.gz linux-stable-c9f14470d04830de217f9d28fcd0deffd7e8c0b1.tar.bz2 linux-stable-c9f14470d04830de217f9d28fcd0deffd7e8c0b1.zip |
net: sched: add API for registering unlocked offload block callbacks
Extend struct flow_block_offload with "unlocked_driver_cb" flag to allow
registering and unregistering block hardware offload callbacks that do not
require caller to hold rtnl lock. Extend tcf_block with additional
lockeddevcnt counter that is incremented for each non-unlocked driver
callback attached to device. This counter is necessary to conditionally
obtain rtnl lock before calling hardware callbacks in following patches.
Register mlx5 tc block offload callbacks as "unlocked".
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/flow_offload.h')
-rw-r--r-- | include/net/flow_offload.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/flow_offload.h b/include/net/flow_offload.h index 757fa84de654..fc881875f856 100644 --- a/include/net/flow_offload.h +++ b/include/net/flow_offload.h @@ -284,6 +284,7 @@ struct flow_block_offload { enum flow_block_command command; enum flow_block_binder_type binder_type; bool block_shared; + bool unlocked_driver_cb; struct net *net; struct flow_block *block; struct list_head cb_list; |