From: Matteo Croce Date: Wed, 13 Feb 2019 14:40:30 +0000 (+0100) Subject: iplink: document XDP subcommand to force the XDP mode. X-Git-Tag: v5.0.0~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=619765fe14b640c9aa8eff73fa5bc32da3cbfe80;p=thirdparty%2Fiproute2.git iplink: document XDP subcommand to force the XDP mode. When attaching an eBPF program to a device, ip link can force the XDP mode by using the xdp{generic,drv,offload} keyword instead of just 'xdp'. Document this behaviour also in the help output. Signed-off-by: Matteo Croce Fixes: 14683814 ("bpf: add xdpdrv for requesting XDP driver mode") Fixes: 1b5e8094 ("bpf: allow requesting XDP HW offload") Signed-off-by: Stephen Hemminger --- diff --git a/ip/iplink.c b/ip/iplink.c index b5519201f..3a0cf4595 100644 --- a/ip/iplink.c +++ b/ip/iplink.c @@ -98,7 +98,7 @@ void iplink_usage(void) " [ trust { on | off} ] ]\n" " [ node_guid { eui64 } ]\n" " [ port_guid { eui64 } ]\n" - " [ xdp { off |\n" + " [ { xdp | xdpgeneric | xdpdrv | xdpoffload } { off |\n" " object FILE [ section NAME ] [ verbose ] |\n" " pinned FILE } ]\n" " [ master DEVICE ][ vrf NAME ]\n"