]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
IPoIB/CM: Enable SRQ support on HCAs that support fewer than 16 SG entries
authorPradeep Satyanarayana <pradeeps@linux.vnet.ibm.com>
Fri, 21 Dec 2007 21:08:23 +0000 (13:08 -0800)
committerRoland Dreier <rolandd@cisco.com>
Fri, 25 Jan 2008 22:15:37 +0000 (14:15 -0800)
commit586a693448676de5174e752426ced69ec79ab174
treea42a760115ccdde07853428c485296ce364a9b7d
parentfff09a8e6e726f0752254e1f46f7224e3bebb302
IPoIB/CM: Enable SRQ support on HCAs that support fewer than 16 SG entries

Some HCAs (such as ehca2) support SRQ, but only support fewer than 16 SG
entries for SRQs.  Currently IPoIB/CM implicitly assumes all HCAs will
support 16 SG entries for SRQs (to handle a 64K MTU with 4K pages). This
patch removes that restriction by limiting the maximum MTU in connected
mode to what the maximum number of SRQ SG entries allows.

This patch addresses <https://bugs.openfabrics.org/show_bug.cgi?id=728>

Signed-off-by: Pradeep Satyanarayana <pradeeps@linux.vnet.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_cm.c
drivers/infiniband/ulp/ipoib/ipoib_main.c