On 5/30/24 19:40, skotesh...@marvell.com wrote:
From: Satha Rao <skotesh...@marvell.com>
Don't send NULL MAC addresses in MAC table update.
Fixes: 1b306359e58 ("virtio: suport multiple MAC addresses")
Cc: step...@networkplumber.org
Cc: sta...@dpdk.org
Signed-off-by: Satha Rao <skotesh...@marvell.com>
---
drivers/net/virtio/virtio_ethdev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/virtio/virtio_ethdev.c
b/drivers/net/virtio/virtio_ethdev.c
index 5175857..70d4839 100644
--- a/drivers/net/virtio/virtio_ethdev.c
+++ b/drivers/net/virtio/virtio_ethdev.c
@@ -913,6 +913,8 @@ static int virtio_dev_xstats_get_names(struct rte_eth_dev
*dev,
struct virtio_net_ctrl_mac *tbl
= rte_is_multicast_ether_addr(addr) ? mc : uc;
+ if (rte_is_zero_ether_addr(addr))
+ break;
memcpy(&tbl->macs[tbl->entries++], addr, RTE_ETHER_ADDR_LEN);
}
Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com>
Thanks,
Maxime