summaryrefslogtreecommitdiff
path: root/target/linux/lantiq/patches-3.0/200-owrt-netif_receive_skb.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2011-10-10 15:13:46 +0000
committerJohn Crispin <john@openwrt.org>2011-10-10 15:13:46 +0000
commit0a866293bd9e204978c995cb0545c20f8ab63c7e (patch)
tree7d7a9ef25035a4afd4b371b85506fe062bac125a /target/linux/lantiq/patches-3.0/200-owrt-netif_receive_skb.patch
parent1359fe4fcf0a6cef3eced837d63c866cc75a52fc (diff)
downloadmtk-20170518-0a866293bd9e204978c995cb0545c20f8ab63c7e.zip
mtk-20170518-0a866293bd9e204978c995cb0545c20f8ab63c7e.tar.gz
mtk-20170518-0a866293bd9e204978c995cb0545c20f8ab63c7e.tar.bz2
* update patches to 3.0
* add basic vr9 support * backport 3.1 fixes * backport 3.2 queue (falcon) SVN-Revision: 28405
Diffstat (limited to 'target/linux/lantiq/patches-3.0/200-owrt-netif_receive_skb.patch')
-rw-r--r--target/linux/lantiq/patches-3.0/200-owrt-netif_receive_skb.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/lantiq/patches-3.0/200-owrt-netif_receive_skb.patch b/target/linux/lantiq/patches-3.0/200-owrt-netif_receive_skb.patch
new file mode 100644
index 0000000..120266c
--- /dev/null
+++ b/target/linux/lantiq/patches-3.0/200-owrt-netif_receive_skb.patch
@@ -0,0 +1,17 @@
+--- a/drivers/net/lantiq_etop.c
++++ b/drivers/net/lantiq_etop.c
+@@ -147,8 +147,12 @@ ltq_etop_hw_receive(struct ltq_etop_chan
+
+ skb_put(skb, len);
+ skb->dev = ch->netdev;
+- skb->protocol = eth_type_trans(skb, ch->netdev);
+- netif_receive_skb(skb);
++ if (priv->phydev && priv->phydev->netif_receive_skb) {
++ priv->phydev->netif_receive_skb(skb);
++ } else {
++ skb->protocol = eth_type_trans(skb, ch->netdev);
++ netif_receive_skb(skb);
++ }
+ }
+
+ static int