]> git.baikalelectronics.ru Git - kernel.git/commit
IPoIB/cm: Set tx_wr.num_sge in connected mode post_send()
authorRoland Dreier <rolandd@cisco.com>
Wed, 12 Mar 2008 01:35:20 +0000 (18:35 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 12 Mar 2008 01:35:20 +0000 (18:35 -0700)
commit2d5d3b8dbfab1761c686e8d067a3fa9827e8601e
treecb734632dc9fce70535cd873c8c2fa244262a9e6
parent12280ab7f2ae914aa96030d8595fa340756d8738
IPoIB/cm: Set tx_wr.num_sge in connected mode post_send()

Commit 54196d6c ("IPoIB: Add send gather support") made it possible
for tx_wr.num_sge to be != 1 -- this happens if send gather support is
enabled.  However, the code in the connected mode post_send() function
assumes the old invariant, namely that tx_wr.num_sge is always 1.  Fix
this by explicitly setting tx_wr.num_sge to 1 in the CM post_send().

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