netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v2 00/10] bpf: offload: check netdev pointer in the drivers and namespace trouble
@ 2017-11-20 23:21 Jakub Kicinski
  2017-11-20 23:21 ` [PATCH net v2 01/10] bpf: offload: add comment warning developers about double destroy Jakub Kicinski
                   ` (10 more replies)
  0 siblings, 11 replies; 15+ messages in thread
From: Jakub Kicinski @ 2017-11-20 23:21 UTC (permalink / raw)
  To: netdev; +Cc: oss-drivers, alexei.starovoitov, daniel, Jakub Kicinski

Hi!

This series addresses some late comments and moves checking if program
has been loaded for the correct device to the drivers.  There are also
some problems with net namespaces which I didn't take into consideration.
On the kernel side we will now simply ignore namespace moves.  Since the
user space API is not reporting any namespace identification we have to
remove the ifindex until a correct way of reporting is agreed upon.

v2:
 - fix ext ack reporting for XDP (David A);
 - add Jiri's Ack.

Jakub Kicinski (10):
  bpf: offload: add comment warning developers about double destroy
  bpf: offload: limit offload to cls_bpf and xdp programs only
  bpf: offload: rename the ifindex field
  bpf: offload: move offload device validation out to the drivers
  net: xdp: don't allow device-bound programs in driver mode
  bpf: turn bpf_prog_get_type() into a wrapper
  bpf: offload: ignore namespace moves
  bpftool: revert printing program device bound info
  bpf: revert report offload info to user space
  bpf: make bpf_prog_offload_verifier_prep() static inline

 drivers/net/ethernet/netronome/nfp/bpf/offload.c | 10 ++++--
 include/linux/bpf.h                              | 18 +++++------
 include/linux/bpf_verifier.h                     |  2 +-
 include/uapi/linux/bpf.h                         |  8 +----
 kernel/bpf/offload.c                             | 27 +++++++---------
 kernel/bpf/syscall.c                             | 40 ++++++++----------------
 net/core/dev.c                                   | 14 ++++++---
 net/sched/cls_bpf.c                              |  8 ++---
 tools/bpf/bpftool/prog.c                         | 31 ------------------
 tools/include/uapi/linux/bpf.h                   |  8 +----
 10 files changed, 56 insertions(+), 110 deletions(-)

-- 
2.14.1

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

end of thread, other threads:[~2017-11-29 17:12 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-20 23:21 [PATCH net v2 00/10] bpf: offload: check netdev pointer in the drivers and namespace trouble Jakub Kicinski
2017-11-20 23:21 ` [PATCH net v2 01/10] bpf: offload: add comment warning developers about double destroy Jakub Kicinski
2017-11-20 23:21 ` [PATCH net v2 02/10] bpf: offload: limit offload to cls_bpf and xdp programs only Jakub Kicinski
2017-11-20 23:21 ` [PATCH net v2 03/10] bpf: offload: rename the ifindex field Jakub Kicinski
2017-11-20 23:21 ` [PATCH net v2 04/10] bpf: offload: move offload device validation out to the drivers Jakub Kicinski
2017-11-20 23:21 ` [PATCH net v2 05/10] net: xdp: don't allow device-bound programs in driver mode Jakub Kicinski
2017-11-20 23:21 ` [PATCH net v2 06/10] bpf: turn bpf_prog_get_type() into a wrapper Jakub Kicinski
2017-11-20 23:21 ` [PATCH net v2 07/10] bpf: offload: ignore namespace moves Jakub Kicinski
2017-11-20 23:21 ` [PATCH net v2 08/10] bpftool: revert printing program device bound info Jakub Kicinski
2017-11-20 23:21 ` [PATCH net v2 09/10] bpf: revert report offload info to user space Jakub Kicinski
2017-11-20 23:22 ` [PATCH net v2 10/10] bpf: make bpf_prog_offload_verifier_prep() static inline Jakub Kicinski
2017-11-21  0:25 ` [PATCH net v2 00/10] bpf: offload: check netdev pointer in the drivers and namespace trouble Daniel Borkmann
2017-11-29  8:18   ` Jiri Pirko
2017-11-29  8:52     ` Jiri Pirko
2017-11-29 17:12       ` 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).