[dpdk-dev] [PATCH] ip_pipeline: fix cpu socket-id error

2016-01-20 Thread Jasvinder Singh
This patch fixes the socket-id error in ip_pipeline sample application running over uni-processor systems. Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/init.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/examples

[dpdk-dev] [PATCH] ip_pipeline: fix cpu socket-id error

2016-01-20 Thread Stephen Hemminger
On Wed, 20 Jan 2016 11:01:17 + Jasvinder Singh 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 !=