linux_dsm_epyc7002/drivers/net/ethernet/broadcom/bnx2x
Michal Schmidt 996dedbafe bnx2x: avoid atomic allocations during initialization
During initialization bnx2x allocates significant amounts of memory
(for rx data, rx SGEs, TPA pool) using atomic allocations.

I received a report where bnx2x failed to allocate SGEs and it had
to fall back to TPA-less operation.

Let's use GFP_KERNEL allocations during initialization, which runs
in process context. Add gfp_t parameters to functions that are used
both in initialization and in the receive path.

Use an unlikely branch in bnx2x_frag_alloc() to avoid atomic allocation
by netdev_alloc_frag(). The branch is taken several thousands of times
during initialization, but then never more. Note that fp->rx_frag_size
is never greater than PAGE_SIZE, so __get_free_page() can be used here.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-09-11 15:43:54 -04:00
..
bnx2x_cmn.c bnx2x: avoid atomic allocations during initialization 2013-09-11 15:43:54 -04:00
bnx2x_cmn.h bnx2x: VF RSS support - VF side 2013-09-05 12:44:31 -04:00
bnx2x_dcb.c bnx2x: Consider DCBX remote error 2013-08-20 00:21:47 -07:00
bnx2x_dcb.h bnx2x: Change DCB context handling 2013-08-20 00:21:47 -07:00
bnx2x_dump.h bnx2x: Revise comments and alignment 2013-06-02 21:36:47 -07:00
bnx2x_ethtool.c bnx2x: VF RSS support - VF side 2013-09-05 12:44:31 -04:00
bnx2x_fw_defs.h bnx2x, bnx2fc: Use per port max exchange resources 2013-04-25 04:06:46 -04:00
bnx2x_fw_file_hdr.h bnx2x: Introduce 2013 and advance version to 1.78.02 2013-01-15 15:07:59 -05:00
bnx2x_hsi.h bnx2x: fix PTE write access error 2013-08-13 16:04:28 -07:00
bnx2x_init_ops.h bnx2x: Remove many sparse warnings 2013-01-23 13:58:29 -05:00
bnx2x_init.h bnx2x: Introduce 2013 and advance version to 1.78.02 2013-01-15 15:07:59 -05:00
bnx2x_link.c bnx2x: Restore a call to config_init 2013-09-06 14:43:49 -04:00
bnx2x_link.h bnx2x: Support reading I2C EEPROM SFF8472 2013-03-27 12:48:32 -04:00
bnx2x_main.c bnx2x: Fix configuration of doorbell block 2013-09-09 17:06:14 -04:00
bnx2x_mfw_req.h bnx2x: Introduce 2013 and advance version to 1.78.02 2013-01-15 15:07:59 -05:00
bnx2x_reg.h bnx2x: VF RSS support - PF side 2013-09-05 12:44:31 -04:00
bnx2x_sp.c bnx2x: VF RSS support - PF side 2013-09-05 12:44:31 -04:00
bnx2x_sp.h bnx2x: VF RSS support - PF side 2013-09-05 12:44:31 -04:00
bnx2x_sriov.c bnx2x: Fix configuration of doorbell block 2013-09-09 17:06:14 -04:00
bnx2x_sriov.h bnx2x: fix broken compilation with CONFIG_BNX2X_SRIOV is not set 2013-09-06 14:43:49 -04:00
bnx2x_stats.c bnx2x: Fix VF stats sync 2013-08-27 22:03:04 -04:00
bnx2x_stats.h bnx2x: Fix VF stats sync 2013-08-27 22:03:04 -04:00
bnx2x_vfpf.c bnx2x: VF RSS support - VF side 2013-09-05 12:44:31 -04:00
bnx2x_vfpf.h bnx2x: VF RSS support - PF side 2013-09-05 12:44:31 -04:00
bnx2x.h bnx2x: VF RSS support - PF side 2013-09-05 12:44:31 -04:00
Makefile bnx2x: Segregate SR-IOV code 2013-01-07 19:49:14 -08:00