OSDN Git Service

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)
commitf45b7b78c619cd73c7ca25b68c6ba9653b8e4a0a
treeb934952f60306bf1f940e651bb6db13f482e7e7e
parentbee5a188b71657092dc9eb1a529b4e502fe51444
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