1. 25 2月, 2010 1 次提交
  2. 10 12月, 2009 1 次提交
    • D
      IPoIB: Clear ipoib_neigh.dgid in ipoib_neigh_alloc() · 0cd4d0fd
      David J. Wilder 提交于
      IPoIB can miss a change in destination GID under some conditions.  The
      problem is caused when ipoib_neigh->dgid contains a stale address.
      The fix is to set ipoib_neigh->dgid to zero in ipoib_neigh_alloc().
      
      This can happen when a system using bonding on its IPoIB interfaces
      has switched its active interface from interface A to B and back to A.
      The system that fails over will not correctly processes the 2nd
      address change, as described below.
      
      When an address has changed neighbor->ha is updated with the new
      address.  Each neighbor has an associated ipoib_neigh.
      ipoib_neigh->dgid also holds a copy of the remote node's hardware
      address.  When an address changes neighbor->ha is updated by the
      network layer (arp code) with the new address.  IPoIB detects this
      change in ipoib_start_xmit() by comparing neighbor->ha with
      ipoib_neigh->dgid.  The bug is that ipoib_neigh->dgid may already
      contain the new address (A) thus the change from B to A is missed by
      ipoib.  Here is the sequence of events:
      
          ipoib_neigh->dgid = A  and  neighbor->ha = A
      
      The address is switched to B (the first switch)
      
          neighbor->ha = B
      
      The change is seen in ipoib_start_xmit() -- neighbor->ha !=
      ipoib_neigh->dgid so ipoib_neigh is released, and a new one is
      allocated.
      
      The allocator may return the same chunk of memory that was just
      released, therefore ipoib_neigh->dgid still contains A at this point.
      
      ipoib_neigh->dgid should be updated in neigh_add_path(), but if the
      following conditions are true dgid is not updated:
      
              1) __path_find() returns a path
              2) path->ah is NULL
      
      The remote system now switches from address B to A, neighbor->ha is
      updated to A.
      
      Now we have again : ipoib_neigh->dgid = A  and  neighbor->ha = A
      
      Since the addresses are the same ipoib won't process the change in
      address.  Fix this by zeroing out the dgid field when allocating a new
      struct ipoib_neigh.
      Signed-off-by: NDavid Wilder <dwilder@us.ibm.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      0cd4d0fd
  3. 05 12月, 2009 1 次提交
  4. 04 12月, 2009 1 次提交
  5. 13 11月, 2009 1 次提交
  6. 03 10月, 2009 1 次提交
  7. 25 9月, 2009 1 次提交
    • M
      IPoIB: Don't turn on carrier for a non-active port · 5ee95120
      Moni Shoua 提交于
      Multicast joins can succeed even if the IB port is down.  This happens
      when the SM runs on the same port with the requesting port.  However,
      IPoIB calls netif_carrier_on() when the join of the broadcast group
      succeeds, without caring about the state of the IB port.  The result
      is an IPoIB interface in RUNNING state but without an active IB port
      to support it.
      
      If a bonding interface uses this IPoIB interface as a slave it might
      not detect that this slave is almost useless and failover
      functionality will be damaged.  The fix checks the state of the IB
      port in the carrier_task before calling netif_carrier_on().
      
      Adresses: https://bugs.openfabrics.org/show_bug.cgi?id=1726Signed-off-by: NMoni Shoua <monis@voltaire.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      5ee95120
  8. 06 9月, 2009 3 次提交
  9. 03 9月, 2009 1 次提交
  10. 03 6月, 2009 1 次提交
  11. 31 5月, 2009 1 次提交
  12. 24 5月, 2009 2 次提交
    • M
      [SCSI] libiscsi: add task aborted state · b3cd5050
      Mike Christie 提交于
      If a task did not complete normally due to a TMF, libiscsi will
      now complete the task with the state ISCSI_TASK_ABRT_TMF. Drivers
      like bnx2i that need to free resources if a command did not complete normally
      can then check the task state. If a driver does not need to send
      a special command if we have dropped the session then they can check
      for ISCSI_TASK_ABRT_SESS_RECOV.
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      b3cd5050
    • M
      [SCSI] iscsi: pass ep connect shost · 10eb0f01
      Mike Christie 提交于
      When we create the tcp/ip connection by calling ep_connect, we currently
      just go by the routing table info.
      
      I think there are two problems with this.
      
      1. Some drivers do not have access to a routing table. Some drivers like
      qla4xxx do not even know about other ports.
      
      2. If you have two initiator ports on the same subnet, the user may have
      set things up so that session1 was supposed to be run through port1. and
      session2 was supposed to be run through port2. It looks like we could
      end with both sessions going through one of the ports.
      
      Fixes for cxgb3i from Karen Xie.
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      10eb0f01
  13. 19 5月, 2009 1 次提交
  14. 27 4月, 2009 1 次提交
  15. 21 4月, 2009 1 次提交
  16. 01 4月, 2009 1 次提交
  17. 22 3月, 2009 1 次提交
  18. 14 3月, 2009 5 次提交
  19. 28 2月, 2009 1 次提交
  20. 18 2月, 2009 1 次提交
  21. 22 1月, 2009 1 次提交
  22. 17 1月, 2009 1 次提交
  23. 15 1月, 2009 2 次提交
  24. 13 1月, 2009 2 次提交
    • R
      IB/iser: Add dependency on INFINIBAND_ADDR_TRANS · f5eb3b76
      Randy Dunlap 提交于
      Fix ib_iser build to depend on INFINIBAND_ADDR_TRANS; if INET=y but
      IPV6=n, then the RDMA CM is not built but INFINIBAND_ISER can be
      enabled, leading to:
      
          ERROR: "rdma_destroy_id" [drivers/infiniband/ulp/iser/ib_iser.ko] undefined!
          ERROR: "rdma_connect" [drivers/infiniband/ulp/iser/ib_iser.ko] undefined!
          ERROR: "rdma_destroy_qp" [drivers/infiniband/ulp/iser/ib_iser.ko] undefined!
          ERROR: "rdma_create_id" [drivers/infiniband/ulp/iser/ib_iser.ko] undefined!
          ERROR: "rdma_create_qp" [drivers/infiniband/ulp/iser/ib_iser.ko] undefined!
          ERROR: "rdma_resolve_route" [drivers/infiniband/ulp/iser/ib_iser.ko] undefined!
          ERROR: "rdma_disconnect" [drivers/infiniband/ulp/iser/ib_iser.ko] undefined!
          ERROR: "rdma_resolve_addr" [drivers/infiniband/ulp/iser/ib_iser.ko] undefined!
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      f5eb3b76
    • Y
      IPoIB: Do not join broadcast group if interface is brought down · 50df48f5
      Yossi Etigin 提交于
      Because the ipoib_workqueue is not flushed when ipoib interface is
      brought down, ipoib_mcast_join() may trigger a join to the broadcast
      group after priv->broadcast was set to NULL (during cleanup).  This
      will cause the system to be a member of the broadcast group when
      interface is down.  As a side effect, this breaks the optimization of
      setting the Q_key only when joining the broadcast group.
      Signed-off-by: NYossi Etigin <yosefe@voltaire.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      50df48f5
  25. 10 1月, 2009 1 次提交
    • Y
      IPoIB: Fix loss of connectivity after bonding failover on both sides · a50df398
      Yossi Etigin 提交于
      Fix bonding failover in the case both peers failover and the
      gratuitous ARP is lost.  In that case, the sender side will create an
      ipoib_neigh and issue a path request with the old GID first.  When
      skb->dst->neighbour->ha changes due to ARP refresh, this ipoib_neigh
      will not be added to the path->list of the path of the new GID,
      because the ipoib_neigh already exists.  It will not have an AH
      either, because of sender-side failover.  Therefore, it will not get
      an AH when the path is resolved.
      
      The solution here is to compare GIDs in ipoib_start_xmit() even if
      neigh->ah is invalid.  Comparing with an uninitialized value of
      neigh->dgid should be fine, since a spurious match is harmless (and
      astronomically unlikely too).
      Signed-off-by: NMoni Shoua <monis@voltaire.com>
      Signed-off-by: NYossi Etigin <yosefe@voltaire.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      a50df398
  26. 07 1月, 2009 1 次提交
  27. 30 12月, 2008 2 次提交
  28. 23 12月, 2008 1 次提交
  29. 22 12月, 2008 1 次提交
    • D
      IB/iser: Avoid recv buffer exhaustion caused by unexpected PDUs · bba7ebba
      David Disseldorp 提交于
      iSCSI/iSER targets may send PDUs without a prior request from the
      initiator.  RFC 5046 refers to these PDUs as "unexpected".  NOP-In PDUs
      with itt=RESERVED and Asynchronous Message PDUs occupy this category.
      
      The amount of active "unexpected" PDU's an iSER target may have at any
      time is governed by the MaxOutstandingUnexpectedPDUs key, which is not
      yet supported.
      
      Currently when an iSER target sends an "unexpected" PDU, the
      initiators recv buffer consumed by the PDU is not replaced.  If over
      initial_post_recv_bufs_num "unexpected" PDUs are received then the
      receive queue will run out of receive work requests entirely.
      
      This patch ensures recv buffers consumed by "unexpected" PDUs are
      replaced in the next iser_post_receive_control() call.
      Signed-off-by: NDavid Disseldorp <ddiss@sgi.com>
      Signed-off-by: NKen Sandars <ksandars@sgi.com>
      Acked-by: NOr Gerlitz <ogerlitz@voltaire.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      bba7ebba
  30. 13 11月, 2008 1 次提交
    • Y
      IPoIB: Fix crash in path_rec_completion() · ff79ae80
      Yossi Etigin 提交于
      Fix a crash in path_rec_completion() during an SM up/down loop.  If
      more than one path record request is issued, the first completion
      releases path->done, allowing ipoib_flush_paths() to free the path,
      and thus corrupting it for the second completion.
      
      Commit ee1e2c82 ("IPoIB: Refresh paths instead of flushing them on SM
      change events") added the field path->valid and changed the test "if
      (!path)" to "if (!path || !path->valid)".  This change made it
      possible for a path with an outstanding query to pass the test and
      issue another query on the same path.  Having two queries on the same
      path leads to a crash.
      
      This fixes <https://bugs.openfabrics.org/show_bug.cgi?id=1325>.
      Signed-off-by: NYossi Etigin <yosefe@voltaire.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      ff79ae80