diff options
author | Sridhar Samudrala <sri@us.ibm.com> | 2010-01-23 11:02:21 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-23 11:02:21 +0100 |
commit | 8e1e8a4779cb23c1d9f51e9223795e07ec54d77a (patch) | |
tree | e381b1cacfdc3351574d650dc0dbf77ada2e91a4 /drivers/net/igb | |
parent | igb/igbvf: cleanup exception handling in tx_map_adv (diff) | |
download | linux-8e1e8a4779cb23c1d9f51e9223795e07ec54d77a.tar.xz linux-8e1e8a4779cb23c1d9f51e9223795e07ec54d77a.zip |
net: Fix IPv6 GSO type checks in Intel ethernet drivers
Found this problem when testing IPv6 from a KVM guest to a remote
host via e1000e device on the host.
The following patch fixes the check for IPv6 GSO packet in Intel
ethernet drivers to use skb_is_gso_v6(). SKB_GSO_DODGY is also set
when packets are forwarded from a guest.
Signed-off-by: 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/igb')
-rw-r--r-- | drivers/net/igb/igb_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index 2ca173453b66..997124d2992a 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c @@ -3422,7 +3422,7 @@ static inline int igb_tso_adv(struct igb_ring *tx_ring, iph->daddr, 0, IPPROTO_TCP, 0); - } else if (skb_shinfo(skb)->gso_type == SKB_GSO_TCPV6) { + } else if (skb_is_gso_v6(skb)) { ipv6_hdr(skb)->payload_len = 0; tcp_hdr(skb)->check = ~csum_ipv6_magic(&ipv6_hdr(skb)->saddr, &ipv6_hdr(skb)->daddr, |