b759f327a1
Kernel update to CentOS 7.5 versions are to be paired with updated out-of-tree kernel modules, mostly for compilation purposes. Depends-On: https://review.openstack.org/580689 Change-Id: I8ef3f9edccfb6afa8bf68606ede7d1ef70c825d3 Signed-off-by: Jason McKenna <jason.mckenna@windriver.com> Story: 2002761 Task: 22841 Signed-off-by: Scott Little <scott.little@windriver.com>
76 lines
2.8 KiB
Diff
76 lines
2.8 KiB
Diff
From d60e87567eb5418fbb848bf30f72d3d8bec3bad6 Mon Sep 17 00:00:00 2001
|
|
Message-Id: <d60e87567eb5418fbb848bf30f72d3d8bec3bad6.1528830095.git.Jim.Somerville@windriver.com>
|
|
In-Reply-To: <412fdc8c0d51500e42e76e788ece3ca7dd260ced.1528830095.git.Jim.Somerville@windriver.com>
|
|
References: <412fdc8c0d51500e42e76e788ece3ca7dd260ced.1528830095.git.Jim.Somerville@windriver.com>
|
|
From: Jim Somerville <Jim.Somerville@windriver.com>
|
|
Date: Mon, 26 Mar 2018 11:03:47 -0400
|
|
Subject: [PATCH 2/3] i40e add more debug info for VFs still in reset
|
|
|
|
Signed-off-by: Jim Somerville <Jim.Somerville@windriver.com>
|
|
---
|
|
src/i40e_virtchnl_pf.c | 20 ++++++++++----------
|
|
1 file changed, 10 insertions(+), 10 deletions(-)
|
|
|
|
diff --git a/src/i40e_virtchnl_pf.c b/src/i40e_virtchnl_pf.c
|
|
index 126ec19..da29fc3 100644
|
|
--- a/src/i40e_virtchnl_pf.c
|
|
+++ b/src/i40e_virtchnl_pf.c
|
|
@@ -3077,8 +3077,8 @@ int i40e_ndo_set_vf_mac(struct net_device *netdev, int vf_id, u8 *mac)
|
|
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_id);
|
|
+ dev_err(&pf->pdev->dev, "%s: VF %d still in reset. Try again.\n",
|
|
+ __func__, vf_id);
|
|
ret = -EAGAIN;
|
|
goto error_param;
|
|
}
|
|
@@ -3218,8 +3218,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;
|
|
}
|
|
@@ -3350,8 +3350,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;
|
|
}
|
|
@@ -3443,8 +3443,8 @@ int i40e_ndo_get_vf_config(struct net_device *netdev,
|
|
/* first vsi is always the LAN vsi */
|
|
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_param;
|
|
}
|
|
@@ -3576,8 +3576,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
|
|
|