mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-08-21 16:31:14 +02:00
![]() Yury reported a crash in the sfc driver originated from
netpoll_send_udp(). The netconsole sends a message and then netpoll
invokes the driver's NAPI function with a budget of zero. It is
dedicated to allow driver to free TX resources, that it may have used
while sending the packet.
In the netpoll case the driver invokes xdp_do_flush() unconditionally,
leading to crash because bpf_net_context was never assigned.
Invoke xdp_do_flush() only if budget is not zero.
Fixes:
|
||
---|---|---|
.. | ||
bitfield.h | ||
efx_channels.c | ||
efx_channels.h | ||
efx_common.c | ||
efx_common.h | ||
efx.c | ||
efx.h | ||
enum.h | ||
ethtool_common.c | ||
ethtool_common.h | ||
ethtool.c | ||
farch_regs.h | ||
farch.c | ||
filter.h | ||
io.h | ||
Kconfig | ||
Makefile | ||
mcdi_mon.c | ||
mcdi_pcol.h | ||
mcdi_port_common.c | ||
mcdi_port_common.h | ||
mcdi_port.c | ||
mcdi_port.h | ||
mcdi.c | ||
mcdi.h | ||
mtd.c | ||
net_driver.h | ||
nic_common.h | ||
nic.c | ||
nic.h | ||
ptp.c | ||
ptp.h | ||
rx_common.c | ||
rx_common.h | ||
rx.c | ||
selftest.c | ||
selftest.h | ||
siena_sriov.c | ||
siena_sriov.h | ||
siena.c | ||
sriov.h | ||
tx_common.c | ||
tx_common.h | ||
tx.c | ||
tx.h | ||
vfdi.h | ||
workarounds.h |