]> 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)
commitb4dbf47e7b34d08126a72b196b7a683c1671e092
tree61a7187a57ec45a3f1245d4cfd3b7cff35b10081
parent6852f6990db6dcb5a58bc708737ac598b26dcc3c
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