All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/7] nfp: abm: move code and improve parameter validation
@ 2018-11-09  3:50 Jakub Kicinski
  2018-11-09  3:50 ` [PATCH net-next 1/7] nfp: abm: split qdisc offload code into a separate file Jakub Kicinski
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Jakub Kicinski @ 2018-11-09  3:50 UTC (permalink / raw)
  To: davem; +Cc: netdev, oss-drivers, Jakub Kicinski

Hi!

This set starts by separating Qdisc handling code into a new file.
Next two patches allow early access to TLV-based capabilities during
probe, previously the capabilities were parsed just before netdevs
were registered, but its cleaner to do some basic validation earlier
and avoid cleanup work.

Next three patches improve RED's parameter validation.  First we provide
a more precise message about why offload failed (and move the parameter
validation to a helper).  Next we make sure we don't set the top bit
in the 32 bit max RED threshold value.  Because FW is treating the value
as signed it reportedly causes slow downs (unnecessary queuing and
marking) when top bit is set with recent firmwares.  Last (and perhaps
least importantly) we offload the harddrop parameter of the Qdisc.
We don't plan to offload harddrop RED, but it seems prudent to make
sure user didn't set that flag as device behaviour would have differed.

Jakub Kicinski (7):
  nfp: abm: split qdisc offload code into a separate file
  nfp: pass ctrl_bar pointer to nfp_net_alloc
  nfp: parse vNIC TLV capabilities at alloc time
  nfp: abm: provide more precise info about offload parameter validation
  nfp: abm: don't set negative threshold
  net: sched: red: inform offloads about harddrop setting
  nfp: abm: refuse RED offload with harddrop set

 drivers/net/ethernet/netronome/nfp/Makefile   |   1 +
 drivers/net/ethernet/netronome/nfp/abm/main.c | 266 ----------------
 drivers/net/ethernet/netronome/nfp/abm/main.h |   9 +
 .../net/ethernet/netronome/nfp/abm/qdisc.c    | 301 ++++++++++++++++++
 drivers/net/ethernet/netronome/nfp/nfp_net.h  |   2 +-
 .../ethernet/netronome/nfp/nfp_net_common.c   |  26 +-
 .../net/ethernet/netronome/nfp/nfp_net_main.c |   4 +-
 .../ethernet/netronome/nfp/nfp_netvf_main.c   |   3 +-
 include/net/pkt_cls.h                         |   1 +
 net/sched/sch_red.c                           |   1 +
 10 files changed, 335 insertions(+), 279 deletions(-)
 create mode 100644 drivers/net/ethernet/netronome/nfp/abm/qdisc.c

-- 
2.17.1

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

end of thread, other threads:[~2018-11-09 14:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-09  3:50 [PATCH net-next 0/7] nfp: abm: move code and improve parameter validation Jakub Kicinski
2018-11-09  3:50 ` [PATCH net-next 1/7] nfp: abm: split qdisc offload code into a separate file Jakub Kicinski
2018-11-09  3:50 ` [PATCH net-next 2/7] nfp: pass ctrl_bar pointer to nfp_net_alloc Jakub Kicinski
2018-11-09  3:50 ` [PATCH net-next 3/7] nfp: parse vNIC TLV capabilities at alloc time Jakub Kicinski
2018-11-09  3:50 ` [PATCH net-next 4/7] nfp: abm: provide more precise info about offload parameter validation Jakub Kicinski
2018-11-09  3:50 ` [PATCH net-next 5/7] nfp: abm: don't set negative threshold Jakub Kicinski
2018-11-09  3:50 ` [PATCH net-next 6/7] net: sched: red: inform offloads about harddrop setting Jakub Kicinski
2018-11-09  3:50 ` [PATCH net-next 7/7] nfp: abm: refuse RED offload with harddrop set Jakub Kicinski
2018-11-09  4:49 ` [PATCH net-next 0/7] nfp: abm: move code and improve parameter validation David Miller

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.