lkml.org 
[lkml]   [2006]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 55/67] IPV6: Disable SG for GSO unless we have checksum

    -stable review patch. If anyone has any objections, please let us know.

    ------------------
    From: David Miller <davem@davemloft.net>

    Because the system won't turn off the SG flag for us we
    need to do this manually on the IPv6 path. Otherwise we
    will throw IPv6 packets with bad checksums at the hardware.

    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    net/ipv6/ipv6_sockglue.c | 3 +++
    1 file changed, 3 insertions(+)

    --- linux-2.6.18.orig/net/ipv6/ipv6_sockglue.c
    +++ linux-2.6.18/net/ipv6/ipv6_sockglue.c
    @@ -123,6 +123,9 @@ static struct sk_buff *ipv6_gso_segment(
    struct ipv6hdr *ipv6h;
    struct inet6_protocol *ops;

    + if (!(features & NETIF_F_HW_CSUM))
    + features &= ~NETIF_F_SG;
    +
    if (unlikely(skb_shinfo(skb)->gso_type &
    ~(SKB_GSO_UDP |
    SKB_GSO_DODGY |
    --
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-10-11 23:15    [W:5.407 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site