netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 00/11] net: sched: add extack support for cls offload
@ 2018-01-16  2:08 Jakub Kicinski
  2018-01-16  2:08 ` [PATCH bpf-next v2 01/11] net: sched: add extack support to change() classifier operation Jakub Kicinski
                   ` (10 more replies)
  0 siblings, 11 replies; 17+ messages in thread
From: Jakub Kicinski @ 2018-01-16  2:08 UTC (permalink / raw)
  To: davem, daniel, alexei.starovoitov, netdev
  Cc: dsahern, oss-drivers, jiri, john.fastabend, jhs, gerlitz.or,
	aring, xiyou.wangcong, Jakub Kicinski

Hi!

This series adds extack to cls offloads, as such it could arguably be
targeted at net-next.  Unfortunately, git am is not able to deal cleanly
with minor conflicts on the nfp patches..  Since the series is really
about cls_bpf I hope it's OK if it went via the bpf-next tree.

Quentin says:

This series tries to improve user experience when eBPF hardware offload
hits error paths at load time. In particular, it introduces netlink
extended ack support in the nfp driver.

To that aim, transmission of the pointer to the extack object is piped
through the `change()` operation of the existing classifiers (patch 1 to
6). Then it is used for TC offload in the nfp driver (patch 8) and in
netdevsim (patch 9, selftest in patch 10). Patch 7 adds a helper to handle
extack messages in the core when TC offload is disabled on the net device.

For completeness extack is propagated for classifiers other than cls_bpf,
but it's up to the drivers to make use of it.

v2:
 - auto-skip the extack message validation in patch 11 (Dave A).

Quentin Monnet (11):
  net: sched: add extack support to change() classifier operation
  net: sched: prepare extack support for offload via
    tc_cls_common_offload
  net: sched: cls_flower: propagate extack support for filter offload
  net: sched: cls_matchall: propagate extack support for filter offload
  net: sched: cls_u32: propagate extack support for filter offload
  net: sched: cls_bpf: plumb extack support in filter for hardware
    offload
  net: sched: create tc_can_offload_extack() wrapper
  nfp: bpf: plumb extack into functions related to XDP offload
  nfp: bpf: use extack support to improve debugging
  netdevsim: add extack support for TC eBPF offload
  selftests/bpf: add checks on extack messages for eBPF hw offload tests

 drivers/net/ethernet/netronome/nfp/bpf/main.c      |  35 +++++--
 drivers/net/ethernet/netronome/nfp/bpf/main.h      |   2 +-
 drivers/net/ethernet/netronome/nfp/bpf/offload.c   |  24 +++--
 drivers/net/ethernet/netronome/nfp/nfp_app.h       |   9 +-
 .../net/ethernet/netronome/nfp/nfp_net_common.c    |   2 +-
 drivers/net/netdevsim/bpf.c                        |  35 +++++--
 include/net/pkt_cls.h                              |  16 +++-
 include/net/sch_generic.h                          |   3 +-
 net/sched/cls_api.c                                |   3 +-
 net/sched/cls_basic.c                              |   3 +-
 net/sched/cls_bpf.c                                |  20 ++--
 net/sched/cls_cgroup.c                             |   3 +-
 net/sched/cls_flow.c                               |   2 +-
 net/sched/cls_flower.c                             |  14 +--
 net/sched/cls_fw.c                                 |   2 +-
 net/sched/cls_matchall.c                           |  12 ++-
 net/sched/cls_route.c                              |   3 +-
 net/sched/cls_rsvp.h                               |   2 +-
 net/sched/cls_tcindex.c                            |   3 +-
 net/sched/cls_u32.c                                |  21 +++--
 tools/testing/selftests/bpf/test_offload.py        | 104 +++++++++++++++------
 21 files changed, 221 insertions(+), 97 deletions(-)

-- 
2.15.1

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

end of thread, other threads:[~2018-01-17  4:06 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-16  2:08 [PATCH bpf-next v2 00/11] net: sched: add extack support for cls offload Jakub Kicinski
2018-01-16  2:08 ` [PATCH bpf-next v2 01/11] net: sched: add extack support to change() classifier operation Jakub Kicinski
2018-01-16  2:08 ` [PATCH bpf-next v2 02/11] net: sched: prepare extack support for offload via tc_cls_common_offload Jakub Kicinski
2018-01-16  9:33   ` Jiri Pirko
2018-01-16 13:08     ` Quentin Monnet
2018-01-16  2:08 ` [PATCH bpf-next v2 03/11] net: sched: cls_flower: propagate extack support for filter offload Jakub Kicinski
2018-01-16  2:08 ` [PATCH bpf-next v2 04/11] net: sched: cls_matchall: " Jakub Kicinski
2018-01-16  2:08 ` [PATCH bpf-next v2 05/11] net: sched: cls_u32: " Jakub Kicinski
2018-01-16  2:08 ` [PATCH bpf-next v2 06/11] net: sched: cls_bpf: plumb extack support in filter for hardware offload Jakub Kicinski
2018-01-16  2:08 ` [PATCH bpf-next v2 07/11] net: sched: create tc_can_offload_extack() wrapper Jakub Kicinski
2018-01-16  2:08 ` [PATCH bpf-next v2 08/11] nfp: bpf: plumb extack into functions related to XDP offload Jakub Kicinski
2018-01-16  2:08 ` [PATCH bpf-next v2 09/11] nfp: bpf: use extack support to improve debugging Jakub Kicinski
2018-01-16  9:36   ` Jiri Pirko
2018-01-16 20:11     ` Jakub Kicinski
2018-01-17  4:06       ` David Ahern
2018-01-16  2:08 ` [PATCH bpf-next v2 10/11] netdevsim: add extack support for TC eBPF offload Jakub Kicinski
2018-01-16  2:08 ` [PATCH bpf-next v2 11/11] selftests/bpf: add checks on extack messages for eBPF hw offload tests Jakub Kicinski

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