Netdev List
 help / color / mirror / Atom feed
From: Jakub Kicinski <jakub.kicinski@netronome.com>
To: netdev@vger.kernel.org
Cc: oss-drivers@netronome.com, daniel@iogearbox.net,
	alexei.starovoitov@gmail.com,
	Jakub Kicinski <jakub.kicinski@netronome.com>
Subject: [PATCH bpf-next 0/5] nfp: bpf: adjust head support
Date: Thu, 14 Dec 2017 21:29:14 -0800	[thread overview]
Message-ID: <20171215052919.18343-1-jakub.kicinski@netronome.com> (raw)

Hi!

This small set adds support for bpf_xdp_adjust_head() to the offload.
Since we have access to unmodified BPF bytecode translating calls is
pretty trivial.  First part of the series adds handling of BPF
capabilities included in the FW in TLV format.  The last two patches
add adjust head support in the nfp verifier and jit, and a small
optimization in case we can guarantee the constant adjustment
will always meet adjustment constaints.


Jakub Kicinski (5):
  nfp: add nfp_cpp_area_size() accessor
  nfp: bpf: prepare for parsing BPF FW capabilities
  nfp: bpf: prepare for call support
  nfp: bpf: add basic support for adjust head call
  nfp: bpf: optimize the adjust_head calls in trivial cases

 drivers/net/ethernet/netronome/nfp/bpf/fw.h        |  54 ++++++++++
 drivers/net/ethernet/netronome/nfp/bpf/jit.c       | 107 +++++++++++++++++++
 drivers/net/ethernet/netronome/nfp/bpf/main.c      | 115 +++++++++++++++++++++
 drivers/net/ethernet/netronome/nfp/bpf/main.h      |  30 ++++++
 drivers/net/ethernet/netronome/nfp/bpf/offload.c   |   2 +
 drivers/net/ethernet/netronome/nfp/bpf/verifier.c  |  70 +++++++++++++
 drivers/net/ethernet/netronome/nfp/nfp_asm.h       |   2 +
 .../net/ethernet/netronome/nfp/nfpcore/nfp_cpp.h   |   1 +
 .../ethernet/netronome/nfp/nfpcore/nfp_cppcore.c   |  11 ++
 9 files changed, 392 insertions(+)
 create mode 100644 drivers/net/ethernet/netronome/nfp/bpf/fw.h

-- 
2.15.1

             reply	other threads:[~2017-12-15  5:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-15  5:29 Jakub Kicinski [this message]
2017-12-15  5:29 ` [PATCH bpf-next 1/5] nfp: add nfp_cpp_area_size() accessor Jakub Kicinski
2017-12-15  5:29 ` [PATCH bpf-next 2/5] nfp: bpf: prepare for parsing BPF FW capabilities Jakub Kicinski
2017-12-15  5:29 ` [PATCH bpf-next 3/5] nfp: bpf: prepare for call support Jakub Kicinski
2017-12-15  5:29 ` [PATCH bpf-next 4/5] nfp: bpf: add basic support for adjust head call Jakub Kicinski
2017-12-15  5:29 ` [PATCH bpf-next 5/5] nfp: bpf: optimize the adjust_head calls in trivial cases Jakub Kicinski
2017-12-15 13:21 ` [PATCH bpf-next 0/5] nfp: bpf: adjust head support Daniel Borkmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171215052919.18343-1-jakub.kicinski@netronome.com \
    --to=jakub.kicinski@netronome.com \
    --cc=alexei.starovoitov@gmail.com \
    --cc=daniel@iogearbox.net \
    --cc=netdev@vger.kernel.org \
    --cc=oss-drivers@netronome.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox