1. 12 Mar, 2008 2 commits
    • Roland Dreier's avatar
      IPoIB: Allocate priv->tx_ring with vmalloc() · 10313cbb
      Roland Dreier authored
      Commit 7143740d ("IPoIB: Add send gather support") made struct
      ipoib_tx_buf significantly larger, since the mapping member changed
      from a single u64 to an array with MAX_SKB_FRAGS + 1 entries.  This
      means that allocating tx_rings with kzalloc() may fail because there
      is not enough contiguous memory for the new, much bigger size.  Fix
      this regression by allocating the rings with vmalloc() instead.
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
      10313cbb
    • Roland Dreier's avatar
      IPoIB/cm: Set tx_wr.num_sge in connected mode post_send() · 4200406b
      Roland Dreier authored
      Commit 7143740d ("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: default avatarRoland Dreier <rolandd@cisco.com>
      4200406b
  2. 11 Mar, 2008 38 commits