From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] net/softnic: add support for service cores Date: Thu, 10 Jan 2019 00:23:59 +0100 Message-ID: <2914445.tvFdG4jiG5@xps> References: <20190103160432.147027-1-cristian.dumitrescu@intel.com> <3EB4FA525960D640B5BDFFD6A3D891268E826F2A@IRSMSX108.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org To: "Dumitrescu, Cristian" , "Singh, Jasvinder" Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 3E5611B587 for ; Thu, 10 Jan 2019 00:24:03 +0100 (CET) In-Reply-To: <3EB4FA525960D640B5BDFFD6A3D891268E826F2A@IRSMSX108.ger.corp.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 07/01/2019 17:50, Dumitrescu, Cristian: >=20 > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Cristian Dumitrescu > > Sent: Thursday, January 3, 2019 4:05 PM > > To: dev@dpdk.org > > Cc: Singh, Jasvinder > > Subject: [dpdk-dev] [PATCH] net/softnic: add support for service cores > >=20 > > Add support to run the Soft NIC device on service cores, based on the > > value of the sc parameter: > >=20 > > 0: The current Soft NIC device is run explicitly by the application. The > > firmware creates one or several pipelines for this dev and maps them > > to CPU cores that should not be service cores. The app is required to > > call rte_pmd_softnic_run() to make this dev work. > >=20 > > 1 (default): The current device is run on the service cores transparent= ly > > to the app. The firmware creates one or several pipelines for this d= ev > > current device and maps them to CPU cores that should be service cor= es. > > Each of these service cores is calling rte_pmd_softnic_run() > > in order to make this dev work with no app intervention. > >=20 > > Signed-off-by: Cristian Dumitrescu > > Signed-off-by: Jasvinder Singh > > --- >=20 > Applied to next-qos tree, thanks! It does not compile with 32-bit toolchain: drivers/net/softnic/rte_eth_softnic_thread.c:140:28: error: cast between incompatible function types from =E2=80=98int (*)(uint16_t)=E2=80=99 {aka =E2=80=98int (*)(short unsign= ed int)=E2=80=99} to =E2=80=98int32_t (*)(void *)=E2=80=99 {aka =E2=80=98int (*)(void *)=E2= =80=99} service_params.callback =3D (rte_service_func)rte_pmd_softnic_run; ^ =46ixing in-tree.