]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Only set gso_type to SKB_GSO_TCPV4 as RSC does not support IPv6
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 12 Feb 2013 09:45:44 +0000 (09:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Feb 2013 21:07:19 +0000 (16:07 -0500)
commit9257653e791bf2b042919ff7614b3957d9a3b8fe
treed1049ce4f280aa7dc04fb98880d60ea5dd3123c9
parent9d8ae7de83e58d3132f93af059652bba40ce5c12
ixgbe: Only set gso_type to SKB_GSO_TCPV4 as RSC does not support IPv6

The original fix that was applied for setting gso_type required more change
than necessary because it was assumed ixgbe does RSC on IPv6 frames and this
is not correct.  RSC is only supported with IPv4/TCP frames only.  As such we
can simplify the fix and avoid the unnecessary move of eth_type_trans.

The previous patch "ixgbe: fix gso type" and this patch reduce the entire fix
to one line that sets gso_type to TCPV4 if the frame is RSC.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c