DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] net/i40e: fix MAC address removal
@ 2026-09-04 12:16 David Marchand
  2026-09-04 12:16 ` [PATCH 2/2] net/bnxt: " David Marchand
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: David Marchand @ 2026-09-04 12:16 UTC (permalink / raw)
  To: dev; +Cc: Bruce Richardson, Andrew Rybchenko

MAC addresses removal was tied with VMDq pools even when not used.
So if VMDq is not enabled, no address would be ever removed.

Fixes: 9de506a6c781 ("ethdev: skip VMDq pools unless configured")

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
I could not test the change as my setups are KO atm.

Probably worth squashing in 9de506a6c781 before pulling to main

---
 drivers/net/intel/i40e/i40e_ethdev.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/net/intel/i40e/i40e_ethdev.c b/drivers/net/intel/i40e/i40e_ethdev.c
index b6b2d291ee..5bc3c22def 100644
--- a/drivers/net/intel/i40e/i40e_ethdev.c
+++ b/drivers/net/intel/i40e/i40e_ethdev.c
@@ -4513,7 +4513,11 @@ i40e_macaddr_remove(struct rte_eth_dev *dev, uint32_t index)
 
 	macaddr = &(data->mac_addrs[index]);
 
-	pool_sel = dev->data->mac_pool_sel[index];
+	vmdq = (dev->data->dev_conf.rxmode.mq_mode & RTE_ETH_MQ_RX_VMDQ_FLAG) != 0;
+	if (!vmdq)
+		pool_mask = 1;
+	else
+		pool_mask = dev->data->mac_pool_sel[index];
 
 	for (i = 0; i < sizeof(pool_sel) * CHAR_BIT; i++) {
 		if (pool_sel & RTE_BIT64(i)) {
-- 
2.54.0


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-09-08 14:26 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-04 12:16 [PATCH 1/2] net/i40e: fix MAC address removal David Marchand
2026-09-04 12:16 ` [PATCH 2/2] net/bnxt: " David Marchand
2026-09-04 13:08 ` [PATCH 1/2] net/i40e: " David Marchand
2026-09-07 11:17 ` [PATCH v2 " David Marchand
2026-09-07 11:17   ` [PATCH v2 2/2] net/bnxt: " David Marchand
2026-09-07 17:17     ` Stephen Hemminger
2026-09-07 12:57   ` [PATCH v2 1/2] net/i40e: " Bruce Richardson
2026-09-07 13:21     ` David Marchand
2026-09-07 13:40       ` Bruce Richardson
2026-09-08  7:18 ` [PATCH v3 " David Marchand
2026-09-08  7:18   ` [PATCH v3 2/2] net/bnxt: " David Marchand
2026-09-08 14:23     ` Stephen Hemminger
2026-09-08  7:38   ` [PATCH v3 1/2] net/i40e: " Bruce Richardson
2026-09-08 14:23   ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox