66f8a0b9884d11939b95fa3c24e3ae109e2b8246
[openwrt.git] / target / linux / ramips / patches-3.10 / 999-raeth_fixes.patch
1 --- a/drivers/net/ethernet/ralink/ralink_soc_eth.c
2 +++ b/drivers/net/ethernet/ralink/ralink_soc_eth.c
3 @@ -335,7 +335,7 @@ static int fe_start_xmit(struct sk_buff
4         if (priv->soc->tso)
5                 fe_start_tso(skb, dev, nr_frags, tx);
6  
7 -       if (skb_shinfo(skb)->gso_segs > 1) {
8 +       if (priv->soc->tso && (skb_shinfo(skb)->gso_segs > 1)) {
9                 struct iphdr *iph = NULL;
10                 struct tcphdr *th = NULL;
11                 struct ipv6hdr *ip6h = NULL;