From: Rasesh Mody Date: Sat, 1 Jul 2017 19:30:01 +0000 (-0700) Subject: net/qede: add missing check for VNI X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d2a2468e36c08fc84d40db967f7783bf0e9554ed;p=dpdk.git net/qede: add missing check for VNI Add missing check for VNI field while adding unicast filter. Signed-off-by: Rasesh Mody --- diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index ad264ba741..a0616a40d0 100644 --- 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",