]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
net: xilinx: axiethernet: Check for queue full in transmit path
authorRadhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Mon, 18 Mar 2019 13:07:04 +0000 (18:37 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 18 Mar 2019 14:57:34 +0000 (15:57 +0100)
commite491e788cc8868c0a736f2923c957b210067cca7
tree3c8bc0fbf18eb3f3731dab4dde5a56c242526ac0
parent992ff0e1773d07f94faa0b305a069e8fd8e2f8d9
net: xilinx: axiethernet: Check for queue full in transmit path

As per DMA programming sequence, software must not resubmit a BD which
is already under the hardware control else results are undefined. In
iperf3 stress testing, we observed intermittent zero bandwidth and DMA
IP going into stall state. To fix this behavior, in the transmit path
add a check for queue space before adding new BD elements.

Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c