aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-03-10 18:25:16 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-03-10 18:25:16 +0000
commitc44506fcbd3657d90f27bc790f4aa22add84db6b (patch)
tree2e84be666a22d0b20f4acc9ec33fdaf937cdd6cf /include
parentc1adc793282fe8e81bf893cda1202653e0f736e8 (diff)
downloadupstream-c44506fcbd3657d90f27bc790f4aa22add84db6b.tar.gz
upstream-c44506fcbd3657d90f27bc790f4aa22add84db6b.tar.bz2
upstream-c44506fcbd3657d90f27bc790f4aa22add84db6b.zip
cns3xxx: fix an rx irq handling corner case
When an rx interrupt comes in, rx interrupts are disabled and NAPI polling is scheduled. During the NAPI poll, the driver first processes received frames in the ring, then fills the dma descriptor slots with new buffers and calls tx complete, before finally re-enabling rx interrupts and completing NAPI (if below the budget). If the hardware rx queue overflows before the napi complete is called, the hardware will not throw any further rx interrupts and rx processing stops completely. Fix this by keeping NAPI polling scheduled until it completes a poll without receiving any packets, and also handle NAPI completion before refilling rx or completing tx. SVN-Revision: 35942
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions