]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 28 Jan 2022 09:59:56 +0000 (10:59 +0100)
commit6b3d86da24c7064a8fefc1c11a7fadb0b1c9bc83
tree4b3627042965ad7cdcfaf08923c4aa398f2d79e2
parent9dd8e692d80c40028872b6955ef16e7de333540e
net: openvswitch: Fix matching zone id for invalid conns arriving from tc

BugLink: https://bugs.launchpad.net/bugs/1959376
[ Upstream commit 635d448a1cce4b4ebee52b351052c70434fa90ea ]

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: d29334c15d33 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
include/linux/skbuff.h
net/openvswitch/flow.c
net/sched/cls_api.c