diff options
author | Ong Boon Leong <[email protected]> | 2021-12-30 11:54:42 +0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-01-05 17:53:24 -0800 |
commit | 6440a6c23f6c72c57dbdf7928d92d3fc1aef6edc (patch) | |
tree | b279c1eb7b9e20eb0e5af5bf205798ad99b8e616 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 2741a0493c04067d7acb0e44035aa27618b7d204 (diff) |
samples/bpf: xdpsock: Add Dest and Src MAC setting for Tx-only operation
To set Dest MAC address (-G|--tx-dmac) only:
$ xdpsock -i eth0 -t -N -z -G aa:bb:cc:dd:ee:ff
To set Source MAC address (-H|--tx-smac) only:
$ xdpsock -i eth0 -t -N -z -H 11:22:33:44:55:66
To set both Dest and Source MAC address:
$ xdpsock -i eth0 -t -N -z -G aa:bb:cc:dd:ee:ff \
-H 11:22:33:44:55:66
The default Dest and Source MAC address remain the same as before.
Signed-off-by: Ong Boon Leong <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Song Liu <[email protected]>
Acked-by: Jesper Dangaard Brouer <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions