aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/cxgb3_offload.c
diff options
context:
space:
mode:
authorDivy Le Ray <divy@chelsio.com>2007-08-21 23:49:21 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:50:49 -0400
commite22bb45d772b5e5c850a6223c2a3245f520de641 (patch)
treeb386f5e9d7e3ee953ecfdc6997a9cfdfe33e2312 /drivers/net/cxgb3/cxgb3_offload.c
parent27186dc325c3bbb937a27a2467cefd64e2505158 (diff)
cxgb3 - Expose HW memory page info
A HW issue requires limiting the receive window size to 23 pages of internal memory. These pages can be configured to different sizes, thus the RDMA driver needs to know the page size to enforce the upper limit. Also assign explicit enum values. Signed-off-by: Divy Le Ray <divy@chelsio.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/cxgb3/cxgb3_offload.c')
-rw-r--r--drivers/net/cxgb3/cxgb3_offload.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/cxgb3_offload.c b/drivers/net/cxgb3/cxgb3_offload.c
index bdff7baeb59d..bac9214170ae 100644
--- a/drivers/net/cxgb3/cxgb3_offload.c
+++ b/drivers/net/cxgb3/cxgb3_offload.c
@@ -317,6 +317,8 @@ static int cxgb_offload_ctl(struct t3cdev *tdev, unsigned int req, void *data)
317 struct iff_mac *iffmacp; 317 struct iff_mac *iffmacp;
318 struct ddp_params *ddpp; 318 struct ddp_params *ddpp;
319 struct adap_ports *ports; 319 struct adap_ports *ports;
320 struct ofld_page_info *rx_page_info;
321 struct tp_params *tp = &adapter->params.tp;
320 int i; 322 int i;
321 323
322 switch (req) { 324 switch (req) {
@@ -382,6 +384,11 @@ static int cxgb_offload_ctl(struct t3cdev *tdev, unsigned int req, void *data)
382 if (!offload_running(adapter)) 384 if (!offload_running(adapter))
383 return -EAGAIN; 385 return -EAGAIN;
384 return cxgb_rdma_ctl(adapter, req, data); 386 return cxgb_rdma_ctl(adapter, req, data);
387 case GET_RX_PAGE_INFO:
388 rx_page_info = data;
389 rx_page_info->page_size = tp->rx_pg_size;
390 rx_page_info->num = tp->rx_num_pgs;
391 break;
385 default: 392 default:
386 return -EOPNOTSUPP; 393 return -EOPNOTSUPP;
387 } 394 }