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)
commite19d2dda90c5305a201282317aa492ce0337aa62
tree61a7187a57ec45a3f1245d4cfd3b7cff35b10081
parent01ef26ca44fdfc04a611975f9abe34a04261f98e
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