IB/mthca: Work around kernel QP starvation
authorMichael S. Tsirkin <mst@mellanox.co.il>
Thu, 12 Apr 2007 15:10:25 +0000 (18:10 +0300)
committerRoland Dreier <rolandd@cisco.com>
Tue, 1 May 2007 00:30:28 +0000 (17:30 -0700)
commit9ba6d5529dd919b442eedf5bef1dd28aca2ee9fe
tree52ee9daec60b678bd304b5936b598296f1d8048f
parentc3af664adbe06803931dbc7a3c8588982d72fac1
IB/mthca: Work around kernel QP starvation

With mthca, RC QPs can starve each other and even UD QPs on the same
hardware schedule queue.  As a result, userspace MPI can starve
e.g. IPoIB traffic, with netdev watchdog warnings getting printed out,
and TCP connections getting stuck or failing.

Reduce the chance of this happening by using three separate hardware
schedule queues: one for userspace RC QPs, one for kernel RC QPs, and
one for all other QPs.

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