]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
IPoIB/cm: Optimize stale connection detection
authorMichael S. Tsirkin <mst@dev.mellanox.co.il>
Mon, 14 May 2007 04:26:51 +0000 (07:26 +0300)
committerRoland Dreier <rolandd@cisco.com>
Mon, 14 May 2007 21:11:01 +0000 (14:11 -0700)
commit7c5b9ef8577bfa7b74ea58fc9ff2934ffce13532
tree4a39ad8609225261bc17f4acc16447944d875a12
parentbd18c112774db5bb887adb981ffbe9bfe00b2f3a
IPoIB/cm: Optimize stale connection detection

In the presence of some running RX connections, we repeat
queue_delayed_work calls each 4 RX WRs, which is a waste.  It's enough
to start stale task when a first passive connection is added, and
rerun it every IPOIB_CM_RX_DELAY as long as there are outstanding
passive connections.

This removes some code from RX data path.

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_cm.c