2014-01-12 00:06:37 +08:00
|
|
|
--- a/drivers/net/ethernet/ralink/ralink_soc_eth.c
|
|
|
|
+++ b/drivers/net/ethernet/ralink/ralink_soc_eth.c
|
|
|
|
@@ -335,7 +335,7 @@ static int fe_start_xmit(struct sk_buff
|
2013-12-28 05:14:49 +08:00
|
|
|
if (priv->soc->tso)
|
|
|
|
fe_start_tso(skb, dev, nr_frags, tx);
|
|
|
|
|
|
|
|
- if (skb_shinfo(skb)->gso_segs > 1) {
|
|
|
|
+ if (priv->soc->tso && (skb_shinfo(skb)->gso_segs > 1)) {
|
|
|
|
struct iphdr *iph = NULL;
|
|
|
|
struct tcphdr *th = NULL;
|
|
|
|
struct ipv6hdr *ip6h = NULL;
|