[dpdk-dev] [PATCH] ip_pipeline: fix cpu socket-id error
Stephen Hemminger
stephen at networkplumber.org
Wed Jan 20 19:32:50 CET 2016
On Wed, 20 Jan 2016 11:01:17 +0000
Jasvinder Singh <jasvinder.singh at intel.com> wrote:
> +static inline int
> +app_get_cpu_socket_id(uint32_t pmd_id)
> +{
> + int status = rte_eth_dev_socket_id(pmd_id);
> +
> + if (status == -1)
> + return 0;
> +
> + return status;
> +
Why not:
return (status != SOCKET_ID_ANY) ? status : 0;
More information about the dev
mailing list