netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2 0/3] ip-link: XDP flags and offload mode
@ 2017-06-27  0:23 Jakub Kicinski
  2017-06-27  0:23 ` [PATCH iproute2 1/3] bpf: print xdp offloaded mode Jakub Kicinski
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Jakub Kicinski @ 2017-06-27  0:23 UTC (permalink / raw)
  To: netdev; +Cc: daniel, oss-drivers, Jakub Kicinski

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(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-06-27 23:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-27  0:23 [PATCH iproute2 0/3] ip-link: XDP flags and offload mode Jakub Kicinski
2017-06-27  0:23 ` [PATCH iproute2 1/3] bpf: print xdp offloaded mode Jakub Kicinski
2017-06-27  0:29   ` Daniel Borkmann
2017-06-27  0:23 ` [PATCH iproute2 2/3] bpf: add xdpdrv for requesting XDP driver mode Jakub Kicinski
2017-06-27  0:30   ` Daniel Borkmann
2017-06-27  0:23 ` [PATCH iproute2 3/3] bpf: allow requesting XDP HW offload Jakub Kicinski
2017-06-27  0:31   ` Daniel Borkmann
2017-06-27 23:15 ` [PATCH iproute2 0/3] ip-link: XDP flags and offload mode Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).