OSDN Git Service

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)
commit9795ded7f924b6486e54976619b1b094fcc1969d
tree6abaf6b26a219230d6d4d9a62515c27e3b4f03f7
parent9d2c27aad0ea2c84413d0971be7fa340ba4617bc
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