summaryrefslogtreecommitdiff
path: root/samples/bpf/test_lwt_bpf.c
diff options
context:
space:
mode:
authorOng Boon Leong <boon.leong.ong@intel.com>2021-12-30 06:54:41 +0300
committerAlexei Starovoitov <ast@kernel.org>2022-01-06 04:53:24 +0300
commit2741a0493c04067d7acb0e44035aa27618b7d204 (patch)
treed86a83109878f3637ae978fcf361f6628dfb96a7 /samples/bpf/test_lwt_bpf.c
parent5f6082642814050352a3e29f8713796b55ebf788 (diff)
downloadlinux-2741a0493c04067d7acb0e44035aa27618b7d204.tar.xz
samples/bpf: xdpsock: Add VLAN support for Tx-only operation
In multi-queue environment testing, the support for VLAN-tag based steering is useful. So, this patch adds the capability to add VLAN tag (VLAN ID and Priority) to the generated Tx frame. To set the VLAN ID=10 and Priority=2 for Tx only through TxQ=3: $ xdpsock -i eth0 -t -N -z -q 3 -V -J 10 -K 2 If VLAN ID (-J) and Priority (-K) is set, it default to VLAN ID = 1 VLAN Priority = 0. For example, VLAN-tagged Tx only, xdp copy mode through TxQ=1: $ xdpsock -i eth0 -t -N -c -q 1 -V 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> Link: https://lore.kernel.org/bpf/20211230035447.523177-2-boon.leong.ong@intel.com
Diffstat (limited to 'samples/bpf/test_lwt_bpf.c')
0 files changed, 0 insertions, 0 deletions