net: mvneta: Verify hardware checksum only when offload checksum feature is set
authorYelena Krivosheev <yelena@marvell.com>
Wed, 18 Jul 2018 16:10:56 +0000 (18:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Jul 2018 05:12:55 +0000 (22:12 -0700)
commitf945cec88cbd2f66251a9f5b2532ca10c4e87426
tree02ab243766d653ec91420630aa85313649759258
parent7e47fd84b56bb37ff1c3d9ab49c2fff5ee4b3077
net: mvneta: Verify hardware checksum only when offload checksum feature is set

If the checksum offload feature is not set, then there is no point to
check the status of the hardware.

[gregory: extract from a larger patch]
Signed-off-by: Yelena Krivosheev <yelena@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c