summaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches/200-owrt-netif_receive_skb.patch
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-11-03 15:15:52 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-11-03 15:15:52 +0000
commitdfffaea839fd631ec0b3d4f58540316a04c4f2ad (patch)
treeb174b3a3d03c0c2b4a9b9c980efe38089069a2d4 /target/linux/lantiq/patches/200-owrt-netif_receive_skb.patch
parentde6080b7c2e5f3d2a9ed9677e3df0667bfc31842 (diff)
lantiq: bump to 3.1
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28721 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches/200-owrt-netif_receive_skb.patch')
-rw-r--r--target/linux/lantiq/patches/200-owrt-netif_receive_skb.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/lantiq/patches/200-owrt-netif_receive_skb.patch b/target/linux/lantiq/patches/200-owrt-netif_receive_skb.patch
new file mode 100644
index 000000000..d1cb2ab54
--- /dev/null
+++ b/target/linux/lantiq/patches/200-owrt-netif_receive_skb.patch
@@ -0,0 +1,17 @@
+--- a/drivers/net/lantiq_etop.c
++++ b/drivers/net/lantiq_etop.c
+@@ -190,8 +190,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