patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Luca Boccassi <bluca@debian.org>
To: Kalesh A P <kalesh-anakkur.purayil@broadcom.com>, stable@dpdk.org
Cc: ajit.khaparde@broadcom.com
Subject: Re: [dpdk-stable] [PATCH 19.11] net/bnxt: fix logical AND in if condition
Date: Thu, 06 Aug 2020 11:00:37 +0100	[thread overview]
Message-ID: <ee594a63d2a91352079abd4afc44aa00f1e025e8.camel@debian.org> (raw)
In-Reply-To: <20200729132142.15290-1-kalesh-anakkur.purayil@broadcom.com>

On Wed, 2020-07-29 at 18:51 +0530, Kalesh A P wrote:
> From: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
> 
> [ upstream commit 90c957ef3b11f361dd8e6519d9e195f01295b23e ]
> 
> The if condition in bnxt_restore_mac_filters needs to check for
> the result of logical AND. But it was not doing it resulting in
> an incorrect check.
> 
> Fixes: b02f1573cd07 ("net/bnxt: restore MAC filters during reset recovery")
> 
> Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
> Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
> ---
>  drivers/net/bnxt/bnxt_ethdev.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
> index f1bd575..4c64525 100644
> --- a/drivers/net/bnxt/bnxt_ethdev.c
> +++ b/drivers/net/bnxt/bnxt_ethdev.c
> @@ -3950,7 +3950,7 @@ static int bnxt_restore_mac_filters(struct bnxt *bp)
>  	uint16_t i;
>  	int rc;
>  
> -	if (BNXT_VF(bp) & !BNXT_VF_IS_TRUSTED(bp))
> +	if (BNXT_VF(bp) && !BNXT_VF_IS_TRUSTED(bp))
>  		return 0;
>  
>  	rc = bnxt_dev_info_get_op(dev, &dev_info);

Thanks, applied and pushed.

-- 
Kind regards,
Luca Boccassi

      reply	other threads:[~2020-08-06 10:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-29 13:21 Kalesh A P
2020-08-06 10:00 ` Luca Boccassi [this message]

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=ee594a63d2a91352079abd4afc44aa00f1e025e8.camel@debian.org \
    --to=bluca@debian.org \
    --cc=ajit.khaparde@broadcom.com \
    --cc=kalesh-anakkur.purayil@broadcom.com \
    --cc=stable@dpdk.org \
    /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).