From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60058.outbound.protection.outlook.com [40.107.6.58]) by dpdk.org (Postfix) with ESMTP id 5B6711B277 for ; Thu, 4 Apr 2019 13:54:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4aCH/m32Ss9LImzqAhF/2EyMr9UtXjQZHoTeT041djA=; b=WPJJLiOBmydLwZDSCdGtIRfEHtdVNt6P24mJ8Qikv+vLTD9u8Qy5hLDa7oHFwwuWxlyGwWnd3osj4PmtBz23gl2s1Vb4kmXISCvKm9y3+bvLr8Oa1Jo6AKthg9KcXHH/+6QFBug+2Wo608MhYJnyOoGRa6C2+khfQOoVQCsesrg= Received: from VI1PR0401MB2541.eurprd04.prod.outlook.com (10.168.65.19) by VI1PR0401MB2557.eurprd04.prod.outlook.com (10.168.65.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.17; Thu, 4 Apr 2019 11:54:33 +0000 Received: from VI1PR0401MB2541.eurprd04.prod.outlook.com ([fe80::18e3:39b6:c61d:3f18]) by VI1PR0401MB2541.eurprd04.prod.outlook.com ([fe80::18e3:39b6:c61d:3f18%12]) with mapi id 15.20.1750.017; Thu, 4 Apr 2019 11:54:33 +0000 From: Hemant Agrawal To: Shreyansh Jain , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] examples/l3fwd: support separate buffer pool per port Thread-Index: AQHUo1eqaIUoRjuicUqwMQcvs709jaYsc5+A Date: Thu, 4 Apr 2019 11:54:32 +0000 Message-ID: <8688658b-bc2a-4450-0659-93aeeba12452@nxp.com> References: <20190103112932.4415-1-shreyansh.jain@nxp.com> In-Reply-To: <20190103112932.4415-1-shreyansh.jain@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [92.120.1.66] x-clientproxiedby: BM1PR0101CA0027.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::13) To VI1PR0401MB2541.eurprd04.prod.outlook.com (2603:10a6:800:56::19) user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f65335f5-630b-4d1e-591d-08d6b8f44d44 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:VI1PR0401MB2557; x-ms-traffictypediagnostic: VI1PR0401MB2557: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-forefront-prvs: 0997523C40 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(376002)(366004)(136003)(396003)(199004)(189003)(256004)(966005)(105586002)(6436002)(6486002)(25786009)(81166006)(6512007)(8936002)(43066004)(6506007)(2616005)(14454004)(53546011)(476003)(81156014)(76176011)(64126003)(44832011)(65826007)(66066001)(110136005)(229853002)(3846002)(316002)(99286004)(52116002)(478600001)(2906002)(8676002)(6116002)(102836004)(65956001)(5660300002)(71200400001)(71190400001)(58126008)(53936002)(65806001)(186003)(3450700001)(6246003)(386003)(14444005)(31686004)(97736004)(305945005)(7736002)(446003)(486006)(106356001)(68736007)(86362001)(6306002)(31696002)(36756003)(2501003)(11346002)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2557; H:VI1PR0401MB2541.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Wvj0Syac6ugbQrg/y6iRd3kMcefE6Ni8+2+f0TkHWMDfcDFZFoJxqxcZk5dVt2bS2hyOcXr/RjLK8k1YjbQsyKMIXrFO7Os4fxH+TmZsSQo0RQBW9MVwm7RlslKAhdEwaQGXNgJ9cWqzfFTJyOu27rv9O1lWbuFu7kwGke1NmKSsA9HfyiyHlReAIC2cE4LKf0Oe6/+5Z6eI30OEa1kxi6uIAeE02J5GIcb8bFhgQonZJA3Fx6KgI7Ai57h14OjxDhz/wlLtH9fPm6W/hDw/mTKnk2ZAkcakve+3drJR+RNR89HbghLpoIkisaL6t52jx1tlTxa95HNhLFDWwkgUz5gOTEQlLYLzQLiDAvp7zK1MS1rqVWrMFSQwblL0Feon5agD0xrqTroOYLAmHSg4SfJxxvd6fr7wcZaiCKbrG5Y= Content-Type: text/plain; charset="utf-8" Content-ID: <57698225EA227F4F8D42B11B29D3492B@eurprd04.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f65335f5-630b-4d1e-591d-08d6b8f44d44 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Apr 2019 11:54:33.0052 (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-Transport-CrossTenantHeadersStamped: VI1PR0401MB2557 Subject: Re: [dpdk-dev] [PATCH] examples/l3fwd: support separate buffer pool per port X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Hemant Agrawal List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Apr 2019 11:54:34 -0000 cGluZw0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9leGl0KEVYSVRfRkFJTFVSRSwNCj4gICAJCQkJInJ0 ZV9ldGhfcnhfcXVldWVfc2V0dXA6IGVycj0lZCwgcG9ydD0lZFxuIiwNCg== From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 3C438A0679 for ; Thu, 4 Apr 2019 13:54:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 947231B2AE; Thu, 4 Apr 2019 13:54:35 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60058.outbound.protection.outlook.com [40.107.6.58]) by dpdk.org (Postfix) with ESMTP id 5B6711B277 for ; Thu, 4 Apr 2019 13:54:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4aCH/m32Ss9LImzqAhF/2EyMr9UtXjQZHoTeT041djA=; b=WPJJLiOBmydLwZDSCdGtIRfEHtdVNt6P24mJ8Qikv+vLTD9u8Qy5hLDa7oHFwwuWxlyGwWnd3osj4PmtBz23gl2s1Vb4kmXISCvKm9y3+bvLr8Oa1Jo6AKthg9KcXHH/+6QFBug+2Wo608MhYJnyOoGRa6C2+khfQOoVQCsesrg= Received: from VI1PR0401MB2541.eurprd04.prod.outlook.com (10.168.65.19) by VI1PR0401MB2557.eurprd04.prod.outlook.com (10.168.65.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.17; Thu, 4 Apr 2019 11:54:33 +0000 Received: from VI1PR0401MB2541.eurprd04.prod.outlook.com ([fe80::18e3:39b6:c61d:3f18]) by VI1PR0401MB2541.eurprd04.prod.outlook.com ([fe80::18e3:39b6:c61d:3f18%12]) with mapi id 15.20.1750.017; Thu, 4 Apr 2019 11:54:33 +0000 From: Hemant Agrawal To: Shreyansh Jain , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] examples/l3fwd: support separate buffer pool per port Thread-Index: AQHUo1eqaIUoRjuicUqwMQcvs709jaYsc5+A Date: Thu, 4 Apr 2019 11:54:32 +0000 Message-ID: <8688658b-bc2a-4450-0659-93aeeba12452@nxp.com> References: <20190103112932.4415-1-shreyansh.jain@nxp.com> In-Reply-To: <20190103112932.4415-1-shreyansh.jain@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [92.120.1.66] x-clientproxiedby: BM1PR0101CA0027.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::13) To VI1PR0401MB2541.eurprd04.prod.outlook.com (2603:10a6:800:56::19) user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f65335f5-630b-4d1e-591d-08d6b8f44d44 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:VI1PR0401MB2557; x-ms-traffictypediagnostic: VI1PR0401MB2557: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-forefront-prvs: 0997523C40 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(376002)(366004)(136003)(396003)(199004)(189003)(256004)(966005)(105586002)(6436002)(6486002)(25786009)(81166006)(6512007)(8936002)(43066004)(6506007)(2616005)(14454004)(53546011)(476003)(81156014)(76176011)(64126003)(44832011)(65826007)(66066001)(110136005)(229853002)(3846002)(316002)(99286004)(52116002)(478600001)(2906002)(8676002)(6116002)(102836004)(65956001)(5660300002)(71200400001)(71190400001)(58126008)(53936002)(65806001)(186003)(3450700001)(6246003)(386003)(14444005)(31686004)(97736004)(305945005)(7736002)(446003)(486006)(106356001)(68736007)(86362001)(6306002)(31696002)(36756003)(2501003)(11346002)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2557; H:VI1PR0401MB2541.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Wvj0Syac6ugbQrg/y6iRd3kMcefE6Ni8+2+f0TkHWMDfcDFZFoJxqxcZk5dVt2bS2hyOcXr/RjLK8k1YjbQsyKMIXrFO7Os4fxH+TmZsSQo0RQBW9MVwm7RlslKAhdEwaQGXNgJ9cWqzfFTJyOu27rv9O1lWbuFu7kwGke1NmKSsA9HfyiyHlReAIC2cE4LKf0Oe6/+5Z6eI30OEa1kxi6uIAeE02J5GIcb8bFhgQonZJA3Fx6KgI7Ai57h14OjxDhz/wlLtH9fPm6W/hDw/mTKnk2ZAkcakve+3drJR+RNR89HbghLpoIkisaL6t52jx1tlTxa95HNhLFDWwkgUz5gOTEQlLYLzQLiDAvp7zK1MS1rqVWrMFSQwblL0Feon5agD0xrqTroOYLAmHSg4SfJxxvd6fr7wcZaiCKbrG5Y= Content-Type: text/plain; charset="UTF-8" Content-ID: <57698225EA227F4F8D42B11B29D3492B@eurprd04.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f65335f5-630b-4d1e-591d-08d6b8f44d44 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Apr 2019 11:54:33.0052 (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-Transport-CrossTenantHeadersStamped: VI1PR0401MB2557 Subject: Re: [dpdk-dev] [PATCH] examples/l3fwd: support separate buffer pool per port X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Hemant Agrawal List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190404115432.aP3uGIcnuJREW3lNpqv_4orf4-rR_TIVEzC2BlGqYT0@z> cGluZw0KDQoNCk9uIDAzLUphbi0xOSA1OjAwIFBNLCBTaHJleWFuc2ggSmFpbiB3cm90ZToNCj4g VHJhZGl0aW9uYWxseSwgb25seSBhIHNpbmdsZSBidWZmZXIgcG9vbCBwZXIgcG9ydA0KPiAob3Is IHBlci1wb3J0LXBlci1zb2NrZXQpIGlzIGNyZWF0ZWQgaW4gbDNmd2QgYXBwbGljYXRpb24uDQo+ DQo+IElmIHNlcGFyYXRlIHBvb2xzIGFyZSBjcmVhdGVkIHBlci1wb3J0LCBpdCBtaWdodCBsZWFk IHRvIGdhaW4gaW4NCj4gcGVyZm9ybWFuY2UgYXMgcGFja2V0IGFsbG9jL2RlYWxsb2MgcmVxdWVz dHMgd291bGQgYmUgaXNvbGF0ZWQNCj4gYWNyb3NzIHBvcnRzIChhbmQgdGhlaXIgY29ycmVzcG9u ZGluZyBsY29yZXMpLg0KPg0KPiBUaGlzIHBhdGNoIGFkZHMgYW4gYXJndW1lbnQgJy0tcGVyLXBv cnQtcG9vbCcgdG8gdGhlIGwzZndkIGFwcGxpY2F0aW9uLg0KPiBCeSBkZWZhdWx0LCBvbGQgbW9k ZSBvZiBzaW5nbGUgcG9vbCBwZXIgcG9ydCAoc3BsaXQgb24gc29ja2V0cykgaXMNCj4gYWN0aXZl Lg0KPg0KPiBTaWduZWQtb2ZmLWJ5OiBTaHJleWFuc2ggSmF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