aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorVladimir Oltean <[email protected]>2022-03-16 20:41:42 +0000
committerJakub Kicinski <[email protected]>2022-03-18 00:42:47 +0000
commitf2a0e216bee5d95e2c2d916a8815a659cd3703c2 (patch)
tree15be089d2da299b7f687eef2c84f2a05d6667b8e /net/unix/af_unix.c
parentnet: mscc: ocelot: establish functions for handling VCAP aux resources (diff)
downloadkernel-f2a0e216bee5d95e2c2d916a8815a659cd3703c2.tar.gz
kernel-f2a0e216bee5d95e2c2d916a8815a659cd3703c2.zip
net: mscc: ocelot: offload per-flow mirroring using tc-mirred and VCAP IS2
Per-flow mirroring with the VCAP IS2 TCAM (in itself handled as an offload for tc-flower) is done by setting the MIRROR_ENA bit from the action vector of the filter. The packet is mirrored to the port mask configured in the ANA:ANA:MIRRORPORTS register (the same port mask as the destinations for port-based mirroring). Functionality was tested with: tc qdisc add dev swp3 clsact tc filter add dev swp3 ingress protocol ip \ flower skip_sw ip_proto icmp \ action mirred egress mirror dev swp1 and pinging through swp3, while seeing that the ICMP replies are mirrored towards swp1. Signed-off-by: Vladimir Oltean <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions