mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 22:47:56 +00:00
0e2586a774
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39220
12 lines
415 B
Diff
12 lines
415 B
Diff
--- 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
|
|
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;
|