[dpdk-dev] [dpdk-stable] [PATCH 2/2] net/ice: fix dropped packets statistics name

Eelco Chaudron echaudro at redhat.com
Mon Jun 3 10:52:47 CEST 2019


Looks good to me…

Acked-by: Eelco Chaudron <echaudro at redhat.com>

On 3 Jun 2019, at 10:31, David Marchand wrote:

> Copy/paste from i40e, let's align with the fix on i40e.
>
> Fixes: a37bde56314d ("net/ice: support statistics")
> Cc: stable at dpdk.org
>
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> ---
>  drivers/net/ice/ice_ethdev.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
> index bdbceb4..6cd1c74 100644
> --- a/drivers/net/ice/ice_ethdev.c
> +++ b/drivers/net/ice/ice_ethdev.c
> @@ -153,13 +153,13 @@ struct ice_xstats_name_off {
>  	{"rx_unicast_packets", offsetof(struct ice_eth_stats, rx_unicast)},
>  	{"rx_multicast_packets", offsetof(struct ice_eth_stats, rx_multicast)},
>  	{"rx_broadcast_packets", offsetof(struct ice_eth_stats, rx_broadcast)},
> -	{"rx_dropped", offsetof(struct ice_eth_stats, rx_discards)},
> +	{"rx_dropped_packets", offsetof(struct ice_eth_stats, rx_discards)},
>  	{"rx_unknown_protocol_packets", offsetof(struct ice_eth_stats,
>  		rx_unknown_protocol)},
>  	{"tx_unicast_packets", offsetof(struct ice_eth_stats, tx_unicast)},
>  	{"tx_multicast_packets", offsetof(struct ice_eth_stats, tx_multicast)},
>  	{"tx_broadcast_packets", offsetof(struct ice_eth_stats, tx_broadcast)},
> -	{"tx_dropped", offsetof(struct ice_eth_stats, tx_discards)},
> +	{"tx_dropped_packets", offsetof(struct ice_eth_stats, tx_discards)},
>  };
>
>  #define ICE_NB_ETH_XSTATS (sizeof(ice_stats_strings) / \
> -- 
> 1.8.3.1


More information about the dev mailing list