]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Load balance ports in port aggregation mode
authorMoni Shoua <monis@mellanox.com>
Tue, 3 Feb 2015 14:48:39 +0000 (16:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Feb 2015 00:14:25 +0000 (16:14 -0800)
commit89d8e73cb03da24d7733af0500a44ebc5fa4c052
tree93990685d6fdba0784d68bf5ca0dbf523c930bb4
parentca18c2ef1c4c6825ce196a93e08e16294b25d61b
IB/mlx4: Load balance ports in port aggregation mode

When the mlx4 IB (RoCE) device works in link aggregation mode, it
exposes a single port to upper layers. Therefore, applications always
set '1' in port_num attribute when modifying a QP or creating an address handle.

To make sure that a node uses all available ports the mlx4 driver will
override the port_num attribute with a round robin policy.

Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/mlx4/ah.c
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/mlx4/mlx4_ib.h
drivers/infiniband/hw/mlx4/qp.c