Skip to content

Commit

Permalink
net/ice: fix DCF port statistics
Browse files Browse the repository at this point in the history
[ upstream commit 70aef239d0de6b2048aecb1220da1d78edb75168 ]

Call 'ice_dcf_stats_reset' during the initialization of the DCF port in
order to clear any statistics that may exist from the last use of the DCF
and to avoid statistics errors.

Fixes: 7564d55 ("net/ice: add DCF hardware initialization")

Signed-off-by: Zhichao Zeng <zhichaox.zeng@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
  • Loading branch information
zengzhichao233 authored and bluca committed Nov 8, 2023
1 parent e0f81ab commit 3c0b095
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ice/ice_dcf_ethdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,8 @@ ice_dcf_dev_init(struct rte_eth_dev *eth_dev)
return -1;
}

ice_dcf_stats_reset(eth_dev);

return 0;
}

Expand Down

0 comments on commit 3c0b095

Please sign in to comment.