aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
diff options
context:
space:
mode:
authorYotam Gigi <[email protected]>2017-10-03 09:58:08 +0200
committerDavid S. Miller <[email protected]>2017-10-03 10:06:30 -0700
commita5bc9294d70fe85729bb343eef281ccbe78ff119 (patch)
tree5e122c80aafdc2c30baed336b36663a3af4056e4 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf
parent5d8b3e69fc5e5ccafc9db1251bb7c78a8622fddd (diff)
ipv4: ipmr: Don't forward packets already forwarded by hardware
Change the ipmr module to not forward packets if: - The packet is marked with the offload_mr_fwd_mark, and - Both input interface and output interface share the same parent ID. This way, a packet can go through partial multicast forwarding in the hardware, where it will be forwarded only to the devices that share the same parent ID (AKA, reside inside the same hardware). The kernel will forward the packet to all other interfaces. To do this, add the ipmr_offload_forward helper, which per skb, ingress VIF and egress VIF, returns whether the forwarding was offloaded to hardware. The ipmr_queue_xmit frees the skb and does not forward it if the result is a true value. All the forwarding path code compiles out when the CONFIG_NET_SWITCHDEV is not set. Signed-off-by: Yotam Gigi <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Reviewed-by: Nikolay Aleksandrov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions