IPoIB/cm: Factor out ipoib_cm_create_srq()
authorRoland Dreier <rolandd@cisco.com>
Fri, 25 Jan 2008 22:15:24 +0000 (14:15 -0800)
committerRoland Dreier <rolandd@cisco.com>
Fri, 25 Jan 2008 22:15:24 +0000 (14:15 -0800)
commit7b3687df66cab4ecd6efb42cfa0c7de60cc4e3b9
tree8a5369a9fb1d4c645833852bec9d29bf3319e5ea
parent1efb61444ca3a598dfafb7a6c573c5d5d42d3432
IPoIB/cm: Factor out ipoib_cm_create_srq()

Factor out the code to create an SRQ and allocate the receive ring in
ipoib_cm_dev_init() into a new function ipoib_cm_create_srq().  This
will make the code neater when support for devices that don't implement
SRQs is added.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_cm.c