summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMaxime Chevallier <maxime.chevallier@bootlin.com>2026-09-17 23:53:35 +0200
committerJakub Kicinski <kuba@kernel.org>2026-09-22 18:51:17 -0700
commit960db6f65788c21249ea04a947d5c01e38d19294 (patch)
treedf3642cf4363a4d03dc5e160334c0a7d5be95471 /tools/perf/scripts/python
parentba804b23d76d278ee475b8427fa7c5623ce5e270 (diff)
downloadlinux-960db6f65788c21249ea04a947d5c01e38d19294.tar.gz
linux-960db6f65788c21249ea04a947d5c01e38d19294.zip
net: stmmac: selftests: Capture all packets for vlan checks
While we use vlan_vid_add to trigger the tag filtering machinery in the driver, there's no netdev associated to the VLAN. This causes the skb to arrive with empty skb->vlan_tci fields, as the packet is marked OTHERHOST in __netif_receive_skb_core(), and we fail our validation. Let's use the proxy mechanism introduced for DSA, that registers a ETH_P_ALL packet handler that runs earlier, before the vlan netdev lookup, then filters for the correct ethertype before passing an skb clone to our validation function. As we may receive external frames with the right tag from the outside, let's move the address check in the vlan validation function earlier. Fixes: 091810dbded9 ("net: stmmac: Introduce selftests support") Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de> Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com> Link: https://patch.msgid.link/20260917215339.2022523-5-maxime.chevallier@bootlin.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions