Thread (8 messages) 8 messages, 3 authors, 2017-06-27

Re: [PATCH iproute2 0/3] ip-link: XDP flags and offload mode

flat view

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2017-06-27 23:15:53

On Mon, 26 Jun 2017 17:23:50 -0700
Jakub Kicinski [off-list ref] wrote:
Hi!

This series adds support for specifying DRV_MODE and new HW_MODE
flags when binding an XDP program to the driver.  It also teaches
ip link about "xdpoffload" attachment mode.

Examples:
# ip link set dev p4p1 xdpoffload obj prog.o sec '.text'
# ip link show dev p4p1
60: p4p1: <BROADCAST,MULTICAST> mtu 1500 xdpoffload/id:2 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:15:4d:12:27:6b brd ff:ff:ff:ff:ff:ff
# ip link set dev p4p1 xdpoffload off

Note: this is based on top of Martin's "bpf: Add support for 
IFLA_XDP_PROG_ID".

Jakub Kicinski (3):
  bpf: print xdp offloaded mode
  bpf: add xdpdrv for requesting XDP driver mode
  bpf: allow requesting XDP HW offload

 include/linux/if_link.h |  2 ++
 ip/iplink.c             |  7 ++++++-
 ip/iplink_xdp.c         |  9 ++++++++-
 ip/xdp.h                |  3 ++-
 man/man8/ip-link.8.in   | 13 ++++++++++++-
 5 files changed, 30 insertions(+), 4 deletions(-)
Applied to net-next.
Next time please put net-next in the patch subject line (same as for kernel).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help