RDMA: Allow for NULL .modify_device() and .modify_port() methods
authorBart Van Assche <bvanassche@acm.org>
Sat, 18 Jun 2011 16:35:42 +0000 (16:35 +0000)
committerRoland Dreier <roland@purestorage.com>
Mon, 18 Jul 2011 23:44:30 +0000 (16:44 -0700)
commit10e1b54bbb51ac134c51996022f3bd10579fbd3b
tree6b535275efbefb7f32d6bec89c21a05a902f655d
parent620917de59eeb934b9f8cf35cc2d95c1ac8ed0fc
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>
drivers/infiniband/core/device.c
drivers/infiniband/hw/amso1100/c2_provider.c
drivers/infiniband/hw/cxgb3/iwch_provider.c
drivers/infiniband/hw/cxgb4/provider.c
drivers/infiniband/hw/nes/nes_verbs.c