diff options
author | Divy Le Ray <divy@chelsio.com> | 2008-05-21 21:56:21 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-05-22 06:34:11 -0400 |
commit | 7385ecf339c504933a98581c2056d83b69b2a82b (patch) | |
tree | 6d240a62e1002a72fb147f0623efc0f6c298375a /drivers/net/cxgb3/adapter.h | |
parent | b1fb1f280d0969f47d4ef19334120f5c34e36080 (diff) |
cxgb3 - Add page support to jumbo frame Rx queue
Add page support to Jumbo frame Rx queues.
Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/cxgb3/adapter.h')
-rw-r--r-- | drivers/net/cxgb3/adapter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/adapter.h b/drivers/net/cxgb3/adapter.h index acebe431d068..263e4faf45e5 100644 --- a/drivers/net/cxgb3/adapter.h +++ b/drivers/net/cxgb3/adapter.h | |||
@@ -92,6 +92,7 @@ struct sge_fl { /* SGE per free-buffer list state */ | |||
92 | unsigned int gen; /* free list generation */ | 92 | unsigned int gen; /* free list generation */ |
93 | struct fl_pg_chunk pg_chunk;/* page chunk cache */ | 93 | struct fl_pg_chunk pg_chunk;/* page chunk cache */ |
94 | unsigned int use_pages; /* whether FL uses pages or sk_buffs */ | 94 | unsigned int use_pages; /* whether FL uses pages or sk_buffs */ |
95 | unsigned int order; /* order of page allocations */ | ||
95 | struct rx_desc *desc; /* address of HW Rx descriptor ring */ | 96 | struct rx_desc *desc; /* address of HW Rx descriptor ring */ |
96 | struct rx_sw_desc *sdesc; /* address of SW Rx descriptor ring */ | 97 | struct rx_sw_desc *sdesc; /* address of SW Rx descriptor ring */ |
97 | dma_addr_t phys_addr; /* physical address of HW ring start */ | 98 | dma_addr_t phys_addr; /* physical address of HW ring start */ |
@@ -116,12 +117,15 @@ struct sge_rspq { /* state for an SGE response queue */ | |||
116 | unsigned int polling; /* is the queue serviced through NAPI? */ | 117 | unsigned int polling; /* is the queue serviced through NAPI? */ |
117 | unsigned int holdoff_tmr; /* interrupt holdoff timer in 100ns */ | 118 | unsigned int holdoff_tmr; /* interrupt holdoff timer in 100ns */ |
118 | unsigned int next_holdoff; /* holdoff time for next interrupt */ | 119 | unsigned int next_holdoff; /* holdoff time for next interrupt */ |
120 | unsigned int rx_recycle_buf; /* whether recycling occurred | ||
121 | within current sop-eop */ | ||
119 | struct rsp_desc *desc; /* address of HW response ring */ | 122 | struct rsp_desc *desc; /* address of HW response ring */ |
120 | dma_addr_t phys_addr; /* physical address of the ring */ | 123 | dma_addr_t phys_addr; /* physical address of the ring */ |
121 | unsigned int cntxt_id; /* SGE context id for the response q */ | 124 | unsigned int cntxt_id; /* SGE context id for the response q */ |
122 | spinlock_t lock; /* guards response processing */ | 125 | spinlock_t lock; /* guards response processing */ |
123 | struct sk_buff *rx_head; /* offload packet receive queue head */ | 126 | struct sk_buff *rx_head; /* offload packet receive queue head */ |
124 | struct sk_buff *rx_tail; /* offload packet receive queue tail */ | 127 | struct sk_buff *rx_tail; /* offload packet receive queue tail */ |
128 | struct sk_buff *pg_skb; /* used to build frag list in napi handler */ | ||
125 | 129 | ||
126 | unsigned long offload_pkts; | 130 | unsigned long offload_pkts; |
127 | unsigned long offload_bundles; | 131 | unsigned long offload_bundles; |