diff options
author | Moni Shoua <monis@mellanox.com> | 2015-02-03 15:48:39 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-05 01:14:25 +0100 |
commit | c6215745b66a7fbeeda1a826f94dd864a2ccf654 (patch) | |
tree | 93990685d6fdba0784d68bf5ca0dbf523c930bb4 /drivers/infiniband/hw/mlx4/ah.c | |
parent | IB/mlx4: Create mirror flows in port aggregation mode (diff) | |
download | linux-c6215745b66a7fbeeda1a826f94dd864a2ccf654.tar.xz linux-c6215745b66a7fbeeda1a826f94dd864a2ccf654.zip |
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>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/ah.c')
-rw-r--r-- | drivers/infiniband/hw/mlx4/ah.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx4/ah.c b/drivers/infiniband/hw/mlx4/ah.c index 2d8c3397774f..f50a546224ad 100644 --- a/drivers/infiniband/hw/mlx4/ah.c +++ b/drivers/infiniband/hw/mlx4/ah.c @@ -36,6 +36,7 @@ #include <linux/slab.h> #include <linux/inet.h> #include <linux/string.h> +#include <linux/mlx4/driver.h> #include "mlx4_ib.h" |