diff options
author | Matteo Croce <rootkit85@yahoo.it> | 2008-06-12 22:33:48 +0000 |
---|---|---|
committer | Matteo Croce <rootkit85@yahoo.it> | 2008-06-12 22:33:48 +0000 |
commit | d1c097e3d033d1f8545d8a9b5ae82a224434a475 (patch) | |
tree | 3af6b947e2feaedcc7416dd5f5df01d485cc099e /target/linux/ar7/patches-2.6.25/160-cpmac-rx-ring-use-eoq.diff | |
parent | e8a8d5811d8e3716a0f66769242ab564c4d00d14 (diff) | |
download | mtk-20170518-d1c097e3d033d1f8545d8a9b5ae82a224434a475.zip mtk-20170518-d1c097e3d033d1f8545d8a9b5ae82a224434a475.tar.gz mtk-20170518-d1c097e3d033d1f8545d8a9b5ae82a224434a475.tar.bz2 |
ar7: refresh patches
SVN-Revision: 11452
Diffstat (limited to 'target/linux/ar7/patches-2.6.25/160-cpmac-rx-ring-use-eoq.diff')
-rw-r--r-- | target/linux/ar7/patches-2.6.25/160-cpmac-rx-ring-use-eoq.diff | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/target/linux/ar7/patches-2.6.25/160-cpmac-rx-ring-use-eoq.diff b/target/linux/ar7/patches-2.6.25/160-cpmac-rx-ring-use-eoq.diff index b06f5be..24d70e7 100644 --- a/target/linux/ar7/patches-2.6.25/160-cpmac-rx-ring-use-eoq.diff +++ b/target/linux/ar7/patches-2.6.25/160-cpmac-rx-ring-use-eoq.diff @@ -1,8 +1,6 @@ -Index: linux-2.6.25.4/drivers/net/cpmac.c -=================================================================== ---- linux-2.6.25.4.orig/drivers/net/cpmac.c -+++ linux-2.6.25.4/drivers/net/cpmac.c -@@ -187,6 +187,7 @@ struct cpmac_desc { +--- a/drivers/net/cpmac.c ++++ b/drivers/net/cpmac.c +@@ -187,6 +187,7 @@ #define CPMAC_EOQ 0x1000 struct sk_buff *skb; struct cpmac_desc *next; @@ -10,7 +8,7 @@ Index: linux-2.6.25.4/drivers/net/cpmac.c dma_addr_t mapping; dma_addr_t data_mapping; }; -@@ -242,6 +243,16 @@ static void cpmac_dump_desc(struct net_d +@@ -242,6 +243,16 @@ printk("\n"); } @@ -27,7 +25,7 @@ Index: linux-2.6.25.4/drivers/net/cpmac.c static void cpmac_dump_skb(struct net_device *dev, struct sk_buff *skb) { int i; -@@ -413,21 +424,40 @@ static struct sk_buff *cpmac_rx_one(stru +@@ -413,21 +424,40 @@ static int cpmac_poll(struct napi_struct *napi, int budget) { struct sk_buff *skb; @@ -70,7 +68,7 @@ Index: linux-2.6.25.4/drivers/net/cpmac.c skb = cpmac_rx_one(priv, desc); if (likely(skb)) { netif_receive_skb(skb); -@@ -436,19 +466,81 @@ static int cpmac_poll(struct napi_struct +@@ -436,19 +466,81 @@ desc = desc->next; } @@ -154,7 +152,7 @@ Index: linux-2.6.25.4/drivers/net/cpmac.c } static int cpmac_start_xmit(struct sk_buff *skb, struct net_device *dev) -@@ -625,8 +717,10 @@ static void cpmac_clear_rx(struct net_de +@@ -625,8 +717,10 @@ desc->dataflags = CPMAC_OWN; dev->stats.rx_dropped++; } @@ -165,7 +163,7 @@ Index: linux-2.6.25.4/drivers/net/cpmac.c } static void cpmac_clear_tx(struct net_device *dev) -@@ -928,9 +1022,12 @@ static int cpmac_open(struct net_device +@@ -928,9 +1022,12 @@ desc->buflen = CPMAC_SKB_SIZE; desc->dataflags = CPMAC_OWN; desc->next = &priv->rx_head[(i + 1) % priv->ring_size]; |