mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH nf v2 0/2] netfilter: preserve bridge egress VLAN tags
@ 2026-10-04 21:24 Andrea Parri
  2026-10-04 21:24 ` [PATCH nf v2 1/2] netfilter: br_netfilter: restore VLAN tag on refragmented IPv6 packets Andrea Parri
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Andrea Parri @ 2026-10-04 21:24 UTC (permalink / raw)
  To: Pablo Neira Ayuso, Florian Westphal, netfilter-devel
  Cc: Andrea Parri, Phil Sutter, Nikolay Aleksandrov, Ido Schimmel,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Simon Horman, Bernhard Thaler, coreteam, bridge, netdev,
	linux-kernel

Conntrack-reassembled packets forwarded by a VLAN-aware bridge must
retain the VLAN state selected for their egress port when br_netfilter
refragments them.

The first patch saves the VLAN metadata for IPv6 as well as IPv4. The
second clears stale ingress tags on reused fragments when the egress
packet is untagged.

Both patches were tested under virtme-ng on a VLAN-aware bridge with
br_netfilter and nftables conntrack. With the series applied, all
fragments have the expected tag. The test is available on request.

Changes in v2:
  - Add a second fix to clear stale ingress VLAN tags from reused
    frag_list skbs on untagged egress.
  - Document the reproduced symptoms and the separate IPv4 and IPv6
    origins, narrow the first fix's claim to newly built fragments,
    reword the helper comment, and make the helper take a const skb.

v1: https://lore.kernel.org/all/20260928161830.351199-1-parri.andrea@gmail.com/

Andrea Parri (2):
  netfilter: br_netfilter: restore VLAN tag on refragmented IPv6 packets
  netfilter: br_netfilter: clear stale VLAN tag on refragmented packets

 net/bridge/br_netfilter_hooks.c | 51 +++++++++++++++++----------------
 1 file changed, 26 insertions(+), 25 deletions(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-10-04 21:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-04 21:24 [PATCH nf v2 0/2] netfilter: preserve bridge egress VLAN tags Andrea Parri
2026-10-04 21:24 ` [PATCH nf v2 1/2] netfilter: br_netfilter: restore VLAN tag on refragmented IPv6 packets Andrea Parri
2026-10-04 21:24 ` [PATCH nf v2 2/2] netfilter: br_netfilter: clear stale VLAN tag on refragmented packets Andrea Parri
2026-10-04 21:29 ` [PATCH nf v2 0/2] netfilter: preserve bridge egress VLAN tags netdev-bot+sinfo
2026-10-04 21:42   ` Andrea Parri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®