]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
iplink: document XDP subcommand to force the XDP mode.
authorMatteo Croce <mcroce@redhat.com>
Wed, 13 Feb 2019 14:40:30 +0000 (15:40 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 13 Feb 2019 22:02:44 +0000 (14:02 -0800)
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 <mcroce@redhat.com>
Fixes: 14683814 ("bpf: add xdpdrv for requesting XDP driver mode")
Fixes: 1b5e8094 ("bpf: allow requesting XDP HW offload")
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/iplink.c

index b5519201fef7d6e1a920af3e9d3d6c8c1be1c23e..3a0cf4595237dd0fd5ab41932c253b7787120607 100644 (file)
@@ -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"