Skip to content

netfilter: preserve bridge egress VLAN tags

Andrea Parri bridge lkml netdev netfilter-devel stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v11 patch 3 repliesSuperseded

Changes in v2 from the cover letter

- 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.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2netfilter: br_netfilter: restore VLAN tag on refragmented IPv6 packetsnet/bridge/br_netfilter_hooks.c+21 -240 replies
2/2netfilter: br_netfilter: clear stale VLAN tag on refragmented packetsnet/bridge/br_netfilter_hooks.c+5 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH nf v2 0/2] netfilter: preserve bridge egress VLAN tags

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/[email protected]/

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(-)
Signature · 1 line
2.53.0