mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-23 16:53:58 -05:00
5a6caa2cfa
axienet_free_tx_chain returns the number of DMA descriptors it's
handled. However, axienet_tx_poll treats the return as the number of
packets. When scatter-gather SKBs are enabled, a single packet may use
multiple DMA descriptors, which causes incorrect packet counts. Fix this
by explicitly keepting track of the number of packets processed as
separate from the DMA descriptors.
Budget does not affect the number of Tx completions we can process for
NAPI, so we use the ring size as the limit instead of budget. As we no
longer return the number of descriptors processed to axienet_tx_poll, we
now update tx_bd_ci in axienet_free_tx_chain.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
ll_temac.h | ||
ll_temac_main.c | ||
ll_temac_mdio.c | ||
Makefile | ||
xilinx_axienet.h | ||
xilinx_axienet_main.c | ||
xilinx_axienet_mdio.c | ||
xilinx_emaclite.c |