summaryrefslogtreecommitdiff
path: root/target/linux/atheros/patches-3.3/220-enet_micrel_workaround.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-05-06 21:19:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-05-06 21:19:14 +0000
commit0ff3c396d39e762cb0230eb84b9bd1d29dddc520 (patch)
tree25a23535641b48d2b83e90e007c977404cade1b7 /target/linux/atheros/patches-3.3/220-enet_micrel_workaround.patch
parentc3f0b757a3bd952f8d85753cd975618a3008ab36 (diff)
downloadmtk-20170518-0ff3c396d39e762cb0230eb84b9bd1d29dddc520.zip
mtk-20170518-0ff3c396d39e762cb0230eb84b9bd1d29dddc520.tar.gz
mtk-20170518-0ff3c396d39e762cb0230eb84b9bd1d29dddc520.tar.bz2
kernel: rewrite the phy packet hook, put it in the network stack to avoid having to keep non-upstream ethernet driver changes
SVN-Revision: 31637
Diffstat (limited to 'target/linux/atheros/patches-3.3/220-enet_micrel_workaround.patch')
-rw-r--r--target/linux/atheros/patches-3.3/220-enet_micrel_workaround.patch16
1 files changed, 1 insertions, 15 deletions
diff --git a/target/linux/atheros/patches-3.3/220-enet_micrel_workaround.patch b/target/linux/atheros/patches-3.3/220-enet_micrel_workaround.patch
index 3536552..56c7cd5 100644
--- a/target/linux/atheros/patches-3.3/220-enet_micrel_workaround.patch
+++ b/target/linux/atheros/patches-3.3/220-enet_micrel_workaround.patch
@@ -43,21 +43,7 @@
kfree(dev);
return 0;
}
-@@ -846,7 +864,12 @@ static int ar231x_rx_int(struct net_devi
- dev->stats.rx_bytes += skb->len;
-
- /* pass the packet to upper layers */
-- sp->rx(skb);
-+ if (sp->rx) {
-+ sp->rx(skb);
-+ } else {
-+ skb->protocol = eth_type_trans(skb, skb->dev);
-+ netif_rx(skb);
-+ }
- skb_new->dev = dev;
-
- /* 16 bit align */
-@@ -1142,6 +1165,9 @@ static int ar231x_ioctl(struct net_devic
+@@ -1133,6 +1151,9 @@ static int ar231x_ioctl(struct net_devic
struct ar231x_private *sp = netdev_priv(dev);
int ret;