Author: kib
Date: Mon Sep  7 10:36:53 2020
New Revision: 365408
URL: https://svnweb.freebsd.org/changeset/base/365408

Log:
  MFC r365002:
  mlx5 sriov: add error message for failed MAC programming on VF.

Modified:
  stable/12/sys/dev/mlx5/mlx5_core/mlx5_main.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/mlx5/mlx5_core/mlx5_main.c
==============================================================================
--- stable/12/sys/dev/mlx5/mlx5_core/mlx5_main.c        Mon Sep  7 10:36:07 
2020        (r365407)
+++ stable/12/sys/dev/mlx5/mlx5_core/mlx5_main.c        Mon Sep  7 10:36:53 
2020        (r365408)
@@ -1838,6 +1838,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-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to