]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_core: Support multiple pre-reserved QP regions
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Wed, 22 Oct 2008 17:25:29 +0000 (10:25 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 22 Oct 2008 17:25:29 +0000 (10:25 -0700)
commitedfc14a99f565eb9bbfa3cf3dfe447d76182df5e
treeaa495ec31b7372580f9ec50acead1d170fd70aab
parent421f28d4b9a583e04bbd2d635b9d950651f27a03
mlx4_core: Support multiple pre-reserved QP regions

For ethernet support, we need to reserve QPs for the ethernet and
fibre channel driver.  The QPs are reserved at the end of the QP
table.  (This way we assure that they are aligned to their size)

We need to consider these reserved ranges in bitmap creation, so we
extend the mlx4 bitmap utility functions to allow reserved ranges at
both the bottom and the top of the range.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
13 files changed:
drivers/net/mlx4/alloc.c
drivers/net/mlx4/cq.c
drivers/net/mlx4/eq.c
drivers/net/mlx4/fw.c
drivers/net/mlx4/fw.h
drivers/net/mlx4/main.c
drivers/net/mlx4/mcg.c
drivers/net/mlx4/mlx4.h
drivers/net/mlx4/mr.c
drivers/net/mlx4/pd.c
drivers/net/mlx4/qp.c
drivers/net/mlx4/srq.c
include/linux/mlx4/device.h