netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/4] nfp: protect from theoretical size overflows and SR-IOV errors
@ 2018-07-26  2:40 Jakub Kicinski
  2018-07-26  2:40 ` [PATCH net-next 1/4] nfp: don't fail probe on pci_sriov_set_totalvfs() errors Jakub Kicinski
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Jakub Kicinski @ 2018-07-26  2:40 UTC (permalink / raw)
  To: davem; +Cc: oss-drivers, netdev, Jakub Kicinski

Hi!

This small set changes the handling of pci_sriov_set_totalvfs() errors.
nfp is the only driver which fails probe on pci_sriov_set_totalvfs()
errors.  It turns out some BIOS configurations may break SR-IOV and
users who don't use that feature should not suffer.

Remaining patches makes sure we use overflow-safe function for ring
allocation, even though ring sizes are limited.  It won't hurt and
we can also enable fallback to vmalloc() if memory is tight while
at it.

Jakub Kicinski (4):
  nfp: don't fail probe on pci_sriov_set_totalvfs() errors
  nfp: use kvcalloc() to allocate SW buffer descriptor arrays
  nfp: restore correct ordering of fields in rx ring structure
  nfp: protect from theoretical size overflows on HW descriptor ring

 drivers/net/ethernet/netronome/nfp/nfp_main.c | 20 +++++++++------
 drivers/net/ethernet/netronome/nfp/nfp_net.h  |  9 ++++---
 .../ethernet/netronome/nfp/nfp_net_common.c   | 25 ++++++++++---------
 3 files changed, 30 insertions(+), 24 deletions(-)

-- 
2.17.1

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

end of thread, other threads:[~2018-07-26  6:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-26  2:40 [PATCH net-next 0/4] nfp: protect from theoretical size overflows and SR-IOV errors Jakub Kicinski
2018-07-26  2:40 ` [PATCH net-next 1/4] nfp: don't fail probe on pci_sriov_set_totalvfs() errors Jakub Kicinski
2018-07-26  2:40 ` [PATCH net-next 2/4] nfp: use kvcalloc() to allocate SW buffer descriptor arrays Jakub Kicinski
2018-07-26  2:40 ` [PATCH net-next 3/4] nfp: restore correct ordering of fields in rx ring structure Jakub Kicinski
2018-07-26  2:40 ` [PATCH net-next 4/4] nfp: protect from theoretical size overflows on HW descriptor ring Jakub Kicinski
2018-07-26  5:18 ` [PATCH net-next 0/4] nfp: protect from theoretical size overflows and SR-IOV errors 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).