aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbevf
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2010-01-23 05:06:26 -0500
committerDavid S. Miller <davem@davemloft.net>2010-01-23 05:06:26 -0500
commit9010bc3364db56dd88a1851e0797e597e322ce08 (patch)
tree2f5c2365b2ef6dafd159d66659d5e3992e650d0b /drivers/net/ixgbevf
parente9017b55189355e9e6569990a18919e83f35bccb (diff)
ixgbevf: Fix IPv6 GSO type checks
Based on patch from Sridhar Samudrala The following patch fixes the check for IPv6 GSO packet in ixgbevf driver to use skb_is_gso_v6(). SKB_GSO_DODGY is also set when packets are forwarded from a guest. CC: Sridhar Samudrala <sri@us.ibm.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgbevf')
-rw-r--r--drivers/net/ixgbevf/ixgbevf_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ixgbevf/ixgbevf_main.c b/drivers/net/ixgbevf/ixgbevf_main.c
index 623353db11ba..7b3af107ca84 100644
--- a/drivers/net/ixgbevf/ixgbevf_main.c
+++ b/drivers/net/ixgbevf/ixgbevf_main.c
@@ -2781,7 +2781,7 @@ static int ixgbevf_tso(struct ixgbevf_adapter *adapter,
2781 IPPROTO_TCP, 2781 IPPROTO_TCP,
2782 0); 2782 0);
2783 adapter->hw_tso_ctxt++; 2783 adapter->hw_tso_ctxt++;
2784 } else if (skb_shinfo(skb)->gso_type == SKB_GSO_TCPV6) { 2784 } else if (skb_is_gso_v6(skb)) {
2785 ipv6_hdr(skb)->payload_len = 0; 2785 ipv6_hdr(skb)->payload_len = 0;
2786 tcp_hdr(skb)->check = 2786 tcp_hdr(skb)->check =
2787 ~csum_ipv6_magic(&ipv6_hdr(skb)->saddr, 2787 ~csum_ipv6_magic(&ipv6_hdr(skb)->saddr,