]> git.baikalelectronics.ru Git - kernel.git/commit
net: openvswitch: Fix matching zone id for invalid conns arriving from tc
authorPaul Blakey <paulb@nvidia.com>
Tue, 14 Dec 2021 17:24:35 +0000 (19:24 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 18 Dec 2021 02:06:36 +0000 (18:06 -0800)
commitbbb017a56d5d0ff1eeb31407d1fd37b8809a41de
tree278c626250b08201614fe8272cb819c1d8a3348b
parent44430ad95f0bf2b985d737ffe617791c8bd41384
net: openvswitch: Fix matching zone id for invalid conns arriving from tc

Zone id is not restored if we passed ct and ct rejected the connection,
as there is no ct info on the skb.

Save the zone from tc skb cb to tc skb extension and pass it on to
ovs, use that info to restore the zone id for invalid connections.

Fixes: 903b260bafc1 ("net/sched: act_api: fix miss set post_ct for ovs after do conntrack in act_ct")
Signed-off-by: Paul Blakey <paulb@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/skbuff.h
net/openvswitch/flow.c
net/sched/cls_api.c