All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next 00/14] nfp: bpf: relocations, verifier log, signed jumps and other updates
@ 2018-01-10  5:07 Jakub Kicinski
  2018-01-10  5:07 ` [PATCH bpf-next 01/14] nfp: don't try to register XDP rxq structures on control queues Jakub Kicinski
                   ` (13 more replies)
  0 siblings, 14 replies; 18+ messages in thread
From: Jakub Kicinski @ 2018-01-10  5:07 UTC (permalink / raw)
  To: daniel, alexei.starovoitov; +Cc: netdev, oss-drivers, Jakub Kicinski

Hi!

This series starts with a fix to Jesper's recent work, somehow I forgot
about control rings during review.  Second patch is cleaning up a vNIC
header, in kdoc we should not use @ for #define constants.  Aligning of
the top of the stack as well as bottom (last bytes will be unused) helps
the performance.  We should check offload datapath's max MTU when program
is loaded and we can allow TC hw offload flag to be changed freely while
XDP offload is active.

Next group of patches adds more fully featured relocation support.  Due
to limited amount of code space we only load the image to NIC's memory
when program is attached.  Since we can't predict which programs are
loaded later, we should translate as if image was to be loaded at offset
zero and only apply relocations at load time.  Many more advanced features
(eg. tail class, subprograms, dynamic allocation of program space and
sharing it between ports) will depend on this.

Nic adds support for signed comparison instructions.

Quentin makes use of the verifier log in our driver, the verifier print
function (verbose()) has to be renamed and exported.

Jakub Kicinski (11):
  nfp: don't try to register XDP rxq structures on control queues
  nfp: fix incumbent kdoc warnings
  nfp: bpf: round up the size of the stack
  nfp: bpf: don't allow changing MTU above BPF offload limit when active
  nfp: bpf: allow disabling TC offloads when XDP active
  nfp: bpf: move jump resolution to jit.c
  nfp: bpf: add helpers for modifying branch addresses
  nfp: bpf: relocate jump targets just before the load
  nfp: bpf: don't depend on high order allocations for program image
  nfp: hand over to BPF offload app at coarser granularity
  nfp: bpf: use a large constant in unresolved branches

Nic Viljoen (1):
  nfp: bpf: add signed jump insns

Quentin Monnet (2):
  bpf: export function to write into verifier log buffer
  nfp: bpf: reuse verifier log for debug messages

 drivers/net/ethernet/netronome/nfp/bpf/jit.c       | 248 ++++++++++++++-------
 drivers/net/ethernet/netronome/nfp/bpf/main.c      |  38 +++-
 drivers/net/ethernet/netronome/nfp/bpf/main.h      |  44 ++--
 drivers/net/ethernet/netronome/nfp/bpf/offload.c   |  65 +++---
 drivers/net/ethernet/netronome/nfp/bpf/verifier.c  |  30 +--
 drivers/net/ethernet/netronome/nfp/nfp_app.h       |  60 ++---
 drivers/net/ethernet/netronome/nfp/nfp_asm.c       |  30 +++
 drivers/net/ethernet/netronome/nfp/nfp_asm.h       |   5 +
 .../net/ethernet/netronome/nfp/nfp_net_common.c    |  27 +--
 drivers/net/ethernet/netronome/nfp/nfp_net_ctrl.h  | 111 ++++-----
 drivers/net/ethernet/netronome/nfp/nfp_net_repr.c  |   8 +
 drivers/net/ethernet/netronome/nfp/nfp_net_repr.h  |   1 +
 include/linux/bpf_verifier.h                       |   3 +
 kernel/bpf/verifier.c                              |  14 +-
 14 files changed, 426 insertions(+), 258 deletions(-)

-- 
2.15.1

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

end of thread, other threads:[~2018-01-10 18:58 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-10  5:07 [PATCH bpf-next 00/14] nfp: bpf: relocations, verifier log, signed jumps and other updates Jakub Kicinski
2018-01-10  5:07 ` [PATCH bpf-next 01/14] nfp: don't try to register XDP rxq structures on control queues Jakub Kicinski
2018-01-10  5:07 ` [PATCH bpf-next 02/14] nfp: fix incumbent kdoc warnings Jakub Kicinski
2018-01-10  5:07 ` [PATCH bpf-next 03/14] nfp: bpf: round up the size of the stack Jakub Kicinski
2018-01-10  5:07 ` [PATCH bpf-next 04/14] nfp: bpf: don't allow changing MTU above BPF offload limit when active Jakub Kicinski
2018-01-10  5:07 ` [PATCH bpf-next 05/14] nfp: bpf: allow disabling TC offloads when XDP active Jakub Kicinski
2018-01-10  5:07 ` [PATCH bpf-next 06/14] nfp: bpf: move jump resolution to jit.c Jakub Kicinski
2018-01-10  5:07 ` [PATCH bpf-next 07/14] nfp: bpf: add helpers for modifying branch addresses Jakub Kicinski
2018-01-10  5:07 ` [PATCH bpf-next 08/14] nfp: bpf: relocate jump targets just before the load Jakub Kicinski
2018-01-10  5:07 ` [PATCH bpf-next 09/14] nfp: bpf: don't depend on high order allocations for program image Jakub Kicinski
2018-01-10  5:07 ` [PATCH bpf-next 10/14] nfp: bpf: use a large constant in unresolved branches Jakub Kicinski
2018-01-10  5:07 ` [PATCH bpf-next 11/14] nfp: hand over to BPF offload app at coarser granularity Jakub Kicinski
2018-01-10  5:07 ` [PATCH bpf-next 12/14] nfp: bpf: add signed jump insns Jakub Kicinski
2018-01-10  5:07 ` [PATCH bpf-next 13/14] bpf: export function to write into verifier log buffer Jakub Kicinski
2018-01-10 10:32   ` Daniel Borkmann
2018-01-10 12:25     ` Quentin Monnet
2018-01-10 18:58     ` Jakub Kicinski
2018-01-10  5:07 ` [PATCH bpf-next 14/14] nfp: bpf: reuse verifier log for debug messages Jakub Kicinski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.