myri10ge: correctly detect when TSO should be used
authorBrice Goglin <brice@myri.com>
Tue, 27 Mar 2007 19:54:53 +0000 (21:54 +0200)
committerJeff Garzik <jeff@garzik.org>
Wed, 28 Mar 2007 06:18:50 +0000 (02:18 -0400)
commit917690cd035b422b1ac933ac160d26016aa454ac
tree7fa878d49198084cc42475e802b22e86c70cfabf
parent28defbea64622f69d65a6079bf800cedb9915a5f
myri10ge: correctly detect when TSO should be used

Correctly detect when TSO should be used on transmit by looking at the
skb->gso_size rather than seeing if the frame was larger than our MTU.
The old method causes problems when a host with a large (jumbo) MTU is
sending to a host with a small (standard) MTU.

Signed-off-by: Brice Goglin <brice@myri.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/myri10ge/myri10ge.c