Date: Mon, 7 Sep 2020 10:51:19 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r365413 - stable/11/sys/dev/mlx5/mlx5_core Message-ID: <202009071051.087ApJAN096049@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Mon Sep 7 10:51:19 2020 New Revision: 365413 URL: https://svnweb.freebsd.org/changeset/base/365413 Log: MFC r365002: mlx5 sriov: add error message for failed MAC programming on VF. Modified: stable/11/sys/dev/mlx5/mlx5_core/mlx5_main.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/dev/mlx5/mlx5_core/mlx5_main.c ============================================================================== --- stable/11/sys/dev/mlx5/mlx5_core/mlx5_main.c Mon Sep 7 10:50:47 2020 (r365412) +++ stable/11/sys/dev/mlx5/mlx5_core/mlx5_main.c Mon Sep 7 10:51:19 2020 (r365413) @@ -1820,6 +1820,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?202009071051.087ApJAN096049>