diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2021-11-26 17:36:12 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-12-08 03:05:55 +0300 |
commit | d43b75fbc23f0ac1ef9c14a5a166d3ccb761a451 (patch) | |
tree | 051cce4cbd1d2dfe62a42b0c4e793580a0079e69 /scripts/Makefile.package | |
parent | b43c2793f5e9910862e8fe07846b74e45b104501 (diff) | |
download | linux-d43b75fbc23f0ac1ef9c14a5a166d3ccb761a451.tar.xz |
vrf: don't run conntrack on vrf with !dflt qdisc
After the below patch, the conntrack attached to skb is set to "notrack" in
the context of vrf device, for locally generated packets.
But this is true only when the default qdisc is set to the vrf device. When
changing the qdisc, notrack is not set anymore.
In fact, there is a shortcut in the vrf driver, when the default qdisc is
set, see commit dcdd43c41e60 ("net: vrf: performance improvements for
IPv4") for more details.
This patch ensures that the behavior is always the same, whatever the qdisc
is.
To demonstrate the difference, a new test is added in conntrack_vrf.sh.
Fixes: 8c9c296adfae ("vrf: run conntrack only in context of lower/physdev for locally generated packets")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Florian Westphal <fw@strlen.de>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'scripts/Makefile.package')
0 files changed, 0 insertions, 0 deletions