[dpdk-dev] [PATCH] stats: remove useless memset's

Neil Horman nhorman at tuxdriver.com
Wed Jan 21 13:43:59 CET 2015


On Tue, Jan 20, 2015 at 08:16:58PM -0800, stephen at networkplumber.org wrote:
> From: Stephen Hemminger <shemming at brocade.com>
> 
> The rte_eth_stats_get is the only API that should call the device
> statistics function directly, and it already does a memset of the
> resulting structure. Therefore doing memset() in the driver is
> redundant and should be removed.
> 
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Neil Horman <nhorman at tuxdriver.com>



More information about the dev mailing list