]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Set TPA GRO mode flags on 57500 chips properly.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 29 Jul 2019 10:10:24 +0000 (06:10 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jul 2019 21:19:09 +0000 (14:19 -0700)
commit67a78e24b5e3dc96c160623806f8e244a3f41b41
treeb934952f60306bf1f940e651bb6db13f482e7e7e
parent89c55afa56cd452545531ad1c2456c71bf4fed95
bnxt_en: Set TPA GRO mode flags on 57500 chips properly.

On 57500 chips, hardware GRO mode cannot be determined from the TPA
end, so we need to check bp->flags to determine if we are in hardware
GRO mode or not.  Modify bnxt_set_features so that the TPA flags
in bp->flags don't change until the device is closed.  This will ensure
that the fast path can safely rely on bp->flags to determine the
TPA mode.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c