Author: kib
Date: Mon Aug 31 16:30:52 2020
New Revision: 365002
URL: https://svnweb.freebsd.org/changeset/base/365002
Log:
mlx5 sriov: add error message for failed MAC programming on VF.
Sponsored by: Mellanox Technologies - Nvidia
MFC after: 1 week
Modified:
head/sys/dev/mlx5/mlx5_core/mlx5_main.c
Modified: head/sys/dev/mlx5/mlx5_core/mlx5_main.c
==============================================================================
--- head/sys/dev/mlx5/mlx5_core/mlx5_main.c Mon Aug 31 16:27:03 2020
(r365001)
+++ head/sys/dev/mlx5/mlx5_core/mlx5_main.c Mon Aug 31 16:30:52 2020
(r365002)
@@ -1839,6 +1839,11 @@ mlx5_iov_add_vf(device_t dev, uint16_t vfnum, const nv
&mac_size);
error = -mlx5_eswitch_set_vport_mac(priv->eswitch,
vfnum + 1, __DECONST(u8 *, mac));
+ if (error != 0) {
+ mlx5_core_err(core_dev,
+ "setting MAC for VF %d failed, error %d\n",
+ vfnum + 1, error);
+ }
}
error = -mlx5_eswitch_set_vport_state(priv->eswitch, vfnum + 1,
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"