diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2009-04-28 11:29:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-29 01:44:31 -0400 |
commit | 4ea528a151549df795c984649d75860ea40390bd (patch) | |
tree | ea537e0b07f8f301d7a6ad9f785be3021ead9b29 /drivers/net/netxen/netxen_nic.h | |
parent | 5103c9f7874506cb40fc3c8d3f22486d3c4d91aa (diff) |
netxen: refactor netxen_recv_context struct
o move related fields into netxen_recv_context struct.
o allocate rx buffer and descriptor rings dynamically.
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic.h')
-rw-r--r-- | drivers/net/netxen/netxen_nic.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h index ebd6c2edc343..16f5e2267eb3 100644 --- a/drivers/net/netxen/netxen_nic.h +++ b/drivers/net/netxen/netxen_nic.h | |||
@@ -775,8 +775,11 @@ struct netxen_recv_context { | |||
775 | u16 context_id; | 775 | u16 context_id; |
776 | u16 virt_port; | 776 | u16 virt_port; |
777 | 777 | ||
778 | struct nx_host_rds_ring rds_rings[NUM_RCV_DESC_RINGS]; | 778 | struct nx_host_rds_ring *rds_rings; |
779 | struct nx_host_sds_ring *sds_rings; | 779 | struct nx_host_sds_ring *sds_rings; |
780 | |||
781 | struct netxen_ring_ctx *hwctx; | ||
782 | dma_addr_t phys_addr; | ||
780 | }; | 783 | }; |
781 | 784 | ||
782 | /* New HW context creation */ | 785 | /* New HW context creation */ |
@@ -1258,11 +1261,8 @@ struct netxen_adapter { | |||
1258 | struct netxen_adapter_stats stats; | 1261 | struct netxen_adapter_stats stats; |
1259 | 1262 | ||
1260 | struct netxen_recv_context recv_ctx; | 1263 | struct netxen_recv_context recv_ctx; |
1261 | struct nx_host_tx_ring tx_ring; | 1264 | struct nx_host_tx_ring *tx_ring; |
1262 | 1265 | ||
1263 | /* Context interface shared between card and host */ | ||
1264 | struct netxen_ring_ctx *ctx_desc; | ||
1265 | dma_addr_t ctx_desc_phys_addr; | ||
1266 | int (*enable_phy_interrupts) (struct netxen_adapter *); | 1266 | int (*enable_phy_interrupts) (struct netxen_adapter *); |
1267 | int (*disable_phy_interrupts) (struct netxen_adapter *); | 1267 | int (*disable_phy_interrupts) (struct netxen_adapter *); |
1268 | int (*macaddr_set) (struct netxen_adapter *, netxen_ethernet_macaddr_t); | 1268 | int (*macaddr_set) (struct netxen_adapter *, netxen_ethernet_macaddr_t); |