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:
3d5083f
)
net/qede: add missing check for VNI
author
Rasesh Mody
<rasesh.mody@cavium.com>
Sat, 1 Jul 2017 19:30:01 +0000
(12:30 -0700)
committer
Ferruh Yigit
<ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:57 +0000
(15:00 +0200)
Add missing check for VNI field while adding unicast filter.
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/qede_ethdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/qede/qede_ethdev.c
b/drivers/net/qede/qede_ethdev.c
index
ad264ba
..
a0616a4
100644
(file)
--- a/
drivers/net/qede/qede_ethdev.c
+++ b/
drivers/net/qede/qede_ethdev.c
@@
-571,6
+571,7
@@
qede_ucast_filter(struct rte_eth_dev *eth_dev, struct ecore_filter_ucast *ucast,
SLIST_FOREACH(tmp, &qdev->uc_list_head, list) {
if ((memcmp(mac_addr, &tmp->mac,
ETHER_ADDR_LEN) == 0) &&
+ ucast->vni == tmp->vni &&
ucast->vlan == tmp->vlan) {
DP_ERR(edev, "Unicast MAC is already added"
" with vlan = %u, vni = %u\n",