cxgbe(4): Skip non-existent blocks in the interrupt handler

Fixes:	7b80c8b7d8 cxgbe(4): Expanded interrupt handling for T7
MFC after:	1 week
Sponsored by:	Chelsio Communications
This commit is contained in:
Navdeep Parhar
2025-11-13 13:14:01 -08:00
parent c56a266434
commit b676b5e5e0
+8 -2
View File
@@ -6134,8 +6134,11 @@ static bool mem_intr_handler(struct adapter *adap, int idx, int flags)
fatal |= t4_handle_intr(adap, &ii, 0, flags);
}
break;
case MEM_MC1: i = 1;
/* fall through */
case MEM_MC1:
if (is_t4(adap) || is_t6(adap))
return (false);
i = 1;
/* fall through */
case MEM_MC0:
snprintf(rname, sizeof(rname), "MC%u_INT_CAUSE", i);
if (is_t4(adap)) {
@@ -6387,6 +6390,9 @@ static bool mac_intr_handler(struct adapter *adap, int port, int flags)
struct intr_info ii;
bool fatal = false;
if (port > 1 && is_t6(adap))
return (false);
if (is_t4(adap)) {
snprintf(name, sizeof(name), "XGMAC_PORT%u_INT_CAUSE", port);
ii.name = &name[0];