]> git.baikalelectronics.ru Git - kernel.git/commit
net: core: rename indirect block ingress cb function
authorJohn Hurley <john.hurley@netronome.com>
Thu, 5 Dec 2019 17:03:34 +0000 (17:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Dec 2019 04:45:09 +0000 (20:45 -0800)
commit66a43eecc09628bda4c78f8d512f561cf1d6630b
tree2495bdc15102c3b5b3fac309d84a5659fc4fb5e4
parentae41e7839e6e544fee91e8f3129c530684a35208
net: core: rename indirect block ingress cb function

With indirect blocks, a driver can register for callbacks from a device
that is does not 'own', for example, a tunnel device. When registering to
or unregistering from a new device, a callback is triggered to generate
a bind/unbind event. This, in turn, allows the driver to receive any
existing rules or to properly clean up installed rules.

When first added, it was assumed that all indirect block registrations
would be for ingress offloads. However, the NFP driver can, in some
instances, support clsact qdisc binds for egress offload.

Change the name of the indirect block callback command in flow_offload to
remove the 'ingress' identifier from it. While this does not change
functionality, a follow up patch will implement a more more generic
callback than just those currently just supporting ingress offload.

Fixes: b0b9f858a275 ("nfp: flower: allow offloading of matches on 'internal' ports")
Signed-off-by: John Hurley <john.hurley@netronome.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow_offload.h
net/core/flow_offload.c
net/netfilter/nf_tables_offload.c
net/sched/cls_api.c