octeontx2-af: cn10k: mcs: Fix copy and paste bug in mcs_bbe_intr_handler()
authorDan Carpenter <error27@gmail.com>
Fri, 18 Nov 2022 15:07:54 +0000 (18:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Nov 2022 13:04:28 +0000 (13:04 +0000)
This code accidentally uses the RX macro twice instead of the RX and TX.

Fixes: 6c635f78c474 ("octeontx2-af: cn10k: mcs: Handle MCS block interrupts")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/mcs.c

index 4a343f853b28bd51a3a0937bc8c94b9c2f139309..c0bedf402da936d68d603046adb9211926889500 100644 (file)
@@ -951,7 +951,7 @@ static void mcs_bbe_intr_handler(struct mcs *mcs, u64 intr, enum mcs_direction d
                else
                        event.intr_mask = (dir == MCS_RX) ?
                                          MCS_BBE_RX_PLFIFO_OVERFLOW_INT :
-                                         MCS_BBE_RX_PLFIFO_OVERFLOW_INT;
+                                         MCS_BBE_TX_PLFIFO_OVERFLOW_INT;
 
                /* Notify the lmac_id info which ran into BBE fatal error */
                event.lmac_id = i & 0x3ULL;