]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: act_ct: Fill offloading tuple iifidx
authorPaul Blakey <paulb@nvidia.com>
Mon, 3 Jan 2022 11:44:50 +0000 (13:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Jan 2022 12:12:55 +0000 (12:12 +0000)
commit0b4775375e46bdd92b3bf02a5b3af990e77aba56
tree6abaf6b26a219230d6d4d9a62515c27e3b4f03f7
parent8a6b670cf9e000be08b29e98ce1bde8b93cd0ac0
net/sched: act_ct: Fill offloading tuple iifidx

Driver offloading ct tuples can use the information of which devices
received the packets that created the offloaded connections, to
more efficiently offload them only to the relevant device.

Add new act_ct nf conntrack extension, which is used to store the skb
devices before offloading the connection, and then fill in the tuple
iifindex so drivers can get the device via metadata dissector match.

Signed-off-by: Oz Shlomo <ozsh@nvidia.com>
Signed-off-by: Paul Blakey <paulb@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netfilter/nf_conntrack_act_ct.h [new file with mode: 0644]
include/net/netfilter/nf_conntrack_extend.h
net/netfilter/nf_conntrack_core.c
net/sched/act_ct.c