net: use flow_indr_dev_setup_offload()
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 29 May 2020 00:25:37 +0000 (02:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2020 18:41:12 +0000 (11:41 -0700)
commit0fdcf78d59737939ea449b512d02c3733a22c8e1
tree7299c4e11d60a47c901395322f74b8c0d1f097fd
parent324a823b9962a0f290c40fb6314926d434193276
net: use flow_indr_dev_setup_offload()

Update existing frontends to use flow_indr_dev_setup_offload().

This new function must be called if ->ndo_setup_tc is unset to deal
with tunnel devices.

If there is no driver that is subscribed to new tunnel device
flow_block bindings, then this function bails out with EOPNOTSUPP.

If the driver module is removed, the ->cleanup() callback removes the
entries that belong to this tunnel device. This cleanup procedures is
triggered when the device unregisters the tunnel device offload handler.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_flow_table_offload.c
net/netfilter/nf_tables_offload.c
net/sched/cls_api.c