aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/jme.h
diff options
context:
space:
mode:
authorGuo-Fu Tseng <cooldavid@cooldavid.org>2009-07-06 04:39:46 +0000
committerDavid S. Miller <davem@davemloft.net>2009-07-06 13:05:06 -0700
commit47bd10d14b3341004266395014007c120a359c9d (patch)
tree06a3cf03233476936a5e7ee9af8a980a588a480f /drivers/net/jme.h
parent44d8d2e9f0dfa52bb1aebdbaa510669bff61c9dc (diff)
jme: Change bufinf memory location
Instead of using a large chunk of memory space preserved for for modules, using kmalloc to obtain the needed memory. Signed-off-by: Guo-Fu Tseng <cooldavid@cooldavid.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/jme.h')
-rw-r--r--drivers/net/jme.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/jme.h b/drivers/net/jme.h
index 0025e68aeb5..9d3cedd394a 100644
--- a/drivers/net/jme.h
+++ b/drivers/net/jme.h
@@ -372,7 +372,6 @@ struct jme_buffer_info {
/*
* The structure holding buffer information and ring descriptors all together.
*/
-#define MAX_RING_DESC_NR 1024
struct jme_ring {
void *alloc; /* pointer to allocated memory */
void *desc; /* pointer to ring memory */
@@ -380,7 +379,7 @@ struct jme_ring {
dma_addr_t dma; /* phys address for ring dma */
/* Buffer information corresponding to each descriptor */
- struct jme_buffer_info bufinf[MAX_RING_DESC_NR];
+ struct jme_buffer_info *bufinf;
int next_to_use;
atomic_t next_to_clean;