OSDN Git Service

net/sched: act_ct: Offload established connections to flow table
authorPaul Blakey <paulb@mellanox.com>
Tue, 3 Mar 2020 13:07:50 +0000 (15:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Mar 2020 23:09:12 +0000 (15:09 -0800)
commit64ff70b80fd403110b67dd9f7184a604fdb0da43
treee23d458c22cc9e7d178a993489948b1b56b62f96
parentc34b961a249211bdb08d03bdecfb31ff22eb002f
net/sched: act_ct: Offload established connections to flow table

Add a ft entry when connections enter an established state and delete
the connections when they leave the established state.

The flow table assumes ownership of the connection. In the following
patch act_ct will lookup the ct state from the FT. In future patches,
drivers will register for callbacks for ft add/del events and will be
able to use the information to offload the connections.

Note that connection aging is managed by the FT.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_ct.c