]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvneta: Clean mvneta_tx() sk_buff handling
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Mon, 19 May 2014 16:59:54 +0000 (13:59 -0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 May 2014 18:57:15 +0000 (14:57 -0400)
commit81ee4b7af873e0ae2dad0a3e6030f228911ddbdd
tree61a7187a57ec45a3f1245d4cfd3b7cff35b10081
parenta056a27fa6a15ff1f91d5fdab24fae465bb56be7
net: mvneta: Clean mvneta_tx() sk_buff handling

Rework mvneta_tx() so that the code that performs the final handling
before a sk_buff is transmitted is done only if the numbers of fragments
processed if positive.

This is preparation work to add the support for software TSO.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c