]> 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)
commit4f46ef85149d9b7e214e00995ce176807d38af27
tree974239fd13e2133fedb00e2096adfca16983440b
parent8e3939c4a335cf6902f2cdd796b12bcb537d6fd0
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