git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82c4fb8
)
net/bnxt: fix logical AND in if condition
author
Ajit Khaparde
<ajit.khaparde@broadcom.com>
Fri, 24 Jul 2020 00:04:37 +0000
(17:04 -0700)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Wed, 29 Jul 2020 22:41:23 +0000
(
00:41
+0200)
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")
Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/bnxt/bnxt_ethdev.c
b/drivers/net/bnxt/bnxt_ethdev.c
index
dfc4b41
..
510a0d9
100644
(file)
--- a/
drivers/net/bnxt/bnxt_ethdev.c
+++ b/
drivers/net/bnxt/bnxt_ethdev.c
@@
-4372,7
+4372,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);