summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2011-03-29 06:19:31 +0000
committerJohn Crispin <john@openwrt.org>2011-03-29 06:19:31 +0000
commit08bb107823907556f749b02841a1a2932dc345db (patch)
treef4871d6f6d40ac110af55e2c7a0c678938348455 /target
parent5b0f2fb9182684ad50bbc53a0c4a2bf1677f320c (diff)
downloadmtk-20170518-08bb107823907556f749b02841a1a2932dc345db.zip
mtk-20170518-08bb107823907556f749b02841a1a2932dc345db.tar.gz
mtk-20170518-08bb107823907556f749b02841a1a2932dc345db.tar.bz2
* use netif_rx of the phydev if it is provided
SVN-Revision: 26353
Diffstat (limited to 'target')
-rw-r--r--target/linux/lantiq/patches/230-xway_etop.patch15
1 files changed, 10 insertions, 5 deletions
diff --git a/target/linux/lantiq/patches/230-xway_etop.patch b/target/linux/lantiq/patches/230-xway_etop.patch
index 2f10a52..2ba8427 100644
--- a/target/linux/lantiq/patches/230-xway_etop.patch
+++ b/target/linux/lantiq/patches/230-xway_etop.patch
@@ -1,6 +1,6 @@
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
-@@ -358,6 +358,12 @@
+@@ -235,6 +235,12 @@
source "drivers/net/arm/Kconfig"
@@ -15,7 +15,7 @@
depends on ARM || MIPS || SUPERH
--- a/drivers/net/Makefile
+++ b/drivers/net/Makefile
-@@ -213,6 +213,7 @@
+@@ -212,6 +212,7 @@
obj-$(CONFIG_MVME16x_NET) += 82596.o
obj-$(CONFIG_BVME6000_NET) += 82596.o
obj-$(CONFIG_SC92031) += sc92031.o
@@ -25,7 +25,7 @@
obj-$(CONFIG_LP486E) += lp486e.o
--- /dev/null
+++ b/drivers/net/lantiq_etop.c
-@@ -0,0 +1,552 @@
+@@ -0,0 +1,557 @@
+/*
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published
@@ -201,8 +201,13 @@
+
+ skb_put(skb, len);
+ skb->dev = dev;
-+ skb->protocol = eth_type_trans(skb, dev);
-+ netif_rx(skb);
++
++ if (priv->phydev && priv->phydev->netif_rx) {
++ priv->phydev->netif_rx(skb);
++ } else {
++ skb->protocol = eth_type_trans(skb, dev);
++ netif_rx(skb);
++ }
+
+ priv->stats.rx_packets++;
+ priv->stats.rx_bytes += len;