diff options
author | Bart Van Assche <bvanassche@acm.org> | 2011-06-18 12:35:42 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2011-07-18 19:44:30 -0400 |
commit | 10e1b54bbb51ac134c51996022f3bd10579fbd3b (patch) | |
tree | 6b535275efbefb7f32d6bec89c21a05a902f655d /drivers/infiniband/hw/cxgb4/provider.c | |
parent | 620917de59eeb934b9f8cf35cc2d95c1ac8ed0fc (diff) |
RDMA: Allow for NULL .modify_device() and .modify_port() methods
These methods don't make sense for iWARP devices, so rather than
forcing them to implement stubs, just return -ENOSYS in the core if
the hardware driver doesn't set .modify_device and/or .modify_port.
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/provider.c')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/provider.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/infiniband/hw/cxgb4/provider.c b/drivers/infiniband/hw/cxgb4/provider.c index 5b9e4220ca08..247fe706e7fa 100644 --- a/drivers/infiniband/hw/cxgb4/provider.c +++ b/drivers/infiniband/hw/cxgb4/provider.c | |||
@@ -58,13 +58,6 @@ static int fastreg_support = 1; | |||
58 | module_param(fastreg_support, int, 0644); | 58 | module_param(fastreg_support, int, 0644); |
59 | MODULE_PARM_DESC(fastreg_support, "Advertise fastreg support (default=1)"); | 59 | MODULE_PARM_DESC(fastreg_support, "Advertise fastreg support (default=1)"); |
60 | 60 | ||
61 | static int c4iw_modify_port(struct ib_device *ibdev, | ||
62 | u8 port, int port_modify_mask, | ||
63 | struct ib_port_modify *props) | ||
64 | { | ||
65 | return -ENOSYS; | ||
66 | } | ||
67 | |||
68 | static struct ib_ah *c4iw_ah_create(struct ib_pd *pd, | 61 | static struct ib_ah *c4iw_ah_create(struct ib_pd *pd, |
69 | struct ib_ah_attr *ah_attr) | 62 | struct ib_ah_attr *ah_attr) |
70 | { | 63 | { |
@@ -456,7 +449,6 @@ int c4iw_register_device(struct c4iw_dev *dev) | |||
456 | dev->ibdev.dma_device = &(dev->rdev.lldi.pdev->dev); | 449 | dev->ibdev.dma_device = &(dev->rdev.lldi.pdev->dev); |
457 | dev->ibdev.query_device = c4iw_query_device; | 450 | dev->ibdev.query_device = c4iw_query_device; |
458 | dev->ibdev.query_port = c4iw_query_port; | 451 | dev->ibdev.query_port = c4iw_query_port; |
459 | dev->ibdev.modify_port = c4iw_modify_port; | ||
460 | dev->ibdev.query_pkey = c4iw_query_pkey; | 452 | dev->ibdev.query_pkey = c4iw_query_pkey; |
461 | dev->ibdev.query_gid = c4iw_query_gid; | 453 | dev->ibdev.query_gid = c4iw_query_gid; |
462 | dev->ibdev.alloc_ucontext = c4iw_alloc_ucontext; | 454 | dev->ibdev.alloc_ucontext = c4iw_alloc_ucontext; |