]> git.baikalelectronics.ru Git - kernel.git/commit
IB/srpt: Set srq_type to IB_SRQT_BASIC
authorRoland Dreier <roland@purestorage.com>
Thu, 12 Apr 2012 14:51:08 +0000 (07:51 -0700)
committerRoland Dreier <roland@purestorage.com>
Thu, 12 Apr 2012 14:56:57 +0000 (07:56 -0700)
commit2947f1202b6fd0492cbb12f1899256333a3c795f
treefa61186333d1a57894534aac71e0aac72e95815c
parent4b5193f9048fb608934391c566cd40fd66d53853
IB/srpt: Set srq_type to IB_SRQT_BASIC

Since commit 1f50074c534b ("RDMA/core: Add SRQ type field"), kernel
users of SRQs need to specify srq_type = IB_SRQT_BASIC in struct
ib_srq_init_attr, or else most low-level drivers will fail in
when srpt_add_one() calls ib_create_srq() and gets -ENOSYS.

(mlx4_ib works OK nearly all of the time, because it just needs
srq_type != IB_SRQT_XRC.  And apparently nearly everyone using
ib_srpt is using mlx4 hardware)

Reported-by: Alexey Shvetsov <alexxy@gentoo.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/srpt/ib_srpt.c