patches for DPDK stable branches
 help / color / mirror / Atom feed
From: "Yang, Qiming" <qiming.yang@intel.com>
To: "Li, Xiaoyun" <xiaoyun.li@intel.com>, "dev@dpdk.org" <dev@dpdk.org>
Cc: "Wu, Jingjing" <jingjing.wu@intel.com>,
	"Li, Xiaoyun" <xiaoyun.li@intel.com>,
	"stable@dpdk.org" <stable@dpdk.org>
Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH] net/i40e: fix PF notify issue when VF not up
Date: Wed, 26 Jul 2017 06:14:35 +0000	[thread overview]
Message-ID: <F5DF4F0E3AFEF648ADC1C3C33AD4DBF16F7C97E0@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1500921763-115209-1-git-send-email-xiaoyun.li@intel.com>



> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Xiaoyun Li
> Sent: Tuesday, July 25, 2017 2:43 AM
> To: dev@dpdk.org
> Cc: Wu, Jingjing <jingjing.wu@intel.com>; Li, Xiaoyun <xiaoyun.li@intel.com>;
> stable@dpdk.org
> Subject: [dpdk-dev] [PATCH] net/i40e: fix PF notify issue when VF not up
> 
> 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
Reviewed-by: Qiming Yang <Qiming.yang@intel.com>

  reply	other threads:[~2017-07-26  6:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-24 18:42 [dpdk-stable] " Xiaoyun Li
2017-07-26  6:14 ` Yang, Qiming [this message]
2017-07-28 11:39 ` [dpdk-stable] [PATCH v2] " Xiaoyun Li
2017-07-28  6:52   ` Wu, Jingjing
2017-07-28  7:06     ` Li, Xiaoyun
2017-07-28 15:48   ` [dpdk-stable] [PATCH v3] " Xiaoyun Li
2017-07-31  2:50     ` Wu, Jingjing
2017-07-31 14:41       ` [dpdk-stable] [dpdk-dev] " Ferruh Yigit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F5DF4F0E3AFEF648ADC1C3C33AD4DBF16F7C97E0@SHSMSX101.ccr.corp.intel.com \
    --to=qiming.yang@intel.com \
    --cc=dev@dpdk.org \
    --cc=jingjing.wu@intel.com \
    --cc=stable@dpdk.org \
    --cc=xiaoyun.li@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).