OSDN Git Service

samples/bpf: Add missing option to xdp_fwd usage
authorWang Hai <wanghai38@huawei.com>
Tue, 15 Jun 2021 13:55:54 +0000 (21:55 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 17 Jun 2021 03:10:18 +0000 (20:10 -0700)
commitbf067f1c51239ba70be714c513820d2c4a5cd457
tree248760b79ee26f2dd0877a36adba27cc96ba3041
parent712b78c697cd75b62b7707b5a20bcd914aedfdaa
samples/bpf: Add missing option to xdp_fwd usage

xdp_fwd usage() is missing the introduction of the "-S"
and "-F" options, this patch adds it.

Fixes: d50ecc46d18f ("samples/bpf: Attach XDP programs in driver mode by default")
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Jesper Dangaard Brouer <brouer@redhat.com>
Link: https://lore.kernel.org/bpf/20210615135554.29158-1-wanghai38@huawei.com
samples/bpf/xdp_fwd_user.c