From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 28848A0583; Thu, 19 Mar 2020 15:14:18 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F0A2EF94; Thu, 19 Mar 2020 15:14:16 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 3AEADF90; Thu, 19 Mar 2020 15:14:15 +0100 (CET) IronPort-SDR: CuQk1/c41wscDHqRS2eebL+yJrFicHIMIuJ4GlyKVUCBJOELyQQlt9XiKroKj5zHJe8QrhrUXg yhnpcJYn9lGg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Mar 2020 07:14:14 -0700 IronPort-SDR: 2YJrZ/eX+3+ZplsLcv3xqbNPq/CCFdeR9WCDftXehQmdeF8+b4CpzGpNyPpBlrh6TnX48mA7xn iP/erAor7cww== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,571,1574150400"; d="scan'208";a="238930809" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga008.jf.intel.com with ESMTP; 19 Mar 2020 07:14:12 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 19 Mar 2020 07:13:24 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.206]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.155]) with mapi id 14.03.0439.000; Thu, 19 Mar 2020 22:13:22 +0800 From: "Xu, Rosen" To: "Ye, Xiaolong" , "Pei, Andy" CC: "dev@dpdk.org" , "stable@dpdk.org" , "david.marchand@redhat.com" , "Yigit, Ferruh" Thread-Topic: [PATCH] net/ipn3ke: use ctrl thread to check link status Thread-Index: AQHV+1ujACx/h7R+gkuo6/k+LKbQg6hPa7UAgACOnfA= Date: Thu, 19 Mar 2020 14:13:21 +0000 Message-ID: <0E78D399C70DA940A335608C6ED296D73AE4EBC9@SHSMSX104.ccr.corp.intel.com> References: <1584338837-436345-1-git-send-email-andy.pei@intel.com> <20200319134243.GD51165@intel.com> In-Reply-To: <20200319134243.GD51165@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZTQxNDJiYjktNTI2ZS00MDEwLWE1ZDEtNTMwNGZkMjk3NmVkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoicWswV2lUVmYwVmxoOUw1dXhcL01LcFA5eEczOXVYcHF3S2RSYWhyY0NkRXY3RThpOXVNTFNISTV2R3FEQ05kXC9xIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] net/ipn3ke: use ctrl thread to check link status X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Thanks. > -----Original Message----- > From: Ye, Xiaolong > Sent: Thursday, March 19, 2020 21:43 > To: Pei, Andy > Cc: dev@dpdk.org; Xu, Rosen ; stable@dpdk.org; > david.marchand@redhat.com; Yigit, Ferruh > Subject: Re: [PATCH] net/ipn3ke: use ctrl thread to check link status >=20 > On 03/16, Andy Pei wrote: > >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: rosen.xu@intel.com > >Cc: stable@dpdk.org > > > >Signed-off-by: Andy Pei > >--- > >Cc: david.marchand@redhat.com > >Cc: xiaolong.ye@intel.com > >Cc: ferruh.yigit@intel.com > > > >diff --git a/drivers/net/ipn3ke/ipn3ke_representor.c > >b/drivers/net/ipn3ke/ipn3ke_representor.c > >index 80122e3..b673c49 100644 > >--- a/drivers/net/ipn3ke/ipn3ke_representor.c > >+++ b/drivers/net/ipn3ke/ipn3ke_representor.c > >@@ -2598,7 +2598,8 @@ struct rte_eth_xstat_name *xstats_names, > > int ret; > > > > if (ipn3ke_rpst_scan_num =3D=3D 1) { > >- ret =3D pthread_create(&ipn3ke_rpst_scan_thread, > >+ ret =3D rte_ctrl_thread_create(&ipn3ke_rpst_scan_thread, > >+ "ipn3ke scanner", > > NULL, > > ipn3ke_rpst_scan_handle_request, NULL); > > if (ret) { > >-- > >1.8.3.1 > > >=20 > Applied to dpdk-next-net-intel, Thanks.