ehea: Simplify ehea_xmit2 and ehea_xmit3
authorAnton Blanchard <anton@samba.org>
Fri, 14 Oct 2011 05:31:05 +0000 (05:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Oct 2011 23:00:55 +0000 (19:00 -0400)
commitd695c335f9165cb73f9389479cce755e8207b5f4
tree23e72cf67fbe555e23d00001983a857a2e9666dc
parent945db2d4f4f6caf75b988f78e40aa75145ee46a4
ehea: Simplify ehea_xmit2 and ehea_xmit3

Based on a patch from Michael Ellerman, clean up a significant
portion of the transmit path. There was a lot of duplication here.
Even worse, we were always checksumming tx packets and ignoring the
skb->ip_summed field.

Also remove NETIF_F_FRAGLIST from dev->features, I'm not sure why
it was enabled.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ehea/ehea_main.c