RDMA/nes: CM connection setup/teardown rework
authorFaisal Latif <flatif@neteffect.com>
Fri, 25 Jul 2008 03:50:45 +0000 (20:50 -0700)
committerRoland Dreier <rolandd@cisco.com>
Fri, 25 Jul 2008 03:50:45 +0000 (20:50 -0700)
commit6492cdf3a24fd620660c399745b5e169a0ed27d6
tree474a0e937cda0b4cff70bc47a657d8338fb91d22
parentfb2e405fc1fc8b20d9c78eaa1c7fd5a297efde43
RDMA/nes: CM connection setup/teardown rework

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: Faisal Latif <flatif@neteffect.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes.c
drivers/infiniband/hw/nes/nes_cm.c
drivers/infiniband/hw/nes/nes_cm.h
drivers/infiniband/hw/nes/nes_hw.c
drivers/infiniband/hw/nes/nes_verbs.c