]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit93fc9e1bb6507dde945c2eab68c93e1066ac3691
treeaa495ec31b7372580f9ec50acead1d170fd70aab
parenta3cdcbfa8fb1fccfe48d359da86e99546610c562
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