net: bcmgenet: use CHECKSUM_COMPLETE for NETIF_F_RXCSUM
authorDoug Berger <opendmb@gmail.com>
Wed, 18 Dec 2019 00:51:10 +0000 (16:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Dec 2019 02:11:10 +0000 (18:11 -0800)
commit810155397890ecdea23868ef0ed10cb80134997f
treec28c64f0b74926abfdce92452907d8d4624b045c
parentdd8e911b7f2af2315184a8e551ca77ff226a4ec5
net: bcmgenet: use CHECKSUM_COMPLETE for NETIF_F_RXCSUM

This commit updates the Rx checksum offload behavior of the driver
to use the more generic CHECKSUM_COMPLETE method that supports all
protocols over the CHECKSUM_UNNECESSARY method that only applies
to some protocols known by the hardware.

This behavior is perceived to be superior.

Signed-off-by: Doug Berger <opendmb@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c
drivers/net/ethernet/broadcom/genet/bcmgenet.h