diff options
| author | Florian Fainelli <florian.fainelli@broadcom.com> | 2026-11-18 10:40:04 -0800 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-11-26 12:50:40 +0100 |
| commit | ae8e5ef9fa9eeaf4ee0a9a9bde0fc63023d9b154 (patch) | |
| tree | 153aae5a04fb78ffc0f888ff53b1cc48abb1e81c /tools/perf/scripts/python | |
| parent | 6fa8b41044484c3c59a28b3b380613ccc0e69d40 (diff) | |
net: dsa: tag_brcm: fix link-local detection with a prepended tag
brcm_tag_rcv_ll() checks eth_hdr(skb)->h_dest to avoid marking link-local
frames as forwarded by the switch. With a prepended tag, eth_type_trans()
sets the MAC header at the start of the tag, so the address checked is the
tag plus the first two bytes of the real destination address. Link-local
frames such as BPDUs, LLDP or EAPOL are then not recognized and get
skb->offload_fwd_mark set, which keeps the bridge from forwarding them in
software to the other ports of the switch when it is configured to do so.
Read the destination address after the tag instead when the tag is
prepended. Tags embedded after the source address are not affected.
Fixes: 762e7e174da9 ("net: dsa: tag_brcm: do not mark link local traffic as offloaded")
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20261118184004.1916105-1-florian.fainelli@broadcom.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
