nvethernet: update rx error stats

update rx frame error and rx overflow error stats

Bug 200561724

Change-Id: Ic76ee65817e8a34753b32eb86be4fdc1d46852f8
Signed-off-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2229261
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com>
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Narayan Reddy
2019-10-31 14:53:45 +05:30
committed by Revanth Kumar Uppala
parent 7fb9f30e28
commit 707315ad0e

View File

@@ -233,6 +233,7 @@ void osd_receive_packet(void *priv, void *rxring, unsigned int chan,
void *rx_pkt_swcx)
{
struct ether_priv_data *pdata = (struct ether_priv_data *)priv;
struct osi_core_priv_data *osi_core = pdata->osi_core;
struct ether_rx_napi *rx_napi = pdata->rx_napi[chan];
struct osi_rx_ring *rx_ring = (struct osi_rx_ring *)rxring;
struct osi_rx_swcx *rx_swcx = (struct osi_rx_swcx *)rx_pkt_swcx;
@@ -283,6 +284,8 @@ void osd_receive_packet(void *priv, void *rxring, unsigned int chan,
}
} else {
ndev->stats.rx_crc_errors = pkt_err_stat->rx_crc_error;
ndev->stats.rx_frame_errors = pkt_err_stat->rx_frame_error;
ndev->stats.rx_fifo_errors = osi_core->mmc.mmc_rx_fifo_overflow;
ndev->stats.rx_errors++;
}