net/ena: fix Rx checksum errors statistics
authorMichal Krawczyk <mk@semihalf.com>
Tue, 28 May 2019 08:28:34 +0000 (10:28 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 13 Jun 2019 14:54:29 +0000 (23:54 +0900)
commitef74b5f7b69b9502ddab81121611243efcfe1dde
treee7a84fe79d0008cec0beda0e87caba346d2f03b8
parent5673e285a63347068e51dbd191915348f6a580b0
net/ena: fix Rx checksum errors statistics

Rx checksum flags and input errors shouldn't be updated on Tx, as it
would work only for packets forwarding.

The ierrors statistic should be updated on Rx, right after checking
Rx checksum flags if the Rx checksum offload is enabled.

Fixes: 1173fca25af9 ("ena: add polling-mode driver")
Cc: stable@dpdk.org
Signed-off-by: Michal Krawczyk <mk@semihalf.com>
drivers/net/ena/ena_ethdev.c