aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2011-07-03 17:39:05 +0000
committerJohn Crispin <blogic@openwrt.org>2011-07-03 17:39:05 +0000
commit11177caf7800142555163a0fdb0c3e7952572344 (patch)
tree3ea8c3b7ecee364aad37f0735c562a1214addf74 /target
parent4e97f76c3b1e25605c00089e523bba0775cf12c6 (diff)
downloadmaster-187ad058-11177caf7800142555163a0fdb0c3e7952572344.tar.gz
master-187ad058-11177caf7800142555163a0fdb0c3e7952572344.tar.bz2
master-187ad058-11177caf7800142555163a0fdb0c3e7952572344.zip
use netif_receive_skb on lantiq
Signed-off-by: Luca Olivetti <luca@ventoso.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27410 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/lantiq/patches-2.6.39/280-netif_receive_skb.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/lantiq/patches-2.6.39/280-netif_receive_skb.patch b/target/linux/lantiq/patches-2.6.39/280-netif_receive_skb.patch
new file mode 100644
index 0000000000..7e870e28f9
--- /dev/null
+++ b/target/linux/lantiq/patches-2.6.39/280-netif_receive_skb.patch
@@ -0,0 +1,17 @@
+--- a/drivers/net/lantiq_etop.c
++++ b/drivers/net/lantiq_etop.c
+@@ -155,8 +155,12 @@
+
+ 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