diff options
author | Ong Boon Leong | 2021-12-30 11:54:42 +0800 |
---|---|---|
committer | Alexei Starovoitov | 2022-01-05 17:53:24 -0800 |
commit | 6440a6c23f6c72c57dbdf7928d92d3fc1aef6edc (patch) | |
tree | b279c1eb7b9e20eb0e5af5bf205798ad99b8e616 /samples/watchdog | |
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 <boon.leong.ong@intel.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Link: https://lore.kernel.org/bpf/20211230035447.523177-3-boon.leong.ong@intel.com
Diffstat (limited to 'samples/watchdog')
0 files changed, 0 insertions, 0 deletions