An error occurred fetching the project authors.
  1. 10 Jul, 2007 1 commit
    • Roland Dreier's avatar
      IPoIB: Recycle loopback skbs instead of freeing and reallocating · 1b844afe
      Roland Dreier authored
      InfiniBand HCAs replicate multicast packets back to the QP that sent
      them if that QP is attached to the destination multicast group.  This
      means that IPoIB multicasts are often replicated back to the receive
      queue of the interface that generated them.  To avoid confusing the
      network stack, we drop these duplicates within the IPoIB driver.
      
      However, there's no reason to free the skb that received the duplicate
      and then immediately allocate a new skb to post to the receive queue.
      We can be more efficient and just repost the same skb.
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
      1b844afe
  2. 24 May, 2007 1 commit
  3. 21 May, 2007 1 commit
  4. 19 May, 2007 1 commit
  5. 07 May, 2007 1 commit
    • Roland Dreier's avatar
      IPoIB: Convert to NAPI · 8d1cc86a
      Roland Dreier authored
      Convert the IP-over-InfiniBand network device driver over to using
      NAPI to handle completions for the main CQ.  This covers all receives
      as well as datagram mode sends; send completions for connected mode
      connections are still handled from interrupt context.
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
      8d1cc86a
  6. 26 Apr, 2007 1 commit
  7. 19 Apr, 2007 1 commit
  8. 22 Mar, 2007 1 commit
  9. 10 Feb, 2007 1 commit
    • Michael S. Tsirkin's avatar
      IPoIB: Connected mode experimental support · 839fcaba
      Michael S. Tsirkin authored
      The following patch adds experimental support for IPoIB connected
      mode, as defined by the draft from the IETF ipoib working group.  The
      idea is to increase performance by increasing the MTU from the maximum
      of 2K (theoretically 4K) supported by IPoIB on top of UD.  With this
      code, I'm able to get 800MByte/sec or more with netperf without
      options on a Mellanox 4x back-to-back DDR system.
      
      Some notes on code:
      1. SRQ is used for scalability to large cluster sizes
      2. Only RC connections are used (UC does not support SRQ now)
      3. Retry count is set to 0 since spec draft warns against retries
      4. Each connection is used for data transfers in only 1 direction, so
         each connection is either active(TX) or passive (RX).  2 sides that
         want to communicate create 2 connections.
      5. Each active (TX) connection has a separate CQ for send completions -
         this keeps the code simple without CQ resize and other tricks
      6. To detect stale passive side connections (where the remote side is
         down), we keep an LRU list of passive connections (updated once per
         second per connection) and destroy a connection after it has been
         unused for several seconds. The LRU rule makes it possible to avoid
         scanning connections that have recently been active.
      Signed-off-by: default avatarMichael S. Tsirkin <mst@mellanox.co.il>
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
      839fcaba
  10. 12 Dec, 2006 1 commit
  11. 22 Nov, 2006 1 commit
  12. 10 Oct, 2006 1 commit
  13. 22 Sep, 2006 3 commits
  14. 18 Jun, 2006 1 commit
    • Roland Dreier's avatar
      IPoIB: Avoid using stale last_send counter when reaping AHs · 31c02e21
      Roland Dreier authored
      The comparisons of priv->tx_tail to ah->last_send in ipoib_free_ah()
      and ipoib_post_receive() are slightly unsafe, because priv->tx_lock is
      not held and hence a stale value of ah->last_send might be used, which
      would lead to freeing an AH before the driver was really done with it.
      The simple way to fix this is to the optimization of early free from
      ipoib_free_ah() and unconditionally queue AHs for reaping, and then
      take priv->tx_lock in __ipoib_reap_ah().
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
      31c02e21
  15. 05 Jun, 2006 1 commit
  16. 10 Apr, 2006 1 commit
  17. 24 Mar, 2006 2 commits
    • Leonid Arsh's avatar
      IPoIB: P_Key change event handling · 7a343d4c
      Leonid Arsh authored
      This patch causes the network interface to respond to P_Key change
      events correctly.  As a result, you'll see a child interface in the
      "RUNNING" state (netif_carrier_on()) only when the corresponding P_Key
      is configured by the SM.  When SM removes a P_Key, the "RUNNING" state
      will be disabled for the corresponding network interface.  To
      implement this, I added IB_EVENT_PKEY_CHANGE event handling.  To
      prevent flushing the device before the device is open by the "delay
      open" mechanism, I added an additional device flag called
      IPOIB_FLAG_INITIALIZED.
      
      This also prevents the child network interface from trying to join to
      multicast groups until the PKEY is configured.  We used to get error
      messages like:
      
          ib0.f2f2: couldn't attach QP to multicast group ff12:401b:f2f2:0:0:0:ffff:ffff
      
      in this case.  To fix this, I just check IPOIB_FLAG_OPER_UP flag in
      ipoib_set_mcast_list().
      Signed-off-by: default avatarLeonid Arsh <leonida@voltaire.com>
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
      7a343d4c
    • Leonid Arsh's avatar
      IPoIB: Pass correct pointer when flushing child interfaces · 6f633c8d
      Leonid Arsh authored
      ipoib_ib_dev_flush() should get passed cpriv->dev, not &cpriv->dev.
      Signed-off-by: default avatarLeonid Arsh <leonida@voltaire.com>
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
      6f633c8d
  18. 20 Mar, 2006 2 commits
  19. 13 Jan, 2006 1 commit
  20. 12 Jan, 2006 1 commit
  21. 29 Nov, 2005 1 commit
  22. 03 Nov, 2005 1 commit
  23. 31 Oct, 2005 1 commit
  24. 28 Oct, 2005 1 commit
    • Roland Dreier's avatar
      [IPoIB] Drop RX packets when out of memory · 1993d683
      Roland Dreier authored
      Change the way IPoIB handles RX packets when it can't allocate a new
      receive skbuff.  If the allocation of a new receive skb fails, we now
      drop the packet we just received and repost the original receive skb.
      This means that the receive ring always stays full and we don't have
      to monkey around with trying to schedule a refill task for later.
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
      1993d683
  25. 17 Oct, 2005 1 commit
  26. 20 Sep, 2005 1 commit
    • Roland Dreier's avatar
      [PATCH] IPoIB: Don't flush workqueue from within workqueue · 8d2cae06
      Roland Dreier authored
      ipoib_mcast_restart_task() is always called from within the
      single-threaded IPoIB workqueue, so flushing the workqueue from within
      the function can lead to a recursion overflow.  But since we're
      running in a single-threaded workqueue, we're already synchronized
      against other items in the workqueue, so just get rid of the flush in
      ipoib_mcast_restart_task().
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
      8d2cae06
  27. 27 Aug, 2005 2 commits
  28. 27 Jul, 2005 1 commit
  29. 16 Apr, 2005 2 commits