]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-switch, Avoid extack error log for disabled vport
authorParav Pandit <parav@nvidia.com>
Mon, 2 Nov 2020 10:41:28 +0000 (12:41 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 5 Nov 2020 20:17:06 +0000 (12:17 -0800)
commit19e97ef4f025a702d8854968dc34ffede046c4c7
tree4805417ebbf78d73a4b27e24993ce23f17c1dba7
parent4cefb938e29fccacf8a423b0634d7e67d2dc0430
net/mlx5: E-switch, Avoid extack error log for disabled vport

When E-switch vport is disabled, querying its hardware address is
unsupported.
Avoid setting extack error log message in such case.

Fixes: 41e6e1c6c4b6 ("net/mlx5: E-switch, Support querying port function mac address")
Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c