Netdev List
 help / color / mirror / Atom feed
* [PATCH net 0/2] cls_bpf: fix offload state tracking with block callbacks
@ 2017-12-19 21:32 Jakub Kicinski
  2017-12-19 21:32 ` [PATCH net 1/2] cls_bpf: fix offload assumptions after callback conversion Jakub Kicinski
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Jakub Kicinski @ 2017-12-19 21:32 UTC (permalink / raw)
  To: netdev; +Cc: daniel, jiri, oss-drivers, Jakub Kicinski

Hi!

After introduction of block callbacks classifiers can no longer track
offload state.  cls_bpf used to do that in an attempt to move common
code from drivers to the core.  Remove that functionality and fix
drivers.

The user-visible bug this is fixing is that trying to offload a second
filter would trigger a spurious DESTROY and in turn disable the already
installed one.


Jakub Kicinski (2):
  cls_bpf: fix offload assumptions after callback conversion
  nfp: bpf: keep track of the offloaded program

 drivers/net/ethernet/netronome/nfp/bpf/main.c | 55 ++++++++++++----
 drivers/net/ethernet/netronome/nfp/bpf/main.h |  8 +++
 include/net/pkt_cls.h                         |  5 +-
 net/sched/cls_bpf.c                           | 93 +++++++++++----------------
 4 files changed, 92 insertions(+), 69 deletions(-)

-- 
2.15.1

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

end of thread, other threads:[~2017-12-20 18:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-19 21:32 [PATCH net 0/2] cls_bpf: fix offload state tracking with block callbacks Jakub Kicinski
2017-12-19 21:32 ` [PATCH net 1/2] cls_bpf: fix offload assumptions after callback conversion Jakub Kicinski
2017-12-20  6:05   ` Jiri Pirko
2017-12-19 21:32 ` [PATCH net 2/2] nfp: bpf: keep track of the offloaded program Jakub Kicinski
2017-12-20 11:33 ` [oss-drivers] [PATCH net 0/2] cls_bpf: fix offload state tracking with block callbacks Quentin Monnet
2017-12-20 18:32 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox