Skip to content

Commit 0d8e143

Browse files
anjalisinghai1Jeff Kirsher
authored andcommitted
i40e: Add IWARP support for X722
X722 supports IWARP, this patch handles checking for PE critical errors. Since the driver doesn't support the IWARP interface for now, this patch just does bare minimum to log a message oif a PE critical error happens. Signed-off-by: Anjali Singhai Jain <[email protected]> Signed-off-by: Catherine Sullivan <[email protected]> Tested-by: Jim Young <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 527274c commit 0d8e143

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/net/ethernet/intel/i40e/i40e_main.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2908,6 +2908,9 @@ static void i40e_enable_misc_int_causes(struct i40e_pf *pf)
29082908
I40E_PFINT_ICR0_ENA_VFLR_MASK |
29092909
I40E_PFINT_ICR0_ENA_ADMINQ_MASK;
29102910

2911+
if (pf->flags & I40E_FLAG_IWARP_ENABLED)
2912+
val |= I40E_PFINT_ICR0_ENA_PE_CRITERR_MASK;
2913+
29112914
if (pf->flags & I40E_FLAG_PTP)
29122915
val |= I40E_PFINT_ICR0_ENA_TIMESYNC_MASK;
29132916

@@ -3198,6 +3201,13 @@ static irqreturn_t i40e_intr(int irq, void *data)
31983201
(icr0 & I40E_PFINT_ICR0_SWINT_MASK))
31993202
pf->sw_int_count++;
32003203

3204+
if ((pf->flags & I40E_FLAG_IWARP_ENABLED) &&
3205+
(ena_mask & I40E_PFINT_ICR0_ENA_PE_CRITERR_MASK)) {
3206+
ena_mask &= ~I40E_PFINT_ICR0_ENA_PE_CRITERR_MASK;
3207+
icr0 &= ~I40E_PFINT_ICR0_ENA_PE_CRITERR_MASK;
3208+
dev_info(&pf->pdev->dev, "cleared PE_CRITERR\n");
3209+
}
3210+
32013211
/* only q0 is used in MSI/Legacy mode, and none are used in MSIX */
32023212
if (icr0 & I40E_PFINT_ICR0_QUEUE_0_MASK) {
32033213

0 commit comments

Comments
 (0)