]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/mlx4: Pass send queue sizes from userspace to kernel
authorEli Cohen <eli@mellanox.co.il>
Thu, 17 May 2007 07:32:41 +0000 (10:32 +0300)
committerRoland Dreier <rolandd@cisco.com>
Sun, 20 May 2007 17:18:04 +0000 (10:18 -0700)
commit2446304dd687488c054d0437f2aeef1ef2bfbd02
tree70f999aca66563488d7b38ad226de34a071cfa90
parent59b0ed121297b57abb2352bdc8313959e7cb5635
IB/mlx4: Pass send queue sizes from userspace to kernel

Pass the number of WQEs for the send queue and their size from userspace
to the kernel to avoid having to keep the QP size calculations in sync
between the kernel driver and libmlx4.  This fixes a bug seen with the
current mlx4_ib driver and current libmlx4 caused by a difference in the
calculated sizes for SQ WQEs.  Also, this gives more flexibility for
userspace to experiment with using multiple WQE BBs for a single SQ WQE.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/qp.c
drivers/infiniband/hw/mlx4/user.h