diff options
author | John Hurley <john.hurley@netronome.com> | 2018-06-25 23:30:08 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-26 16:21:33 +0200 |
commit | 530d995123fe647d28566d81ff9562fe6cbaff94 (patch) | |
tree | 79fab6fd5c0c3827713f8176b01b769e309a7d3f /net/tipc | |
parent | net: sched: cls_matchall: implement offload tcf_proto_op (diff) | |
download | linux-530d995123fe647d28566d81ff9562fe6cbaff94.tar.xz linux-530d995123fe647d28566d81ff9562fe6cbaff94.zip |
net: sched: cls_u32: implement offload tcf_proto_op
Add the offload tcf_proto_op in cls_u32 to generate an offload message for
each filter and the hashtable in the given tcf_proto. Call the specified
callback with this new offload message. The function only returns an error
if the callback rejects adding a 'hardware only' rule.
A filter contains a flag to indicate if it is in hardware or not. To
ensure the offload function properly maintains this flag, keep a reference
counter for the number of instances of the filter that are in hardware.
Only update the flag when this counter changes from or to 0.
Signed-off-by: John Hurley <john.hurley@netronome.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions