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/nes | |
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/nes')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_verbs.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/infiniband/hw/nes/nes_verbs.c b/drivers/infiniband/hw/nes/nes_verbs.c index 95ca93ceedac..9f2f7d4b1197 100644 --- a/drivers/infiniband/hw/nes/nes_verbs.c +++ b/drivers/infiniband/hw/nes/nes_verbs.c | |||
@@ -605,16 +605,6 @@ static int nes_query_port(struct ib_device *ibdev, u8 port, struct ib_port_attr | |||
605 | 605 | ||
606 | 606 | ||
607 | /** | 607 | /** |
608 | * nes_modify_port | ||
609 | */ | ||
610 | static int nes_modify_port(struct ib_device *ibdev, u8 port, | ||
611 | int port_modify_mask, struct ib_port_modify *props) | ||
612 | { | ||
613 | return 0; | ||
614 | } | ||
615 | |||
616 | |||
617 | /** | ||
618 | * nes_query_pkey | 608 | * nes_query_pkey |
619 | */ | 609 | */ |
620 | static int nes_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) | 610 | static int nes_query_pkey(struct ib_device *ibdev, u8 port, u16 index, u16 *pkey) |
@@ -3882,7 +3872,6 @@ struct nes_ib_device *nes_init_ofa_device(struct net_device *netdev) | |||
3882 | nesibdev->ibdev.dev.parent = &nesdev->pcidev->dev; | 3872 | nesibdev->ibdev.dev.parent = &nesdev->pcidev->dev; |
3883 | nesibdev->ibdev.query_device = nes_query_device; | 3873 | nesibdev->ibdev.query_device = nes_query_device; |
3884 | nesibdev->ibdev.query_port = nes_query_port; | 3874 | nesibdev->ibdev.query_port = nes_query_port; |
3885 | nesibdev->ibdev.modify_port = nes_modify_port; | ||
3886 | nesibdev->ibdev.query_pkey = nes_query_pkey; | 3875 | nesibdev->ibdev.query_pkey = nes_query_pkey; |
3887 | nesibdev->ibdev.query_gid = nes_query_gid; | 3876 | nesibdev->ibdev.query_gid = nes_query_gid; |
3888 | nesibdev->ibdev.alloc_ucontext = nes_alloc_ucontext; | 3877 | nesibdev->ibdev.alloc_ucontext = nes_alloc_ucontext; |