summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-09-22 11:54:42 -0700
committerDavid S. Miller <davem@davemloft.net>2014-09-22 18:38:40 -0400
commit478a010c9235ca92e66cc5058b42e30e33275ad4 (patch)
tree450e9ba46516bb9f215e210502785f0c6c3bf5bd /crypto
parenta35165ca101695aa2cc5a6300ef69ae60be39a49 (diff)
downloadlinux-478a010c9235ca92e66cc5058b42e30e33275ad4.tar.bz2
net: bcmgenet: fix TX reclaim accounting for fragments
The GENET driver supports SKB fragments, and succeeds in transmitting them properly, but when reclaiming these transmitted fragments, we will only update the count of free buffer descriptors by 1, even for SKBs with fragments. This leads to the networking stack thinking it has more room than the hardware has when pushing new SKBs, and backing off consequently because we return NETDEV_TX_BUSY. Fix this by accounting for the SKB nr_frags plus one (itself) and update ring->free_bds accordingly with that value for each iteration loop in __bcmgenet_tx_reclaim(). Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions