diff options
author | David S. Miller <davem@davemloft.net> | 2008-07-18 05:39:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-18 05:39:39 -0400 |
commit | 49997d75152b3d23c53b0fa730599f2f74c92c65 (patch) | |
tree | 46e93126170d02cfec9505172e545732c1b69656 /drivers/net/cxgb3/cxgb3_offload.c | |
parent | a0c80b80e0fb48129e4e9d6a9ede914f9ff1850d (diff) | |
parent | 5b664cb235e97afbf34db9c4d77f08ebd725335e (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
Documentation/powerpc/booting-without-of.txt
drivers/atm/Makefile
drivers/net/fs_enet/fs_enet-main.c
drivers/pci/pci-acpi.c
net/8021q/vlan.c
net/iucv/iucv.c
Diffstat (limited to 'drivers/net/cxgb3/cxgb3_offload.c')
-rw-r--r-- | drivers/net/cxgb3/cxgb3_offload.c | 7 |
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); |