]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sdp: Fix bad handling of small rcvbuf size in zcopy
authorAmir Vadai <amirv@mellanox.co.il>
Thu, 10 Jun 2010 08:32:50 +0000 (11:32 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:05:02 +0000 (05:05 -0700)
commitfb8b1936b0e48a27b33706266daa425b0ebd3752
tree65fa95f38f28329e4f9efaf16f2674ef3379bbb0
parent88d40c16807cc6fd0919496ce854b7565041272f
sdp: Fix bad handling of small rcvbuf size in zcopy

- Do not send RdmaRdComp when no buffers
- Same for SendSm
- post at least 3 buffers in RX to have the minimal number of credits
- make purge_tx_ring ignore WR used by RDMA
- fixed a typo, to reschedule tx_cq_poll timer according to tx queue and
  not to rx queue (!)
- Allow credit updates when less than half RX Q is filled

Signed-off-by: Amir Vadai <amirv@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp.h
drivers/infiniband/ulp/sdp/sdp_main.c
drivers/infiniband/ulp/sdp/sdp_rx.c
drivers/infiniband/ulp/sdp/sdp_tx.c
drivers/infiniband/ulp/sdp/sdp_zcopy.c