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 5ED04A0562; Tue, 31 Mar 2020 14:17:58 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 347DD1C045; Tue, 31 Mar 2020 14:17:58 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id AA8681BFDC for ; Tue, 31 Mar 2020 14:17:56 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 02VCFnhY011721; Tue, 31 Mar 2020 05:17:55 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=87rkSc6RBN2DJhdrACtdzO9XZ7UAd8n5PDtEMKQUIYc=; b=ZAT3Hqf0x3iiREOaZHxAbgH9VHqjPMtfuICodAFzDtDzb/UtNhwMTQhfP6QOquuamdoj BtC4ocmZeC3f69hwrz2ht8R1eweoeDxOlLJiDURKhJAF1UsqrjTt643mjTccEcg9q8hV K1M/DWoQ2Aixr0MeIwCQxYd311SvsEerSd3XqjgxxzBboZ54UEnLrTB70yaVdZyOKENE p4HYQhrdbMY9dBvTt2taLtqubT8FHY9HxynFY6B1srDs3p2+6aRIIt6iQcS8XWNcTi92 WX7RX68aLP91KltDp6abR56MQPhV16aWKunVlYk6RVQvNrbynUPMaSrenCiEeaXUIRoS BA== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0a-0016f401.pphosted.com with ESMTP id 3023xp30d9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 31 Mar 2020 05:17:55 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 31 Mar 2020 05:17:54 -0700 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.171) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Tue, 31 Mar 2020 05:17:54 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cLYv0bQgqC+BecoQuVd+f+d+QcWrspWlbHTd6SVudLnyYviBhJCA5MRgKETznRwBm6DtRxBwNRJri/DIsLVKnZUG9RFTw8X/UlbsjYIp3PBZHFAAuZsCseNyaqBmiFNqpuyEb24dTu9E12Z9ZgVr2vG1zBYlLsr8W98WpWCgQm7B8MIFAtu7aDaal7Du5LFvDMxLX3Srhz+Dd44TX2k9oTX4g+sO0QjGJKpgHmATQd+S8cuUuSF874OCYbO2Hxj8OBQwp8v+UP7sRSBlsi5QXz8vERj2bpC1zUofyT/JXm9wqmkojHsFajJOBTLwhhmrUklNmqpGJUtEnqw+Oby9UA== 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=87rkSc6RBN2DJhdrACtdzO9XZ7UAd8n5PDtEMKQUIYc=; b=bNO0Y8jEWCpf7QZLTN6fCQ8d2gDchLeLB2q0ZanJ/0iJR3UGkSVB69dqUNwNiCdQTV0LWcDh38YTtTwsUAFN6vElRjtBN1x33YL2slP81gp8J1JlkW7JXroADBlTNFDJexGJv2MCXUqh4Xxc+ch2pUmvhaHpsG9k9ok58aI340yP9CNFvvg710KjOy27kXODm1rUjiSvmhSmIPDimVyCBwUcu6jM8edzrjrCq9h9z90e6iEL3rqheoQtbYT+RvQy/7T1+IuXcpWQKSNatjXB0j7Hk5s7ehysqXLVvfaJKf4iZvaP4l8maVXyJhuxqSWgSIysbqKunjON+PWuDhjVFw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=87rkSc6RBN2DJhdrACtdzO9XZ7UAd8n5PDtEMKQUIYc=; b=p5lLkv1+RmuhEX7PCuvRpsIW6DhlYfrU3Bi3NsETQVaBgMkLamcgmX0eOVSGU60QQJgZafASBzKATAXfuhWNrPAzWe9x+acJaq8JXwDEAf0mltE/Xi6nUwo9aL3VXKfThMZ11oQkCbhEO3sM9i3QmCztt6/6rDDOCjKVf84Tia0= Received: from CY4PR1801MB1863.namprd18.prod.outlook.com (2603:10b6:910:7b::32) by CY4PR1801MB1832.namprd18.prod.outlook.com (2603:10b6:910:79::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.20; Tue, 31 Mar 2020 12:17:53 +0000 Received: from CY4PR1801MB1863.namprd18.prod.outlook.com ([fe80::3ce0:be16:b19f:6383]) by CY4PR1801MB1863.namprd18.prod.outlook.com ([fe80::3ce0:be16:b19f:6383%7]) with mapi id 15.20.2856.019; Tue, 31 Mar 2020 12:17:52 +0000 From: Pavan Nikhilesh Bhagavatula To: Andrzej Ostruszka , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [dpdk-dev v2] [PATCH] examples/l2fwd-event: add option to configure port pairs Thread-Index: AQHWAzm3L3KROmx08kC2Hw+zG1pLjahihmaAgAAedJA= Date: Tue, 31 Mar 2020 12:17:52 +0000 Message-ID: References: <20200324123446.2397-2-pbhagavatula@marvell.com> <20200326064216.5676-1-pbhagavatula@marvell.com> In-Reply-To: Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [122.172.83.251] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 114ec3ef-f3da-4a9e-b7bf-08d7d56d8967 x-ms-traffictypediagnostic: CY4PR1801MB1832: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2331; x-forefront-prvs: 0359162B6D x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY4PR1801MB1863.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(136003)(39860400002)(366004)(346002)(376002)(396003)(9686003)(55016002)(110136005)(316002)(2906002)(71200400001)(478600001)(81156014)(8936002)(81166006)(6506007)(8676002)(5660300002)(186003)(7696005)(26005)(33656002)(76116006)(64756008)(66446008)(52536014)(66556008)(66946007)(66476007)(86362001); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: XYc/Beu+delDBeSRf30q9kR2FBbHRSWCrtqaSjtOdxMGHmCHbKKo3yZ5OOgjbVflMGF5FCL2UiQ2ai/nX+BBttRhShvizn9GWbTWh+Dt361qd9ueH97Xvl5wcxZ0yPSMlAebjyjN/vP40YgHP3tYAmSr2ElwveltTqi/eAQ05HfGVOdpsGs8vG4Y0+2JsPkklTRB3eau/QG+xWemPaGo/srkkKN7LXTD3jle9NA089qJMKc+6X1O7r7qaiUwo+OMCWZ6ZbyLaxl+1SqgBL1QAVVVOlJ4rS7Mbpb+W8SwzUa9R6Py3qDW64dt9nrOC+cq8bdG1CqHx0gmWCKWIWt4wQsolFSPXqAK2cyWWVLY9NsZID3e+2LXdgrWD8vm4Ul3+hRaFQNTGHAtzUMi6Nuqzp3ahPOLWYrRxrPXar3IpJMHD3BQ43ElLnd3Cr+aUtaX x-ms-exchange-antispam-messagedata: D1i4qaPjgtYAPO07wXyq9xvYJFKzBPgB1Mv9tkBjxllI6r1qurlj1M4t51BPzzygJ1+9cpD30E6gXYV7K3w+JIiX7YNzPzCc8rpWGJviWZGL5NI4zgGjVQZuzlae18MMTXI/iVi3hudN4tcKQjFkUQ== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 114ec3ef-f3da-4a9e-b7bf-08d7d56d8967 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Mar 2020 12:17:52.8362 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ryChS5ivyeMlxriW5tyNnmXjx27q2wRrBtJHb9cpkqyV2OUmqiWOP9ncS0ywj5oa+BX3R9dWjrn6EMWzpU9mpd5AflnGFwDA13g1OdeFDQs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1801MB1832 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138, 18.0.676 definitions=2020-03-31_04:2020-03-31, 2020-03-31 signatures=0 Subject: Re: [dpdk-dev] [dpdk-dev v2] [PATCH] examples/l2fwd-event: add option to configure port pairs 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" Pj4gLS0tDQo+PiAgdjIgQ2hhbmdlczoNCj4+ICAtIEZpeCBtaW5vciBmb3JtYXR0aW5nIGVycm9y Lg0KPj4gIC0gQ2hhbmdlIHVpbnQ4X3QgdG8gYm9vbC4NCj5bLi4uXQ0KPj4gQEAgLTk5LDYgKzEw Myw2OSB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