]> 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)
commite1f3a44f5edeeb3beb9ce89f7f03477734a8b0d9
tree6abaf6b26a219230d6d4d9a62515c27e3b4f03f7
parentc953033dfc7d5b09ffce7675f3c0cdb8a1e8094f
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