From 40b257ecf5d36abf14a4ef98fc2e44dba7100fea Mon Sep 17 00:00:00 2001 Message-Id: <40b257ecf5d36abf14a4ef98fc2e44dba7100fea.1572295393.git.Jim.Somerville@windriver.com> In-Reply-To: References: From: Jim Somerville Date: Mon, 26 Mar 2018 11:03:47 -0400 Subject: [PATCH 2/2] i40e add more debug info for VFs still in reset Signed-off-by: Jim Somerville --- src/i40e_virtchnl_pf.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/i40e_virtchnl_pf.c b/src/i40e_virtchnl_pf.c index 21b4606..dfb9568 100644 --- a/src/i40e_virtchnl_pf.c +++ b/src/i40e_virtchnl_pf.c @@ -4363,8 +4363,8 @@ static int i40e_set_vf_mac(struct i40e_vf *vf, struct i40e_vsi *vsi, msleep(20); } if (!test_bit(I40E_VF_STATE_INIT, &vf->vf_states)) { - dev_err(&pf->pdev->dev, "VF %d still in reset. Try again.\n", - vf->vf_id); + dev_err(&pf->pdev->dev, "%s: VF %d still in reset. Try again.\n", + __func__, vf->vf_id); ret = -EAGAIN; goto error_param; } @@ -4522,8 +4522,8 @@ int i40e_ndo_set_vf_port_vlan(struct net_device *netdev, vf = &pf->vf[vf_id]; vsi = pf->vsi[vf->lan_vsi_idx]; if (!test_bit(I40E_VF_STATE_INIT, &vf->vf_states)) { - dev_err(&pf->pdev->dev, "VF %d still in reset. Try again.\n", - vf_id); + dev_err(&pf->pdev->dev, "%s: VF %d still in reset. Try again.\n", + __func__, vf_id); ret = -EAGAIN; goto error_pvid; } @@ -4678,8 +4678,8 @@ int i40e_ndo_set_vf_bw(struct net_device *netdev, int vf_id, int max_tx_rate) vf = &pf->vf[vf_id]; vsi = pf->vsi[vf->lan_vsi_idx]; if (!test_bit(I40E_VF_STATE_INIT, &vf->vf_states)) { - dev_err(&pf->pdev->dev, "VF %d still in reset. Try again.\n", - vf_id); + dev_err(&pf->pdev->dev, "%s: VF %d still in reset. Try again.\n", + __func__, vf_id); ret = -EAGAIN; goto error; } @@ -4881,8 +4881,8 @@ int i40e_ndo_set_vf_spoofchk(struct net_device *netdev, int vf_id, bool enable) vf = &(pf->vf[vf_id]); if (!test_bit(I40E_VF_STATE_INIT, &vf->vf_states)) { - dev_err(&pf->pdev->dev, "VF %d still in reset. Try again.\n", - vf_id); + dev_err(&pf->pdev->dev, "%s: VF %d still in reset. Try again.\n", + __func__, vf_id); ret = -EAGAIN; goto out; } -- 1.8.3.1