projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add back marvell switch support to 2.6.28
[openwrt.git]
/
target
/
linux
/
atheros
/
patches-2.6.28
/
200-ar2313_enable_mvswitch.patch
diff --git
a/target/linux/atheros/patches-2.6.28/200-ar2313_enable_mvswitch.patch
b/target/linux/atheros/patches-2.6.28/200-ar2313_enable_mvswitch.patch
index
710314d
..
88ffad6
100644
(file)
--- a/
target/linux/atheros/patches-2.6.28/200-ar2313_enable_mvswitch.patch
+++ b/
target/linux/atheros/patches-2.6.28/200-ar2313_enable_mvswitch.patch
@@
-1,14
+1,14
@@
---- a/drivers/net/ar231
3/ar2313
.c
-+++ b/drivers/net/ar231
3/ar2313
.c
-@@ -
841,6 +841,7 @@ static void ar2313
_load_rx_ring(struct n
+--- a/drivers/net/ar231
x
.c
++++ b/drivers/net/ar231
x
.c
+@@ -
735,6 +735,7 @@ static void ar231x
_load_rx_ring(struct n
for (i = 0; i < nr_bufs; i++) {
struct sk_buff *skb;
for (i = 0; i < nr_bufs; i++) {
struct sk_buff *skb;
- ar231
3
_descr_t *rd;
+ ar231
x
_descr_t *rd;
+ int offset = RX_OFFSET;
+ int offset = RX_OFFSET;
- if (sp->rx_skb[idx])
{
- #if DEBUG_RX
-@@ -
862,7 +863,9 @@ static void ar2313
_load_rx_ring(struct n
+ if (sp->rx_skb[idx])
+ break;
+@@ -
753,7 +754,9 @@ static void ar231x
_load_rx_ring(struct n
* Make sure IP header starts on a fresh cache line.
*/
skb->dev = dev;
* Make sure IP header starts on a fresh cache line.
*/
skb->dev = dev;
@@
-18,8
+18,8
@@
+ skb_reserve(skb, offset);
sp->rx_skb[idx] = skb;
+ skb_reserve(skb, offset);
sp->rx_skb[idx] = skb;
- rd = (ar231
3
_descr_t *) & sp->rx_ring[idx];
-@@ -
953,6 +956,7 @@ static int ar2313
_rx_int(struct net_devi
+ rd = (ar231
x
_descr_t *) & sp->rx_ring[idx];
+@@ -
828,6 +831,7 @@ static int ar231x
_rx_int(struct net_devi
/* alloc new buffer. */
skb_new = dev_alloc_skb(AR2313_BUFSIZE + RX_OFFSET + 128);
if (skb_new != NULL) {
/* alloc new buffer. */
skb_new = dev_alloc_skb(AR2313_BUFSIZE + RX_OFFSET + 128);
if (skb_new != NULL) {
@@
-27,7
+27,7
@@
skb = sp->rx_skb[idx];
/* set skb */
skb = sp->rx_skb[idx];
/* set skb */
-@@ -
960,13 +964,17 @@ static int ar2313
_rx_int(struct net_devi
+@@ -
835,13 +839,17 @@ static int ar231x
_rx_int(struct net_devi
((status >> DMA_RX_LEN_SHIFT) & 0x3fff) - CRC_LEN);
dev->stats.rx_bytes += skb->len;
((status >> DMA_RX_LEN_SHIFT) & 0x3fff) - CRC_LEN);
dev->stats.rx_bytes += skb->len;
@@
-48,7
+48,7
@@
/* reset descriptor's curr_addr */
rxdesc->addr = virt_to_phys(skb_new->data);
/* reset descriptor's curr_addr */
rxdesc->addr = virt_to_phys(skb_new->data);
-@@ -1
392,6 +1400,8 @@ static int ar2313
_mdiobus_probe (struct
+@@ -1
243,6 +1251,8 @@ static int ar231x
_mdiobus_probe (struct
return PTR_ERR(phydev);
}
return PTR_ERR(phydev);
}
@@
-57,11
+57,11
@@
/* mask with MAC supported features */
phydev->supported &= (SUPPORTED_10baseT_Half
| SUPPORTED_10baseT_Full
/* mask with MAC supported features */
phydev->supported &= (SUPPORTED_10baseT_Half
| SUPPORTED_10baseT_Full
---- a/drivers/net/ar231
3/ar2313
.h
-+++ b/drivers/net/ar231
3/ar2313
.h
-@@ -
107,6 +107
,8 @@ typedef struct {
+--- a/drivers/net/ar231
x
.h
++++ b/drivers/net/ar231
x
.h
+@@ -
221,6 +221
,8 @@ typedef struct {
*/
*/
- struct ar231
3
_private {
+ struct ar231
x
_private {
struct net_device *dev;
+ int (*rx)(struct sk_buff *skb);
+
struct net_device *dev;
+ int (*rx)(struct sk_buff *skb);
+
This page took
0.02687 seconds
and
4
git commands to generate.