Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Aug 2020 16:30:52 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r365002 - head/sys/dev/mlx5/mlx5_core
Message-ID:  <202008311630.07VGUqaO048119@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008311630.07VGUqaO048119>