1. 25 3月, 2006 4 次提交
    • L
      IPoIB: P_Key change event handling · 7a343d4c
      Leonid Arsh 提交于
      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: NLeonid Arsh <leonida@voltaire.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      7a343d4c
    • L
      IPoIB: Fix network interface "RUNNING" status · 4e37b956
      Leonid Arsh 提交于
      With the current IPoIB driver, the status of network interfaces stays
      "RUNNING" even if the link goes down (for example because a cable is
      unplugged).  Fix this by flushing the IPoIB interface when the link
      goes down.
      Signed-off-by: NLeonid Arsh <leonida@voltaire.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      4e37b956
    • R
      IB/srp: Use a fake scatterlist for non-SG SCSI commands · cf368713
      Roland Dreier 提交于
      Since the SCSI midlayer is moving towards entirely getting rid of
      commands with use_sg == 0, we should treat this case as an exception.
      Therefore, change the IB SRP initiator to create a fake scatterlist
      for these commands with sg_init_one().  This simplifies the flow of
      DMA mapping and unmapping, since SRP can just use dma_map_sg() and
      dma_unmap_sg() unconditionally, rather than having to choose between
      the dma_{map,unmap}_sg() and dma_{map,unmap}_single() variants.
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      cf368713
    • L
      IPoIB: Pass correct pointer when flushing child interfaces · 6f633c8d
      Leonid Arsh 提交于
      ipoib_ib_dev_flush() should get passed cpriv->dev, not &cpriv->dev.
      Signed-off-by: NLeonid Arsh <leonida@voltaire.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      6f633c8d
  2. 21 3月, 2006 11 次提交
  3. 04 3月, 2006 1 次提交
  4. 12 2月, 2006 1 次提交
    • R
      IPoIB: Yet another fix for send-only joins · 20b83382
      Roland Dreier 提交于
      Even after the last fix, it's still possible for a send-only join to
      start before the join for the broadcast group has finished.  This
      could cause us to create a multicast group using attributes from the
      broadcast group that haven't been initialized yet, so we would use
      garbage for the Q_Key, etc.  Fix this by waiting until the broadcast
      group's attached flag is set before starting send-only joins.
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      20b83382
  5. 08 2月, 2006 2 次提交
  6. 31 1月, 2006 1 次提交
  7. 18 1月, 2006 2 次提交
  8. 14 1月, 2006 1 次提交
  9. 13 1月, 2006 1 次提交
  10. 12 1月, 2006 1 次提交
  11. 10 1月, 2006 3 次提交
  12. 09 1月, 2006 1 次提交
  13. 04 1月, 2006 1 次提交
  14. 30 11月, 2005 5 次提交
  15. 29 11月, 2005 1 次提交
  16. 15 11月, 2005 1 次提交
    • R
      [IB] srp: don't post receive if no send buf available · 47f2bce9
      Roland Dreier 提交于
      Have __srp_get_tx_iu() fail if the target port's request limit will
      not allow the initiator to post a send.  This avoids continuing on and
      posting a receive, and then failing to post a corresponding send.  If
      that happens, then the initiator will end up with an extra receive
      posted, and if this happens to much, the receive queue will overflow.
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      47f2bce9
  17. 12 11月, 2005 1 次提交
  18. 11 11月, 2005 2 次提交