diff options
author | 2024-10-23 16:52:51 +0300 | |
---|---|---|
committer | 2024-10-30 17:33:55 -0700 | |
commit | 49a09073cb23e02f57aa53cf6b9da3c888ab4713 (patch) | |
tree | 999ab1127043ae5436b1aca1bc829b3f56438df2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: dsa: allow matchall mirroring rules towards the CPU (diff) | |
download | wireguard-linux-49a09073cb23e02f57aa53cf6b9da3c888ab4713.tar.xz wireguard-linux-49a09073cb23e02f57aa53cf6b9da3c888ab4713.zip |
net: mscc: ocelot: allow tc-flower mirred action towards foreign interfaces
Debugging certain flows in the offloaded switch data path can be done by
installing two tc-mirred filters for mirroring: one in the hardware data
path, which copies the frames to the CPU, and one which takes the frame
from there and mirrors it to a virtual interface like a dummy device,
where it can be seen with tcpdump.
The effect of having 2 filters run on the same packet can be obtained by
default using tc, by not specifying either the 'skip_sw' or 'skip_hw'
keywords.
Instead of refusing to offload mirroring/redirecting packets towards
interfaces that aren't switch ports, just treat every other destination
for what it is: something that is handled in software, behind the CPU
port.
Usage:
$ ip link add dummy0 type dummy; ip link set dummy0 up
$ tc qdisc add dev swp0 clsact
$ tc filter add dev swp0 ingress protocol ip flower action mirred ingress mirror dev dummy0
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20241023135251.1752488-7-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions