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 32898A054C; Fri, 14 Feb 2020 19:14:29 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 51C5F100C; Fri, 14 Feb 2020 19:14:28 +0100 (CET) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2076.outbound.protection.outlook.com [40.107.22.76]) by dpdk.org (Postfix) with ESMTP id 60D3E374; Fri, 14 Feb 2020 16:18:40 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S828P1b5RIzwdTdGigeKPEixQfnlQbj/6dVzzxV788D2wqx71nyH4hOWkK4YcHb7yKh5SVRiSsYWVRDVs1rGPDMrSzLyzXmhN31o89cHGdTX3PECd4j7Zk97hA0eSoVnRIpdJsFYXYo1wKMzYeFc+FwKq23/rnDZp2JysWR6JaWee4faSXOJ/bJB35v2JRZiDERZq7FDWbU/lJTeT5IHdwNAR3CM12ZAPFpPzAISrx6MRJIPYMEW7qoB9TA/wY5W4/vPJw94P0Bf2u7ju6VE+zk+LRBbVKlxtXcu1Sr6qkfSiVLorhX0z6sJHxrngc12IYAavTLJzau1aN2eVPcUVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JtWVCNfvVIDEVuolb0nXscThn12xrdwUgX9HDSg2SW8=; b=Ithg7eoLKKknvUwU++rktXVxuksIlaa3vp4sDzTjtuVisFmRIk98vMRegQksp4nKvIKyjvIu+gN42HO9xqg6WxH6+2VavP2tTU4iQaIF8enlBnZ3JFrcJHwUtZr2zy4qqU1wzmR8BFBMJvZ1FQy8HryMQZK38MXATVYivX9hvxcyz5vZ0fUT5YRuwBmv6ziPGDbDORf5ibh0sWj/UiPXfPB8XYwdTEod4i8/Ym9Xq5QeQArVk+TyYuz+TAOwCbjxC4ysTN2KSSeHQNZIoikhF96GFi6qkg56PukMNIn4y9N0H20iSjQo8QY4acSkoW5Oy+n6peO2ltUnGadYUPn3EA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JtWVCNfvVIDEVuolb0nXscThn12xrdwUgX9HDSg2SW8=; b=jDH9PwhFOYFsNGHLV/72lldQALDV/O7S84arA3IBOdrjBjtzHEc28xlGZMsy/+1Je3tkcmCX7v3pVSvs8rbSXCgmBD/pQ/k+BiSMj8TXN9zeSzol2fUl3JMpmgrMLkuuqiEFxO46rSV6Au9NoVN1eAY7DjuPkUqRyXV+r1BA3Jo= Received: from DB6PR04MB3128.eurprd04.prod.outlook.com (10.170.216.31) by DB6PR04MB3109.eurprd04.prod.outlook.com (10.170.215.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.22; Fri, 14 Feb 2020 15:18:39 +0000 Received: from DB6PR04MB3128.eurprd04.prod.outlook.com ([fe80::69cd:f639:c81b:58e3]) by DB6PR04MB3128.eurprd04.prod.outlook.com ([fe80::69cd:f639:c81b:58e3%3]) with mapi id 15.20.2729.025; Fri, 14 Feb 2020 15:18:39 +0000 From: Jun Yang To: "Dumitrescu, Cristian" , Hemant Agrawal , "dev@dpdk.org" CC: "Stable@dpdk.org" Thread-Topic: [EXT] RE: [dpdk-dev] [PATCH 2/2] examples/ip_pipeline: fix to use sock id instead of cpuid Thread-Index: AQHV4ym2KFXvAz9tg0K1zIOOjl/T46gazHkQ Date: Fri, 14 Feb 2020 15:18:39 +0000 Message-ID: References: <20191211052534.14600-1-hemant.agrawal@nxp.com> <20191211052534.14600-2-hemant.agrawal@nxp.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=jun.yang@nxp.com; x-originating-ip: [119.31.174.68] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 0fbee7c9-1a18-4ebb-83f4-08d7b1612b6d x-ms-traffictypediagnostic: DB6PR04MB3109:|DB6PR04MB3109: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5236; x-forefront-prvs: 03137AC81E x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(376002)(39860400002)(136003)(346002)(396003)(189003)(199004)(2906002)(86362001)(110136005)(8936002)(81156014)(81166006)(316002)(7696005)(478600001)(71200400001)(4326008)(76116006)(26005)(5660300002)(64756008)(66446008)(53546011)(55016002)(66556008)(66476007)(9686003)(6506007)(66946007)(44832011)(186003)(52536014)(33656002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR04MB3109; H:DB6PR04MB3128.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: XXV3O9iziTPBIIdgbOE18oU9QUqgogQoqCXHFGklNoT7SBqEtYw4HKwG2CrNRvWnGcFBW7Yx6yt1btQK/gPbsHJaRamYH9DW/DYWMtH5lzgNkIpCmYueMUoukr8SCWKGmFpQmi14Zkc7gGJfo9TmzhopYt6P/B/D8ml6/IKMv4mnSmkHhtyWYSbLUB6jcin/mxBwjRrOR25ECoZzTOIisDcr1nDbPAGqEkAIhn+mayXhaudupz4NUKTopaOL+DsgHdwc9b3aZk6ts/7ZQ7AQWbEqQGcyjsdCNtkI+L/ogYXuwiMBD0F8A6cj6To5vvikYV06j/O1Csml/cKviENQrq5YwHT0sRfGvXnQYPZ5/aoxzncy49M0atGPT9LjBh+yUAakdm9zpQbpQhq5g/x4YW8KqfaPQWRm4ASIGmN1sbmuOgpWXdWyOpJVyYZAqB+U x-ms-exchange-antispam-messagedata: kdmejuwhioSyh/Z0XY+X/VGo2h6VERlOBcZSwe/095Azqa2xNONcUf+K2wMZUkCFjqBCz36/DtE+74WPsy6wFEyKlYx4nmsOkP4OjcHnXg3GY2W9JIexpZPnB3ZxWFKpQDADY4tGEbQKMjbSS/UwZg== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0fbee7c9-1a18-4ebb-83f4-08d7b1612b6d X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Feb 2020 15:18:39.2827 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: hQpl7KoXdCJUKstYj943dXpzK8MtHx1qAq+EHLGEvuhCezg+32kE7+xs2gPVWS4xRri5UjuhbbEnxF/1YHiTMg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3109 X-Mailman-Approved-At: Fri, 14 Feb 2020 19:14:26 +0100 Subject: Re: [dpdk-dev] [EXT] RE: [PATCH 2/2] examples/ip_pipeline: fix to use sock id instead of cpuid 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" SGkgQ3Jpc3RpYW4sDQpQZXIgbXkgZGVidWcgbG9nLCB0aGUgQ1BVIElEIGl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