bnxt_en: Clear TPA flags when BNXT_FLAG_NO_AGG_RINGS is set.
Commit bdbd1eb59c
("bnxt_en: Handle no aggregation ring gracefully.")
introduced the BNXT_FLAG_NO_AGG_RINGS flag. For consistency,
bnxt_set_tpa_flags() should also clear TPA flags when there are no
aggregation rings.
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b742995445
commit
341138c3e6
@ -2467,6 +2467,8 @@ static int bnxt_calc_nr_ring_pages(u32 ring_size, int desc_per_pg)
|
||||
static void bnxt_set_tpa_flags(struct bnxt *bp)
|
||||
{
|
||||
bp->flags &= ~BNXT_FLAG_TPA;
|
||||
if (bp->flags & BNXT_FLAG_NO_AGG_RINGS)
|
||||
return;
|
||||
if (bp->dev->features & NETIF_F_LRO)
|
||||
bp->flags |= BNXT_FLAG_LRO;
|
||||
if (bp->dev->features & NETIF_F_GRO)
|
||||
|
Loading…
Reference in New Issue
Block a user