diff options
author | Raed Salem <raeds@nvidia.com> | 2021-11-01 15:18:53 +0100 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2021-11-16 21:20:23 +0100 |
commit | c4c3176739dfa6efcc5b1d1de4b3fd2b51b048c7 (patch) | |
tree | cc4c9a4ab5ff77d3ae4796e030bdb32f07b43eee /include | |
parent | net/mlx5: Lag, update tracker when state change event received (diff) | |
download | linux-c4c3176739dfa6efcc5b1d1de4b3fd2b51b048c7.tar.xz linux-c4c3176739dfa6efcc5b1d1de4b3fd2b51b048c7.zip |
net/mlx5: E-Switch, return error if encap isn't supported
On regular ConnectX HCAs getting encap mode isn't supported when the
E-Switch is in NONE mode. Current code would return no error code when
trying to get encap mode in such case which is wrong.
Fix by returning error value to indicate failure to caller in such case.
Fixes: 8e0aa4bc959c ("net/mlx5: E-switch, Protect eswitch mode changes")
Signed-off-by: Raed Salem <raeds@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions