]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Use NETIF_F_GRO_HW.
authorMichael Chan <michael.chan@broadcom.com>
Sat, 16 Dec 2017 08:09:42 +0000 (03:09 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Dec 2017 15:38:36 +0000 (10:38 -0500)
commit3c841c0d31fce69af0ddf3fad0fb2424e0e052cb
treeef3068bb6c94cf1e7dfc83ac4957561679069513
parentdc84f8f9e1d9002df79b3947c03d98d171acef78
bnxt_en: Use NETIF_F_GRO_HW.

Advertise NETIF_F_GRO_HW in hw_features if hardware GRO is supported.
In bnxt_fix_features(), disable GRO_HW and LRO if current hardware
configuration does not allow it.  GRO_HW depends on GRO.  GRO_HW is
also mutually exclusive with LRO.  XDP setup will now rely on
bnxt_fix_features() to turn off aggregation.  During chip init, turn on
or off hardware GRO based on NETIF_F_GRO_HW in features flag.

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