> -----Original Message-----
> From: Wu, Jingjing <[email protected]>
> Sent: Monday, March 23, 2020 09:51
> To: Wang, Haiyue <[email protected]>; [email protected]; Ye, Xiaolong 
> <[email protected]>; Zhang,
> Qi Z <[email protected]>; Yang, Qiming <[email protected]>; Xing, 
> Beilei <[email protected]>
> Cc: Zhao1, Wei <[email protected]>; Wang, Haiyue <[email protected]>
> Subject: RE: [dpdk-dev] [PATCH v1 1/4] net/iavf: stop the PCI probe in DCF 
> mode
> 
> +static int
> +handle_dcf_arg(__rte_unused const char *key, const char *value,
> +            __rte_unused void *arg)
> __rte_unused is not needed here.

Yes, has been rewritten and fixed in v3. ;-)

> 
> +{
> +     bool *dcf = arg;
> +
> +     if (arg == NULL || value == NULL)
> +             return -EINVAL;
> +
> +     if (strcmp(value, "dcf") == 0)
> +             *dcf = true;
> +     else
> +             *dcf = false;
> +
> +     return 0;
> +}
> +

Reply via email to