[dpdk-dev] [PATCH v2 4/4] net/ipn3ke: implementation of statistics
Ferruh Yigit
ferruh.yigit at intel.com
Tue Jun 18 13:59:37 CEST 2019
On 6/11/2019 10:48 AM, Andy Pei wrote:
> This patch implemente statistics read and reset
> function for ipn3ke.
>
> Fixes: 70d6b7f550f4 ("net/ipn3ke: add representor")
> Cc: rosen.xu at intel.com
>
> Signed-off-by: Andy Pei <andy.pei at intel.com>
<...>
> +#define IPN3KE_RPST_TXQ_PRIO_XSTATS_CNT (sizeof(ipn3ke_rpst_txq_prio_strings) \
> + / sizeof(ipn3ke_rpst_txq_prio_strings[0]))
> +
> +static uint32_t
> +ipn3ke_rpst_xstats_calc_num(void)
> +{
> + return IPN3KE_RPST_ETH_XSTATS_CNT
> + + IPN3KE_RPST_HW_PORT_XSTATS_CNT
> + + (IPN3KE_RPST_RXQ_PRIO_XSTATS_CNT
> + * IPN3KE_RPST_PRIO_XSTATS_CNT)
> + + (IPN3KE_RPST_TXQ_PRIO_XSTATS_CNT
> + * IPN3KE_RPST_PRIO_XSTATS_CNT);
> +}
> +
> +#if 0
Please don't add "#if 0" to the code, if required you can delete the code, same
is valid for below one too.
More information about the dev
mailing list