mlx4_core: Add QP range reservation support
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Fri, 10 Oct 2008 19:01:37 +0000 (12:01 -0700)
committerRoland Dreier <rolandd@cisco.com>
Fri, 10 Oct 2008 19:01:37 +0000 (12:01 -0700)
commita3cdcbfa8fb1fccfe48d359da86e99546610c562
treea25715b6e9169568c53f80dc9333e024f389b383
parentf6bccf695431da0e9bd773550ae91b8cb9ffb227
mlx4_core: Add QP range reservation support

To allow allocating an aligned range of consecutive QP numbers, add an
interface to reserve an aligned range of QP numbers and have the QP
allocation function always take a QP number.

This will be used for RSS support in the mlx4_en Ethernet driver and
also potentially by IPoIB RSS support.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/qp.c
drivers/net/mlx4/alloc.c
drivers/net/mlx4/mlx4.h
drivers/net/mlx4/qp.c
include/linux/mlx4/device.h