]> 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)
commit2bf55220e8d4c8f05cbd27d5e5f2ae3a8eb8b703
tree278c626250b08201614fe8272cb819c1d8a3348b
parentf75d58b6aa650b4d273b9e8ae3ac7249f5c56e67
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: d756d80c98a9 ("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