]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
ehea: Dont check NETIF_F_TSO in TX path
authorAnton Blanchard <anton@samba.org>
Fri, 14 Oct 2011 05:31:02 +0000 (05:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Oct 2011 23:00:54 +0000 (19:00 -0400)
commit921ddc19b91ed92ce9485e46a147a0a49fabc69c
treef06cdfabd8ae07846780f37e865430caeede2c85
parent723f28e49c9f8578b418dfd1ec8c7b9cc13e2b63
ehea: Dont check NETIF_F_TSO in TX path

It seems like the ehea xmit routine and an ethtool change of TSO
mode could race, resulting in corrupt packets. Checking gso_size
is enough and we can use the helper function.

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