* net/bonding: not handle vlan slow packet
@ 2016-10-31 2:14 linhaifeng
0 siblings, 0 replies; only message in thread
From: linhaifeng @ 2016-10-31 2:14 UTC (permalink / raw)
To: dev@dpdk.org, declan.doherty
if rx vlan offload is enable we should not handle vlan slow
packets too.
Signed-off-by: Haifeng Lin <haifeng.lin@huawei.com>
diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c
index 43334f7..6c74bba 100644
--- a/drivers/net/bonding/rte_eth_bond_pmd.c
+++ b/drivers/net/bonding/rte_eth_bond_pmd.c
@@ -169,7 +169,7 @@ bond_ethdev_rx_burst_8023ad(void *queue, struct rte_mbuf **bufs,
/* Remove packet from array if it is slow packet or slave is not
* in collecting state or bondign interface is not in promiscus
* mode and packet address does not match. */
- if (unlikely((hdr->ether_type == ether_type_slow_be ||
+ if (unlikely(((hdr->ether_type == ether_type_slow_be && !bufs[j]->vlan_tci) ||
!collecting || (!promisc &&
!is_multicast_ether_addr(&hdr->d_addr) &&
!is_same_ether_addr(&bond_mac, &hdr->d_addr))) &&
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-10-31 2:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-31 2:14 net/bonding: not handle vlan slow packet linhaifeng
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.