ralink: fix rt5350 ethernet
[openwrt/openwrt.git] / target / linux / ramips / patches-3.10 / 999-raeth_fixes.patch
1 Index: linux-3.10.26/drivers/net/ethernet/ralink/ralink_soc_eth.c
2 ===================================================================
3 --- linux-3.10.26.orig/drivers/net/ethernet/ralink/ralink_soc_eth.c 2014-01-12 11:49:40.052069844 +0100
4 +++ linux-3.10.26/drivers/net/ethernet/ralink/ralink_soc_eth.c 2014-01-12 12:49:31.776155429 +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;
14 @@ -741,8 +741,7 @@
15 dev_info(&pdev->dev, "Enabling TSO\n");
16 netdev->features |= NETIF_F_SG | NETIF_F_TSO | NETIF_F_TSO6 | NETIF_F_IPV6_CSUM;
17 }
18 -
19 - netdev->hw_features = netdev->vlan_features = netdev->features;
20 + netdev->hw_features = netdev->features;
21
22 netdev->irq = platform_get_irq(pdev, 0);
23 if (netdev->irq < 0) {