linux/drivers/net/ethernet/freescale
Ioana Ciornei 7aaa0f311e dpaa2-switch: seed the buffer pool after allocating the swp
Any interraction with the buffer pool (seeding a buffer, acquire one) is
made through a software portal (SWP, a DPIO object).
There are circumstances where the dpaa2-switch driver probes on a DPSW
before any DPIO devices have been probed. In this case, seeding of the
buffer pool will lead to a panic since no SWPs are initialized.

To fix this, seed the buffer pool after making sure that the software
portals have been probed and are ready to be used.

Fixes: 0b1b713704 ("staging: dpaa2-switch: handle Rx path on control interface")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-07-22 05:46:57 -07:00
..
dpaa freescale: Remove rcu_read_lock() around XDP program invocation 2021-06-24 19:44:17 +02:00
dpaa2 dpaa2-switch: seed the buffer pool after allocating the swp 2021-07-22 05:46:57 -07:00
enetc net: enetc: Use devm_platform_get_and_ioremap_resource() 2021-06-07 14:07:22 -07:00
fman fsl/fman: Add fibre support 2021-07-20 07:16:45 -07:00
fs_enet of: net: pass the dst buffer to of_get_mac_address() 2021-04-13 14:35:02 -07:00
fec_main.c net: fec: add ndo_select_queue to fix TX bandwidth fluctuations 2021-06-21 14:24:20 -07:00
fec_mpc52xx_phy.c
fec_mpc52xx.c of: net: pass the dst buffer to of_get_mac_address() 2021-04-13 14:35:02 -07:00
fec_mpc52xx.h
fec_ptp.c net: fec_ptp: fix issue caused by refactor the fec_devtype 2021-06-16 12:39:03 -07:00
fec.h net: fec: add FEC_QUIRK_HAS_MULTI_QUEUES represents i.MX6SX ENET IP 2021-06-21 14:24:20 -07:00
fsl_pq_mdio.c net: freescale: convert comma to semicolon 2020-12-09 16:23:08 -08:00
gianfar_ethtool.c net: gianfar: reject unsupported coalescing params 2020-03-12 11:32:35 -07:00
gianfar.c net: gianfar: Implement rx_missed_errors counter 2021-06-17 11:39:48 -07:00
gianfar.h net: gianfar: Implement rx_missed_errors counter 2021-06-17 11:39:48 -07:00
Kconfig net: mdiobus: withdraw fwnode_mdbiobus_register 2021-06-25 11:46:29 -07:00
Makefile net: enetc: fix link error again 2021-04-22 13:23:07 -07:00
ucc_geth_ethtool.c net/freescale: Don't set zero if FW not-available in ucc_geth 2020-03-03 17:54:55 -08:00
ucc_geth.c ethernet: ucc_geth: Use kmemdup() rather than kmalloc+memcpy 2021-05-23 18:51:42 -07:00
ucc_geth.h ethernet: ucc_geth: simplify rx/tx allocations 2021-01-21 12:19:56 -08:00
xgmac_mdio.c net: mdiobus: withdraw fwnode_mdbiobus_register 2021-06-25 11:46:29 -07:00