netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/4] nfp: flower tc block support and nfp PCI updates
@ 2018-04-25  4:17 Jakub Kicinski
  2018-04-25  4:17 ` [PATCH net-next 1/4] nfp: reset local locks on init Jakub Kicinski
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Jakub Kicinski @ 2018-04-25  4:17 UTC (permalink / raw)
  To: davem; +Cc: netdev, oss-drivers, Jakub Kicinski

This series improves the nfp PCIe code by making use of the new
pcie_print_link_status() helper and resetting NFP locks when
driver loads.  This can help us avoid lock ups after host crashes
and is rebooted with PCIe reset or when kdump kernel is loaded.

The flower changes come from John, he says:

This patchset fixes offload issues when multiple repr netdevs are bound to
a tc block and filter rules added. Previously the rule would be passed to
the reprs and would be rejected in all but the first as the cookie value
will indicate a duplicate. The first patch extends the flow lookup
function to consider both host context and ingress netdev along with the
cookie value. This means that a rule with a given cookie can exist
multiple times assuming the ingress netdev is different. The host context
ensures that stats from fw are associated with the correct instance of the
rule.

The second patch protects against rejecting add/del/stat messages when a
rule has a repr as both an ingress port and an egress dev. In such cases a
callback can be triggered twice (once for ingress and once for egress)
and can lead to duplicate rule detection or incorrect double calls.


Jakub Kicinski (2):
  nfp: reset local locks on init
  nfp: print PCIe link bandwidth on probe

John Hurley (2):
  nfp: flower: support offloading multiple rules with same cookie
  nfp: flower: ignore duplicate cb requests for same rule

 drivers/net/ethernet/netronome/nfp/flower/main.h   |  9 +++-
 .../net/ethernet/netronome/nfp/flower/metadata.c   | 20 +++++---
 .../net/ethernet/netronome/nfp/flower/offload.c    | 50 ++++++++++++++----
 drivers/net/ethernet/netronome/nfp/nfp_main.c      |  5 ++
 drivers/net/ethernet/netronome/nfp/nfpcore/nfp.h   |  2 +
 .../ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c  |  1 +
 .../net/ethernet/netronome/nfp/nfpcore/nfp_cpp.h   |  2 +
 .../net/ethernet/netronome/nfp/nfpcore/nfp_mutex.c | 45 +++++++++++++++++
 .../ethernet/netronome/nfp/nfpcore/nfp_resource.c  | 59 ++++++++++++++++++++++
 9 files changed, 173 insertions(+), 20 deletions(-)

-- 
2.16.2

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

end of thread, other threads:[~2018-04-25 18:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-25  4:17 [PATCH net-next 0/4] nfp: flower tc block support and nfp PCI updates Jakub Kicinski
2018-04-25  4:17 ` [PATCH net-next 1/4] nfp: reset local locks on init Jakub Kicinski
2018-04-25  4:17 ` [PATCH net-next 2/4] nfp: print PCIe link bandwidth on probe Jakub Kicinski
2018-04-25  4:17 ` [PATCH net-next 3/4] nfp: flower: support offloading multiple rules with same cookie Jakub Kicinski
2018-04-25  6:31   ` Or Gerlitz
2018-04-25  8:51     ` John Hurley
2018-04-25  8:56       ` Or Gerlitz
2018-04-25  9:02         ` John Hurley
2018-04-25  9:13           ` Or Gerlitz
2018-04-25  9:27             ` John Hurley
2018-04-25  4:17 ` [PATCH net-next 4/4] nfp: flower: ignore duplicate cb requests for same rule Jakub Kicinski
2018-04-25  9:17   ` Or Gerlitz
2018-04-25  9:45     ` John Hurley
2018-04-25 18:07 ` [PATCH net-next 0/4] nfp: flower tc block support and nfp PCI updates David Miller

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