ralink: fix tso regression in the ethernet driver
[openwrt/svn-archive/archive.git] / target / linux / ramips / patches-3.10 / 999-raeth_fixes.patch
1 Index: linux-3.10.24/drivers/net/ethernet/ralink/ralink_soc_eth.c
2 ===================================================================
3 --- linux-3.10.24.orig/drivers/net/ethernet/ralink/ralink_soc_eth.c 2013-12-27 20:32:59.004068866 +0100
4 +++ linux-3.10.24/drivers/net/ethernet/ralink/ralink_soc_eth.c 2013-12-27 21:16:44.892046631 +0100
5 @@ -335,7 +335,7 @@
6 if (priv->soc->tso)
7 fe_start_tso(skb, dev, nr_frags, tx);
8
9 - if (skb_shinfo(skb)->gso_segs > 1) {
10 + if (priv->soc->tso && (skb_shinfo(skb)->gso_segs > 1)) {
11 struct iphdr *iph = NULL;
12 struct tcphdr *th = NULL;
13 struct ipv6hdr *ip6h = NULL;