diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-05-06 21:19:14 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-05-06 21:19:14 +0000 |
commit | 0ff3c396d39e762cb0230eb84b9bd1d29dddc520 (patch) | |
tree | 25a23535641b48d2b83e90e007c977404cade1b7 /target/linux/lantiq | |
parent | c3f0b757a3bd952f8d85753cd975618a3008ab36 (diff) | |
download | mtk-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/lantiq')
-rw-r--r-- | target/linux/lantiq/patches-3.2/200-owrt-netif_receive_skb.patch | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/target/linux/lantiq/patches-3.2/200-owrt-netif_receive_skb.patch b/target/linux/lantiq/patches-3.2/200-owrt-netif_receive_skb.patch deleted file mode 100644 index df63eab..0000000 --- a/target/linux/lantiq/patches-3.2/200-owrt-netif_receive_skb.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- a/drivers/net/ethernet/lantiq_etop.c -+++ b/drivers/net/ethernet/lantiq_etop.c -@@ -188,8 +188,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 |