netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] nfp: bpf: add programmable RSS support
@ 2018-05-09  2:37 Jakub Kicinski
  2018-05-09  2:37 ` [PATCH bpf-next 1/2] bpf: xdp: allow offloads to store into rx_queue_index Jakub Kicinski
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jakub Kicinski @ 2018-05-09  2:37 UTC (permalink / raw)
  To: alexei.starovoitov, daniel; +Cc: davem, netdev, oss-drivers, Jakub Kicinski

Hi!

This small series adds a feature which extends BPF offload beyond
a pure host processing offload and firmly into the realm of
heterogeneous processing.  Allowing offloaded XDP programs to set
the RX queue index opens the door for defining fully programmable
RSS/n-tuple filter replacement.  In fact the device datapath will
skip the RSS processing completely if BPF decided on the queue
already, making the XDP program replace part of the standard NIC
datapath.

We hope some day the entire NIC datapath will be defined by BPF :)

Jakub Kicinski (2):
  bpf: xdp: allow offloads to store into rx_queue_index
  nfp: bpf: support setting the RX queue index

 drivers/net/ethernet/netronome/nfp/bpf/fw.h   |  1 +
 drivers/net/ethernet/netronome/nfp/bpf/jit.c  | 47 +++++++++++++++++++
 drivers/net/ethernet/netronome/nfp/bpf/main.c | 11 +++++
 drivers/net/ethernet/netronome/nfp/bpf/main.h |  8 ++++
 .../net/ethernet/netronome/nfp/bpf/verifier.c | 28 ++++++++++-
 drivers/net/ethernet/netronome/nfp/nfp_asm.h  | 22 +++++----
 include/linux/bpf.h                           |  2 +-
 kernel/bpf/verifier.c                         |  2 +-
 net/core/filter.c                             |  9 +++-
 9 files changed, 115 insertions(+), 15 deletions(-)

-- 
2.17.0

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

end of thread, other threads:[~2018-05-09 16:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-09  2:37 [PATCH bpf-next 0/2] nfp: bpf: add programmable RSS support Jakub Kicinski
2018-05-09  2:37 ` [PATCH bpf-next 1/2] bpf: xdp: allow offloads to store into rx_queue_index Jakub Kicinski
2018-05-09  2:37 ` [PATCH bpf-next 2/2] nfp: bpf: support setting the RX queue index Jakub Kicinski
2018-05-09  2:42 ` [PATCH bpf-next 0/2] nfp: bpf: add programmable RSS support Alexei Starovoitov
2018-05-09 16:09   ` Daniel Borkmann

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