mlx4_core: Add support for multiple completion event vectors
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Mon, 22 Dec 2008 15:15:03 +0000 (07:15 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 22 Dec 2008 15:15:03 +0000 (07:15 -0800)
commitb8dd786f9417e5885929bfe33a235c76a9c1c569
tree16b38c672980d142ffa0ac0ccdeb4af19c20cc31
parent061e41fdb5047b1fb161e89664057835935ca1d2
mlx4_core: Add support for multiple completion event vectors

When using MSI-X mode, create a completion event queue for each CPU.
Report the number of completion EQs in a new struct mlx4_caps member,
num_comp_vectors, and extend the mlx4_cq_alloc() interface with a
vector parameter so that consumers can specify which completion EQ
should be used to report events for the CQ being created.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/cq.c
drivers/infiniband/hw/mlx4/main.c
drivers/net/mlx4/cq.c
drivers/net/mlx4/en_cq.c
drivers/net/mlx4/en_main.c
drivers/net/mlx4/eq.c
drivers/net/mlx4/main.c
drivers/net/mlx4/mlx4.h
drivers/net/mlx4/profile.c
include/linux/mlx4/device.h