net: ena: use CSUM_CHECKED device indication to report skb's checksum status
authorArthur Kiyanovski <akiyano@amazon.com>
Thu, 11 Oct 2018 08:26:21 +0000 (11:26 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2018 17:13:51 +0000 (10:13 -0700)
commitcb36bb36e1f17d2a7b9a9751e5cfec4235b46c93
tree988231a15aa43ccef1af0d4cc311fb6791ff1649
parent38005ca816a7ef5516dc8e59ae95716739aa75b0
net: ena: use CSUM_CHECKED device indication to report skb's checksum status

Set skb->ip_summed to the correct value as reported by the device.
Add counter for the case where rx csum offload is enabled but
device didn't check it.

Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_eth_com.c
drivers/net/ethernet/amazon/ena/ena_eth_com.h
drivers/net/ethernet/amazon/ena/ena_eth_io_defs.h
drivers/net/ethernet/amazon/ena/ena_ethtool.c
drivers/net/ethernet/amazon/ena/ena_netdev.c
drivers/net/ethernet/amazon/ena/ena_netdev.h