netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Yuval Mintz <yuvalmin@broadcom.com>,
	davem@davemloft.net, netdev@vger.kernel.org
Cc: ariele@broadcom.com
Subject: Re: [PATCH net-next 4/6] bnx2x: no error when RSS configuration fails
Date: Tue, 24 Dec 2013 01:36:37 +0300	[thread overview]
Message-ID: <52B8BAF5.7070904@cogentembedded.com> (raw)
In-Reply-To: <1387824283-15687-5-git-send-email-yuvalmin@broadcom.com>

Hello.

On 12/23/2013 09:44 PM, Yuval Mintz wrote:

> It's possible for VMs with older versions of bnx2x to run over a hypervisor
> with latest driver. If a VF in such a VM does not support RSS configuration,
> the PF driver in the hypervisor will print an error message to system logs.

> This changes the error message into a debug message, as this is very likely
> a false alarm for an older VF (i.e., VF manages to work properly; PF simply
> cannot configure the additional queues for it).

> Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
> Signed-off-by: Ariel Elior <ariele@broadcom.com>
> ---
>   drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c | 12 ++++++++----
>   1 file changed, 8 insertions(+), 4 deletions(-)

> diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
> index efa8a15..c7aaf5b 100644
> --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
> +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c
> @@ -800,14 +800,18 @@ int bnx2x_vfpf_config_rss(struct bnx2x *bp,
>   	}
>
>   	if (resp->hdr.status != PFVF_STATUS_SUCCESS) {
> -		BNX2X_ERR("failed to send rss message to PF over Vf PF channel %d\n",
> -			  resp->hdr.status);
> -		rc = -EINVAL;
> +		/* Since older drivers don't support this feature (and VF has
> +		 * no way of knowing other than failing this), don't propogate

    Sorry for the grammar nitpicking but it's "propAgate".

> +		 * an error in this case.
> +		 */
> +		DP(BNX2X_MSG_IOV,
> +		   "Failed to send rss message to PF over VF-PF channel [%d]\n",
> +		   resp->hdr.status);
>   	}

WBR, Sergei

  reply	other threads:[~2013-12-23 21:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-23 18:44 [PATCH net-next 0/6] bnx2x: new features patch series Yuval Mintz
2013-12-23 18:44 ` [PATCH net-next 1/6] bnx2x: Add support for Multi-Function UNDI Yuval Mintz
2013-12-23 18:44 ` [PATCH net-next 2/6] bnx2x: Add AER support (missing bits) Yuval Mintz
2013-12-23 18:44 ` [PATCH net-next 3/6] bnx2x: add Big-Endian ethtool comment Yuval Mintz
2013-12-23 18:44 ` [PATCH net-next 4/6] bnx2x: no error when RSS configuration fails Yuval Mintz
2013-12-23 22:36   ` Sergei Shtylyov [this message]
2013-12-23 18:44 ` [PATCH net-next 5/6] bnx2x: Add num of VFs to Management statistics Yuval Mintz
2013-12-23 18:44 ` [PATCH net-next 6/6] bnx2x: add VF Multicast filters support Yuval Mintz

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=52B8BAF5.7070904@cogentembedded.com \
    --to=sergei.shtylyov@cogentembedded.com \
    --cc=ariele@broadcom.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=yuvalmin@broadcom.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).