aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/cxgb3_offload.c
diff options
context:
space:
mode:
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 c69f4c0187d9..c5b3de1bb456 100644
--- a/drivers/net/cxgb3/cxgb3_offload.c
+++ b/drivers/net/cxgb3/cxgb3_offload.c
@@ -314,6 +314,12 @@ static int cxgb_rdma_ctl(struct adapter *adapter, unsigned int req, void *data)
314 spin_unlock_irq(&adapter->sge.reg_lock); 314 spin_unlock_irq(&adapter->sge.reg_lock);
315 break; 315 break;
316 } 316 }
317 case RDMA_GET_MIB: {
318 spin_lock(&adapter->stats_lock);
319 t3_tp_get_mib_stats(adapter, (struct tp_mib_stats *)data);
320 spin_unlock(&adapter->stats_lock);
321 break;
322 }
317 default: 323 default:
318 ret = -EOPNOTSUPP; 324 ret = -EOPNOTSUPP;
319 } 325 }
@@ -392,6 +398,7 @@ static int cxgb_offload_ctl(struct t3cdev *tdev, unsigned int req, void *data)
392 case RDMA_CQ_DISABLE: 398 case RDMA_CQ_DISABLE:
393 case RDMA_CTRL_QP_SETUP: 399 case RDMA_CTRL_QP_SETUP:
394 case RDMA_GET_MEM: 400 case RDMA_GET_MEM:
401 case RDMA_GET_MIB:
395 if (!offload_running(adapter)) 402 if (!offload_running(adapter))
396 return -EAGAIN; 403 return -EAGAIN;
397 return cxgb_rdma_ctl(adapter, req, data); 404 return cxgb_rdma_ctl(adapter, req, data);