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...@intel.com
> 
> Signed-off-by: Andy Pei <andy....@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.

Reply via email to