diff options
author | Maher Sanalla <msanalla@nvidia.com> | 2024-05-22 22:26:52 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-05-24 13:27:07 +0100 |
commit | 51ef9305b8f40946d65c40368ffb4c14636d369a (patch) | |
tree | 31ebc6ce530805e764f40990e4178599da65d0d8 /net/unix/af_unix.c | |
parent | 128d54fbcb14b8717ecf596d3dbded327b9980b3 (diff) | |
download | linux-51ef9305b8f40946d65c40368ffb4c14636d369a.tar.gz linux-51ef9305b8f40946d65c40368ffb4c14636d369a.tar.bz2 linux-51ef9305b8f40946d65c40368ffb4c14636d369a.zip |
net/mlx5: Lag, do bond only if slaves agree on roce state
Currently, the driver does not enforce that lag bond slaves must have
matching roce capabilities. Yet, in mlx5_do_bond(), the driver attempts
to enable roce on all vports of the bond slaves, causing the following
syndrome when one slave has no roce fw support:
mlx5_cmd_out_err:809:(pid 25427): MODIFY_NIC_VPORT_CONTEXT(0×755) op_mod(0×0)
failed, status bad parameter(0×3), syndrome (0xc1f678), err(-22)
Thus, create HW lag only if bond's slaves agree on roce state,
either all slaves have roce support resulting in a roce lag bond,
or none do, resulting in a raw eth bond.
Fixes: 7907f23adc18 ("net/mlx5: Implement RoCE LAG feature")
Signed-off-by: Maher Sanalla <msanalla@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions