]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: add support for xmit_more
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 13 Mar 2015 19:11:07 +0000 (12:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Mar 2015 19:52:31 +0000 (15:52 -0400)
commit8d2f85a782394fcd4335094b9cea88fea28a88e9
tree974239fd13e2133fedb00e2096adfca16983440b
parent6e3dd529c8255e309b4fd122f50e0815dbe2f0a4
net: bcmgenet: add support for xmit_more

Delay the update of the TDMA producer index unless this is the last SKB
in a batch, or the queue is already stopped. Move the check for whether
the queue should be stopped before the xmit_more check to avoid locking
the transmit queue in case there was a SKB submitted which has xmit_more
set.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c