All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net/i40e: fix PF notify issue when VF not up
@ 2017-07-24 18:42 Xiaoyun Li
  2017-07-26  6:14 ` Yang, Qiming
  2017-07-28 11:39 ` [PATCH v2] " Xiaoyun Li
  0 siblings, 2 replies; 8+ messages in thread
From: Xiaoyun Li @ 2017-07-24 18:42 UTC (permalink / raw)
  To: dev; +Cc: jingjing.wu, Xiaoyun Li, stable

This patch modifies PF notify error to warning when not
starting up VF.

Fixes: 4861cde46116 ("i40e: new poll mode driver")
Cc: stable@dpdk.org

Signed-off-by: Xiaoyun Li <xiaoyun.li@intel.com>
---
 drivers/net/i40e/i40e_pf.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/net/i40e/i40e_pf.c b/drivers/net/i40e/i40e_pf.c
index b4cf57f..2a29f1a 100644
--- a/drivers/net/i40e/i40e_pf.c
+++ b/drivers/net/i40e/i40e_pf.c
@@ -267,8 +267,12 @@ i40e_pf_host_send_msg_to_vf(struct i40e_pf_vf *vf,
 	ret = i40e_aq_send_msg_to_vf(hw, abs_vf_id, opcode, retval,
 						msg, msglen, NULL);
 	if (ret) {
-		PMD_INIT_LOG(ERR, "Fail to send message to VF, err %u",
-			     hw->aq.asq_last_status);
+		if (vf->state == I40E_VF_INACTIVE)
+			PMD_DRV_LOG(WARNING, "Warning! VF %u is inactive now!",
+				abs_vf_id);
+		else
+			PMD_INIT_LOG(ERR, "Fail to send message to VF, err %u",
+				hw->aq.asq_last_status);
 	}
 
 	return ret;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-07-31 14:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-24 18:42 [PATCH] net/i40e: fix PF notify issue when VF not up Xiaoyun Li
2017-07-26  6:14 ` Yang, Qiming
2017-07-28 11:39 ` [PATCH v2] " Xiaoyun Li
2017-07-28  6:52   ` Wu, Jingjing
2017-07-28  7:06     ` Li, Xiaoyun
2017-07-28 15:48   ` [PATCH v3] " Xiaoyun Li
2017-07-31  2:50     ` Wu, Jingjing
2017-07-31 14:41       ` Ferruh Yigit

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.