Skip to contentSkip to conversation

ixgbe: initialize bitmap for storing MDD events

PATCH New Michal Swiatkowski 1 participant 1 message Mar 18, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ixgbe: initialize bitmap for storing MDD events

Uninitialized bitmap is sent to function which is only setting corresponding bits when MDD event occurs. Heaving random values in this bitmap leads to showing MDD events when there is no such events. Fix it by setting bitmap to all zeroes before calling handle_mdd() function.

Fixes 61cb1bcf7e2a ("ixgbe: check for MDD events")

---
To be squashed with 61cb1bcf7e2a ("ixgbe: check for MDD events"). The changes are only on dev-queue. There is a bug found by validation. Tony, if you prefer I can send whole series with this fix in. Up to you. Thanks

---
 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c +1 -0
index 8a1fc7f06007..bd9a054d7d94 100644
@@ -1374,6 +1374,7 @@ bool ixgbe_check_mdd_event(struct ixgbe_adapter *adapter)
 		return false;
 
 	/* Did we have a malicious event */
+	bitmap_zero(vf_bitmap, 64);
 	hw->mac.ops.handle_mdd(hw, vf_bitmap);
 
 	/* Log any blocked queues and release lock */
Signature · 1 line
2.42.0