summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/netronome/nfp/flower/metadata.c
diff options
context:
space:
mode:
authorJohn Hurley2018-11-10 06:21:29 +0100
committerDavid S. Miller2018-11-11 18:54:53 +0100
commit3166dd07a9cba5447a9d7507a988e2eb37a04f95 (patch)
treed51a3ea773e675248593c8feebfecbfcb682dc05 /drivers/net/ethernet/netronome/nfp/flower/metadata.c
parentnfp: flower: increase scope of netdev checking functions (diff)
downloadkernel-qcow2-linux-3166dd07a9cba5447a9d7507a988e2eb37a04f95.tar.gz
kernel-qcow2-linux-3166dd07a9cba5447a9d7507a988e2eb37a04f95.tar.xz
kernel-qcow2-linux-3166dd07a9cba5447a9d7507a988e2eb37a04f95.zip
nfp: flower: offload tunnel decap rules via indirect TC blocks
Previously, TC block tunnel decap rules were only offloaded when a callback was triggered through registration of the rules egress device. This meant that the driver had no access to the ingress netdev and so could not verify it was the same tunnel type that the rule implied. Register tunnel devices for indirect TC block offloads in NFP, giving access to new rules based on the ingress device rather than egress. Use this to verify the netdev type of VXLAN and Geneve based rules and offload the rules to HW if applicable. Tunnel registration is done via a netdev notifier. On notifier registration, this is triggered for already existing netdevs. This means that NFP can register for offloads from devices that exist before it is loaded (filter rules will be replayed from the TC core). Similarly, on notifier unregister, a call is triggered for each currently active netdev. This allows the driver to unregister any indirect block callbacks that may still be active. Signed-off-by: John Hurley <john.hurley@netronome.com> Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/netronome/nfp/flower/metadata.c')
0 files changed, 0 insertions, 0 deletions