OrangePi_CM5/drivers/net/ethernet/sfc
Martin Habets f7edb6b943 sfc: The RX page_ring is optional
commit 1d5a474240407c38ca8c7484a656ee39f585399c upstream.

The RX page_ring is an optional feature that improves
performance. When allocation fails the driver can still
function, but possibly with a lower bandwidth.
Guard against dereferencing a NULL page_ring.

Fixes: 2768935a46 ("sfc: reuse pages to avoid DMA mapping/unmapping costs")
Signed-off-by: Martin Habets <habetsm.xilinx@gmail.com>
Reported-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/164111288276.5798.10330502993729113868.stgit@palantir17.mph.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-11 15:24:59 +01:00
..
falcon sfc: The RX page_ring is optional 2022-01-11 15:24:59 +01:00
Kconfig
…
Makefile
…
bitfield.h
…
ef10.c sfc: ef10: fix TX queue lookup in TX event handling 2021-05-14 09:50:41 +02:00
ef10_regs.h
…
ef10_sriov.c sfc: error code if SRIOV cannot be disabled 2021-07-19 09:44:52 +02:00
ef10_sriov.h
…
ef100.c sfc: Fix error code in probe 2020-09-21 13:55:13 -07:00
ef100.h
…
ef100_ethtool.c sfc: add ethtool ops and miscellaneous ndos to EF100 2020-09-07 14:46:13 -07:00
ef100_ethtool.h
…
ef100_netdev.c sfc: add ethtool ops and miscellaneous ndos to EF100 2020-09-07 14:46:13 -07:00
ef100_netdev.h
…
ef100_nic.c sfc_ef100: potential dereference of null pointer 2021-12-22 09:30:55 +01:00
ef100_nic.h
…
ef100_regs.h
…
ef100_rx.c sfc: fix boolreturn.cocci warning and rename function 2020-08-24 18:14:23 -07:00
ef100_rx.h
…
ef100_tx.c sfc: de-indirect TSO handling 2020-09-11 17:15:22 -07:00
ef100_tx.h sfc: make ef100 xmit_more handling look more like ef10's 2020-09-05 12:21:39 -07:00
efx.c sfc: advertise encapsulated offloads on EF10 2020-09-11 17:15:22 -07:00
efx.h
…
efx_channels.c sfc: ensure correct number of XDP queues 2021-07-28 14:35:48 +02:00
efx_channels.h sfc: cleanups around efx_alloc_channel 2020-09-11 14:55:14 -07:00
efx_common.c sfc: move initialisation of efx->filter_sem to efx_init_struct() 2020-10-20 21:22:23 -07:00
efx_common.h sfc: advertise encapsulated offloads on EF10 2020-09-11 17:15:22 -07:00
enum.h
…
ethtool.c sfc: return errors from efx_mcdi_set_id_led, and de-indirect 2020-08-31 12:28:50 -07:00
ethtool_common.c sfc: Fix reading non-legacy supported link modes 2021-11-06 14:10:08 +01:00
ethtool_common.h
…
farch.c sfc: farch: fix TX queue lookup in TX event handling 2021-05-11 14:47:36 +02:00
farch_regs.h
…
filter.h
…
io.h
…
mcdi.c sfc: return errors from efx_mcdi_set_id_led, and de-indirect 2020-08-31 12:28:50 -07:00
mcdi.h sfc: fix kdoc warning 2020-09-25 16:29:00 -07:00
mcdi_filters.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
mcdi_filters.h
…
mcdi_functions.c sfc: de-indirect TSO handling 2020-09-11 17:15:22 -07:00
mcdi_functions.h sfc: de-indirect TSO handling 2020-09-11 17:15:22 -07:00
mcdi_mon.c
…
mcdi_pcol.h
…
mcdi_port.c sfc: remove phy_op indirection 2020-09-07 14:46:13 -07:00
mcdi_port.h
…
mcdi_port_common.c sfc: Export fibre-specific supported link modes 2021-11-18 14:03:41 +01:00
mcdi_port_common.h sfc: coding style cleanups in mcdi_port_common.c 2020-09-08 20:14:33 -07:00
mtd.c
…
net_driver.h net: sfc: Replace in_interrupt() usage 2020-09-29 14:02:54 -07:00
nic.c net:sfc: fix non-freed irq in legacy irq mode 2021-06-16 12:01:36 +02:00
nic.h sfc: de-indirect TSO handling 2020-09-11 17:15:22 -07:00
nic_common.h net: sfc: Replace in_interrupt() usage 2020-09-29 14:02:54 -07:00
ptp.c sfc: Don't use netif_info before net_device setup 2021-11-18 14:03:41 +01:00
ptp.h
…
rx.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
rx_common.c sfc: The RX page_ring is optional 2022-01-11 15:24:59 +01:00
rx_common.h
…
selftest.c sfc: define inner/outer csum offload TXQ types 2020-09-11 17:15:22 -07:00
selftest.h sfc: decouple TXQ type from label 2020-09-11 17:15:22 -07:00
siena.c sfc: return errors from efx_mcdi_set_id_led, and de-indirect 2020-08-31 12:28:50 -07:00
siena_sriov.c sfc: Don't use netif_info before net_device setup 2021-11-18 14:03:41 +01:00
siena_sriov.h
…
sriov.c
…
sriov.h
…
tx.c sfc: de-indirect TSO handling 2020-09-11 17:15:22 -07:00
tx.h sfc: select inner-csum-offload TX queues for skbs that need it 2020-09-11 17:15:22 -07:00
tx_common.c sfc: de-indirect TSO handling 2020-09-11 17:15:22 -07:00
tx_common.h
…
tx_tso.c
…
vfdi.h
…
workarounds.h
…