]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit54c985c12cad49e1dc58ab41ac2d578088b92b5e
tree6b535275efbefb7f32d6bec89c21a05a902f655d
parenta0b2d12fc8244e5f7412c83344ab7a26abff7360
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