ralink: fix tso regression in the ethernet driver
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 39168
This commit is contained in:
parent
8c085f647b
commit
9715b61b3c
1 changed files with 13 additions and 0 deletions
13
target/linux/ramips/patches-3.10/999-raeth_fixes.patch
Normal file
13
target/linux/ramips/patches-3.10/999-raeth_fixes.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
Index: linux-3.10.24/drivers/net/ethernet/ralink/ralink_soc_eth.c
|
||||
===================================================================
|
||||
--- linux-3.10.24.orig/drivers/net/ethernet/ralink/ralink_soc_eth.c 2013-12-27 20:32:59.004068866 +0100
|
||||
+++ linux-3.10.24/drivers/net/ethernet/ralink/ralink_soc_eth.c 2013-12-27 21:16:44.892046631 +0100
|
||||
@@ -335,7 +335,7 @@
|
||||
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;
|
Loading…
Reference in a new issue