path: root/drivers/net
diff options
authorParav Pandit <>2021-06-08 19:03:24 +0300
committerSaeed Mahameed <>2021-06-16 15:36:40 -0700
commitca36fc4d77b35b8d142cf1ed0eae5ec2e071dc3c (patch)
tree45f09dce0515162c42ff8d81e70333df95ddba67 /drivers/net
parentbbc8222dc49db8d49add0f27bcac33f4b92193dc (diff)
net/mlx5: E-Switch, Allow setting GUID for host PF vport
E-switch should be able to set the GUID of host PF vport. Currently it returns an error. This results in below error when user attempts to configure MAC address of the PF of an external controller. $ devlink port function set pci/0000:03:00.0/196608 \ hw_addr 00:00:00:11:22:33 mlx5_core 0000:03:00.0: mlx5_esw_set_vport_mac_locked:1876:(pid 6715):\ "Failed to set vport 0 node guid, err = -22. RDMA_CM will not function properly for this VF." Check for zero vport is no longer needed. Fixes: 330077d14de1 ("net/mlx5: E-switch, Supporting setting devlink port function mac address") Signed-off-by: Yuval Avnery <> Signed-off-by: Parav Pandit <> Reviewed-by: Bodong Wang <> Reviewed-by: Alaa Hleihel <> Signed-off-by: Saeed Mahameed <>
Diffstat (limited to 'drivers/net')
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/vport.c b/drivers/net/ethernet/mellanox/mlx5/core/vport.c
index 457ad42eaa2a..4c1440a95ad7 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/vport.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/vport.c
@@ -465,8 +465,6 @@ int mlx5_modify_nic_vport_node_guid(struct mlx5_core_dev *mdev,
void *in;
int err;
- if (!vport)
- return -EINVAL;
if (!MLX5_CAP_GEN(mdev, vport_group_manager))
return -EACCES;