OSDN Git Service

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)
commitddd0ca5d60b350bbfbfb60b25885a9779ce6d6c7
tree974239fd13e2133fedb00e2096adfca16983440b
parentae67bf0188cbb9d1786bdfcca9e1976cb36ee327
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