linux_dsm_epyc7002/drivers/net/ethernet/netronome
Jakub Kicinski 23d9f5531c nfp: provide a better warning when ring allocation fails
NFP supports fairly enormous ring sizes (up to 256k descriptors).
In commit 4662717038 ("nfp: use kvcalloc() to allocate SW buffer
descriptor arrays") we have started using kvcalloc() functions to
make sure the allocation of software state arrays doesn't hit
the MAX_ORDER limit.  Unfortunately, we can't use virtual mappings
for the DMA region holding HW descriptors.  In case this allocation
fails instead of the generic (and fairly scary) warning/splat in
the logs print a helpful message explaining what happened and
suggesting how to fix it.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-09-19 23:07:41 -07:00
..
nfp nfp: provide a better warning when ring allocation fails 2018-09-19 23:07:41 -07:00
Kconfig nfp: abm: add initial active buffer management NIC skeleton 2018-05-23 14:26:18 -04:00
Makefile nfp: rename the driver and add new main file 2017-02-10 15:52:24 -05:00