An offloaded flow never reaches the CPU, so tcpdump cannot see it.
Implement port_mirror_add and port_mirror_del on the switch's ingress and
egress analyzer ports. Each direction has its own analyzer, so an ingress
and an egress mirror can go to different ports, as mv88e6xxx does with
ingress_dest_port and egress_dest_port; a second mirror of one direction to
another port is refused. The enable bit is counted per port and direction.
On IPQ8074 a mirrored LAN port delivers a forwarded download to the
analyzer.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
Link: https://github.com/openwrt/openwrt/pull/25700
Signed-off-by: Robert Marko <robimarko@gmail.com>