1. 11 10月, 2011 1 次提交
  2. 10 12月, 2009 3 次提交
    • F
      RDMA/nes: Fix crash in nes_accept() · c5a7d489
      Faisal Latif 提交于
      While running IMP_EXT's window test, we saw a crash in nes_accept().
      Here is the sequence of what happened:
      
      (1) In MVAPICH2, connect request is received for port #0.
      
      FIX:  Add a nes_connect() check to make sure local or remote tcp port
            is not 0.
      
      (2) Remote node's (passive) TCP stack sends a reset when it gets a
          connect request because of port = 0.  Active side set the connect
          error to IW_CM_EVENT_STATUS_REJECTED when it received the RST from
          remote node.
      
      FIX: The corect error code is -ECONNRESET.
      
      (3) Wrong error code of IW_CM_EVENT_STATUS_REJECTED causes the core to
          destroy its listener ports.  Here there are connections that may
          have sent an MPA request up and waiting for accept or reject.  But
          the listener and its cm_nodes have been freed already causing the
          crash noticed.
      
      FIX: The cm_node is freed only if its state is not
           NES_CM_STATE_MPAREQ_RCVD.  If cm_node's state is
           NES_CM_STATE_MPAREQ_RCVD then its new state is set to
           NES_CM_STATE_LISTENER_DESTROYED and it is not freed.  When
           nes_accept() or nes_reject() is received, its state is checked
           for NES_CM_STATE_LISTENER_DESTROYED and in this case the cm_node
           is freed and error is returned.
      Signed-off-by: NFaisal Latif <faisal.latif@intel.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      c5a7d489
    • F
      RDMA/nes: Fix MAX_CM_BUFFER define · 9b84dbe7
      Faisal Latif 提交于
      Change MAX_CM_BUFFER for MPA frames to be conformant to RFC 5044:
      we need 512 + 20 instead of 512.
      Signed-off-by: NFaisal Latif <faisal.latif@intel.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      9b84dbe7
    • C
      RDMA/nes: Update copyright and branding string · fa6c87d5
      Chien Tung 提交于
      Update copyright from Intel-NE, Inc. to Intel Corporation.  Use proper
      branding string in Kconfig and simplify description.
      Signed-off-by: NChien Tung <chien.tin.tung@intel.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      fa6c87d5
  3. 06 9月, 2009 1 次提交
  4. 28 4月, 2009 1 次提交
  5. 09 4月, 2009 1 次提交
  6. 07 3月, 2009 2 次提交
    • F
      RDMA/nes: Handle MPA Reject message properly · 9d5ab133
      Faisal Latif 提交于
      While doing testing, there are failures as MPA Reject call is not
      handled.  To handle MPA Reject call, following changes are done:
      
      *Handle inbound/outbound MPA Reject response message.
      	When nes_reject() is called for pending MPA request reply,
      	send the MPA Reject message to its peer (active
      	side)cm_node. The peer cm_node (active side) will indicate
      	Reject message event for the pending Connect Request.
      
      *Handle MPA Reject response message for loopback connections and listener.
      	When MPA Request is rejected, check if it is a loopback
      	connection and if it is then it will send Reject message event
      	to its peer loopback node. Also when destroying listener,
      	check if the cm_nodes for that listener are loopback or not.
      
      *Add gracefull connection close with the MPA Reject response message.
      	Send gracefull close (FIN, FIN ACK..) to terminate the cm_nodes.
      
      *Some code re-org while making the above changes.
      	Removed recv_list and recv_list_lock from the cm_node
      	structure as there can be only one receive close entry on the
      	timer. Also implemented handle_recv_entry() as receive close
      	entry is processed from both nes_rem_ref_cm_node() as well as
      	nes_cm_timer_tick().
      Signed-off-by: NFaisal Latif <faisal.latif@intel.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      9d5ab133
    • C
      RDMA/nes: Update copyright to new legal entity and year · cd6853d3
      Chien Tung 提交于
      Update copyright to the new legal entity, Intel-NE, Inc., an Intel
      company.  Update copyright for the new year.
      Signed-off-by: NChien Tung <chien.tin.tung@intel.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      cd6853d3
  7. 25 12月, 2008 1 次提交
  8. 06 12月, 2008 3 次提交
  9. 25 7月, 2008 1 次提交
    • F
      RDMA/nes: CM connection setup/teardown rework · 6492cdf3
      Faisal Latif 提交于
      Major rework of CM connection setup/teardown.  We had a number of issues
      with MPI applications not starting/terminating properly over time.
      With these changes we were able to run longer on larger clusters.
      
      * Remove memory allocation from nes_connect() and nes_cm_connect().
      * Fix mini_cm_dec_refcnt_listen() when destroying listener.
      * Remove unnecessary code from schedule_nes_timer() and nes_cm_timer_tick().
      * Functionalize mini_cm_recv_pkt() and process_packet().
      * Clean up cm_node->ref_count usage.
      * Reuse skbs if available.
      Signed-off-by: NFaisal Latif <flatif@neteffect.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      6492cdf3
  10. 17 4月, 2008 2 次提交
  11. 05 2月, 2008 1 次提交