Merge branch 'net-sched-fix-ct-zone-matching-for-invalid-conntrack-state'
authorJakub Kicinski <kuba@kernel.org>
Sat, 18 Dec 2021 02:06:39 +0000 (18:06 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 18 Dec 2021 02:06:40 +0000 (18:06 -0800)
commit14193d57c81456541256e2545865d0f9536794eb
tree278c626250b08201614fe8272cb819c1d8a3348b
parent8ca4090fec0217bcb89531c8be80fcfa66a397a1
parent635d448a1cce4b4ebee52b351052c70434fa90ea
Merge branch 'net-sched-fix-ct-zone-matching-for-invalid-conntrack-state'

Paul Blakey says:

====================
net/sched: Fix ct zone matching for invalid conntrack state

Currently, when a packet is marked as invalid conntrack_in in act_ct,
post_ct will be set, and connection info (nf_conn) will be removed
from the skb. Later openvswitch and flower matching will parse this
as ct_state=+trk+inv. But because the connection info is missing,
there is also no zone info to match against even though the packet
is tracked.

This series fixes that, by passing the last executed zone by act_ct.
The zone info is passed along from act_ct to the ct flow dissector
(used by flower to extract zone info) and to ovs, the same way as post_ct
is passed, via qdisc layer skb cb to dissector, and via skb extension
to OVS.

Since adding any more data to qdisc skb cb, there will be no room
for BPF skb cb to extend it and stay under skb->cb size, this series
moves the tc related info from within qdisc skb cb to a tc specific cb
that also extends it.
====================

Link: https://lore.kernel.org/r/20211214172435.24207-1-paulb@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>