Revision ca36fc4d77b35b8d142cf1ed0eae5ec2e071dc3c authored by Parav Pandit on 08 June 2021, 16:03:24 UTC, committed by Saeed Mahameed on 16 June 2021, 22:36:40 UTC
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 <yuvalav@nvidia.com>
Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Bodong Wang <bodong@nvidia.com>
Reviewed-by: Alaa Hleihel <alaa@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
1 parent bbc8222
History
File Mode Size
bfq-iosched.rst -rw-r--r-- 25.7 KB
biodoc.rst -rw-r--r-- 51.4 KB
biovecs.rst -rw-r--r-- 6.8 KB
blk-mq.rst -rw-r--r-- 7.3 KB
capability.rst -rw-r--r-- 319 bytes
cmdline-partition.rst -rw-r--r-- 1.6 KB
data-integrity.rst -rw-r--r-- 11.9 KB
deadline-iosched.rst -rw-r--r-- 2.9 KB
index.rst -rw-r--r-- 351 bytes
inline-encryption.rst -rw-r--r-- 13.8 KB
ioprio.rst -rw-r--r-- 4.7 KB
kyber-iosched.rst -rw-r--r-- 422 bytes
null_blk.rst -rw-r--r-- 4.5 KB
pr.rst -rw-r--r-- 3.8 KB
queue-sysfs.rst -rw-r--r-- 11.2 KB
request.rst -rw-r--r-- 2.5 KB
stat.rst -rw-r--r-- 4.2 KB
switching-sched.rst -rw-r--r-- 1.2 KB
writeback_cache_control.rst -rw-r--r-- 3.9 KB

back to top