|
@@ -8520,8 +8520,11 @@ static int bnxt_get_dflt_rings(struct bnxt *bp, int *max_rx, int *max_tx,
|
|
|
/* Not enough rings, try disabling agg rings. */
|
|
|
bp->flags &= ~BNXT_FLAG_AGG_RINGS;
|
|
|
rc = bnxt_get_max_rings(bp, max_rx, max_tx, shared);
|
|
|
- if (rc)
|
|
|
+ if (rc) {
|
|
|
+ /* set BNXT_FLAG_AGG_RINGS back for consistency */
|
|
|
+ bp->flags |= BNXT_FLAG_AGG_RINGS;
|
|
|
return rc;
|
|
|
+ }
|
|
|
bp->flags |= BNXT_FLAG_NO_AGG_RINGS;
|
|
|
bp->dev->hw_features &= ~(NETIF_F_LRO | NETIF_F_GRO_HW);
|
|
|
bp->dev->features &= ~(NETIF_F_LRO | NETIF_F_GRO_HW);
|