net/ipn3ke: use control thread to check link status
authorAndy Pei <andy.pei@intel.com>
Mon, 16 Mar 2020 06:07:17 +0000 (14:07 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:04 +0000 (13:57 +0200)
commite5791726338ea4b83e329fd59e9d1af7066b7c0b
treead772ae7424c52d6070c506bd2b72e8fd42ad760
parentef6f2f5cdbe2ef2e7bfd340a80652db91e894949
net/ipn3ke: use control thread to check link status

ipn3ke driver creates a thread to check link status.

Before this patch, pthread_create() is used to create
thread, leaving the new thread unrestrained wrt cpu
affinity.

After this patch, rte_ctrl_thread_create() is used to
create thread. The affinity of the new thread is based
on the CPU affinity retrieved at the time rte_eal_init()
was called, the dataplane and service lcores are then
excluded.

Fixes: 70d6b7f550f4 ("net/ipn3ke: add representor")
Cc: stable@dpdk.org
Signed-off-by: Andy Pei <andy.pei@intel.com>
Reviewed-by: Rosen Xu <rosen.xu@intel.com>
drivers/net/ipn3ke/ipn3ke_representor.c