IB/srp: Split send and recieve CQs to reduce number of interrupts
authorBart Van Assche <bart.vanassche@gmail.com>
Tue, 2 Feb 2010 19:23:54 +0000 (19:23 +0000)
committerRoland Dreier <rolandd@cisco.com>
Tue, 2 Mar 2010 07:51:38 +0000 (23:51 -0800)
commit9c03dc9f19351edf25c1107e3cfd3cc538c7ab9e
treeb96f2a43eeeed19d60dc0e6337d9fc91f1f6d804
parent676ad585531e965416fd958747894541dabcec96
IB/srp: Split send and recieve CQs to reduce number of interrupts

We can reduce the number of IB interrupts from two interrupts per
srp_queuecommand() call to one by using separate CQs for send and
receive completions and processing send completions by polling every
time a TX IU is allocated.

Receive completion events still trigger an interrupt.

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/srp/ib_srp.c
drivers/infiniband/ulp/srp/ib_srp.h