projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libpcap: fix kernel version check
[openwrt.git]
/
target
/
linux
/
atheros
/
patches-2.6.28
/
110-ar2313_ethernet.patch
diff --git
a/target/linux/atheros/patches-2.6.28/110-ar2313_ethernet.patch
b/target/linux/atheros/patches-2.6.28/110-ar2313_ethernet.patch
index
8d1d24f
..
49ca66e
100644
(file)
--- a/
target/linux/atheros/patches-2.6.28/110-ar2313_ethernet.patch
+++ b/
target/linux/atheros/patches-2.6.28/110-ar2313_ethernet.patch
@@
-25,7
+25,7
@@
obj-$(CONFIG_DECLANCE) += declance.o
--- /dev/null
+++ b/drivers/net/ar231x.c
obj-$(CONFIG_DECLANCE) += declance.o
--- /dev/null
+++ b/drivers/net/ar231x.c
-@@ -0,0 +1,126
8
@@
+@@ -0,0 +1,126
4
@@
+/*
+ * ar231x.c: Linux driver for the Atheros AR231x Ethernet device.
+ *
+/*
+ * ar231x.c: Linux driver for the Atheros AR231x Ethernet device.
+ *
@@
-768,15
+768,12
@@
+ if (sp->rx_skb[idx])
+ break;
+
+ if (sp->rx_skb[idx])
+ break;
+
-+ // partha: create additional room for the second GRE fragment
-+ skb = alloc_skb(AR2313_BUFSIZE + 128, GFP_ATOMIC);
++ skb = netdev_alloc_skb(dev, AR2313_BUFSIZE);
+ if (!skb) {
+ printk("\n\n\n\n %s: No memory in system\n\n\n\n",
+ __FUNCTION__);
+ break;
+ }
+ if (!skb) {
+ printk("\n\n\n\n %s: No memory in system\n\n\n\n",
+ __FUNCTION__);
+ break;
+ }
-+ // partha: create additional room in the front for tx pkt capture
-+ skb_reserve(skb, 32);
+
+ /*
+ * Make sure IP header starts on a fresh cache line.
+
+ /*
+ * Make sure IP header starts on a fresh cache line.
@@
-836,8
+833,7
@@
+ break;
+ }
+
+ break;
+ }
+
-+ if ((status & (DMA_RX_ERROR | DMA_RX_ERR_LENGTH)) &&
-+ (!(status & DMA_RX_LONG))) {
++ if ((status & DMA_RX_ERROR) && !(status & DMA_RX_LONG)) {
+ dev->stats.rx_errors++;
+ dev->stats.rx_dropped++;
+
+ dev->stats.rx_errors++;
+ dev->stats.rx_dropped++;
+
@@
-855,7
+851,7
@@
+
+ } else {
+ /* alloc new buffer. */
+
+ } else {
+ /* alloc new buffer. */
-+ skb_new =
dev_alloc_skb(AR2313_BUFSIZE + RX_OFFSET + 128
);
++ skb_new =
netdev_alloc_skb(dev, AR2313_BUFSIZE + RX_OFFSET
);
+ if (skb_new != NULL) {
+
+ skb = sp->rx_skb[idx];
+ if (skb_new != NULL) {
+
+ skb = sp->rx_skb[idx];
@@
-870,7
+866,7
@@
+
+ skb_new->dev = dev;
+ /* 16 bit align */
+
+ skb_new->dev = dev;
+ /* 16 bit align */
-+ skb_reserve(skb_new, RX_OFFSET
+ 32
);
++ skb_reserve(skb_new, RX_OFFSET);
+ /* 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);
+
This page took
0.024252 seconds
and
4
git commands to generate.