From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70047.outbound.protection.outlook.com [40.107.7.47]) by dpdk.org (Postfix) with ESMTP id 5D21A568A for ; Fri, 12 Apr 2019 09:04:23 +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=fcjELVAI2tp6iN6v5l0oNgfE+fOEp7TbWUkmCqAzhLE=; b=dwxcXSmmqShF62hKtMgPNEUlbwH99OPjYFDvFALLFhzdeR9O1+8yIc+W5A7j4Il5AKOvTIllDS+Z2NwoMu27MieMidtxEreDqReD1h190TkO/fduM87XkCHQGWH0QCt6PB6kqiDwCWMC8Z0zVKk8CrkGTeQfRbaq9rcmtqOwGjY= Received: from VE1PR04MB6365.eurprd04.prod.outlook.com (10.255.118.78) by VE1PR04MB6461.eurprd04.prod.outlook.com (20.179.233.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.17; Fri, 12 Apr 2019 07:04:21 +0000 Received: from VE1PR04MB6365.eurprd04.prod.outlook.com ([fe80::f5ad:f178:4c55:13e0]) by VE1PR04MB6365.eurprd04.prod.outlook.com ([fe80::f5ad:f178:4c55:13e0%3]) with mapi id 15.20.1792.016; Fri, 12 Apr 2019 07:04:21 +0000 From: Gagandeep Singh To: "dev@dpdk.org" , "ferruh.yigit@intel.com" CC: "thomas@monjalon.net" , Gagandeep Singh Thread-Topic: [PATCH v2 10/13] net/enetc: enable Rx-Tx queue start/stop feature Thread-Index: AQHU8P30Enam4Bbv8Emcqsdd3WHIBQ== Date: Fri, 12 Apr 2019 07:04:21 +0000 Message-ID: <1555075598-4988-11-git-send-email-g.singh@nxp.com> References: <1554745507-15089-1-git-send-email-g.singh@nxp.com> <1555075598-4988-1-git-send-email-g.singh@nxp.com> In-Reply-To: <1555075598-4988-1-git-send-email-g.singh@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BM1PR0101CA0038.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::24) To VE1PR04MB6365.eurprd04.prod.outlook.com (2603:10a6:803:12a::14) x-mailer: git-send-email 1.9.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=G.Singh@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [92.120.1.67] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 042616d2-5402-40b2-3a1d-08d6bf151648 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:VE1PR04MB6461; x-ms-traffictypediagnostic: VE1PR04MB6461: x-microsoft-antispam-prvs: x-forefront-prvs: 0005B05917 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(39860400002)(376002)(366004)(396003)(346002)(189003)(199004)(6512007)(102836004)(256004)(86362001)(36756003)(14444005)(486006)(25786009)(6486002)(2501003)(26005)(386003)(2906002)(66066001)(7736002)(71190400001)(14454004)(71200400001)(6506007)(53936002)(97736004)(186003)(76176011)(8676002)(52116002)(105586002)(106356001)(99286004)(446003)(81166006)(81156014)(72206003)(478600001)(50226002)(11346002)(476003)(2616005)(6116002)(54906003)(5660300002)(110136005)(4326008)(316002)(8936002)(6436002)(68736007)(3846002)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6461; H:VE1PR04MB6365.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-message-info: xx6w2rIoeu8KE7s8C6r2HMSRKliz2d1hd8B8ux5jRCHWHoCuMBeaxiM3CXTQ846BMCbZb8k1tfgaXHOHLmkZm1XHcoe+wUoTKh+3qIAOh5eo2wPadODUseLAQbSG/QlBg6FhpMIpiQRWpUt47dLgDBj4iCId9jkcTM0t9NnWKLJrfIBo8Thf17uc420RiH8tMPLvaGUMcGGXNEfOaY3YpcMC1Eh15rbe8v9aYMMGXxKWtbZS9Y51325gNw4AbAywYu0LRyCUh0a/iWkZ1k9Pqch9FDxr7yAQj5KI0jId89TqcUbhuZAlGKIST2ELM0nV+HJFWy+bolXUaTnUe1VWUOGvkMbluEZHWaFM4fENrt2WdJphAbRegaBita+QOJ87bn9648WX7djANRlzWf5ALg/2PIdrBvCc9GVepmyqHbo= 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: 042616d2-5402-40b2-3a1d-08d6bf151648 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 07:04:21.3668 (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: VE1PR04MB6461 Subject: [dpdk-dev] [PATCH v2 10/13] net/enetc: enable Rx-Tx queue start/stop feature 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: , X-List-Received-Date: Fri, 12 Apr 2019 07:04:24 -0000 UnggYW5kIFR4IHF1ZXVlIHN0YXJ0LXN0b3AgYW5kIGRlZmVycmVkIHF1ZXVlIHN0YXJ0DQpmZWF0 dXJlcyBlbmFibGVkLg0KDQpTaWduZWQtb2ZmLWJ5OiBHYWdhbmRlZXAgU2luZ2ggPGc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XVldWVfc2V0dXAgICAgICAgPSBlbmV0Y190eF9x dWV1ZV9zZXR1cCwNCisJLnR4X3F1ZXVlX3N0YXJ0ICAgICAgID0gZW5ldGNfdHhfcXVldWVfc3Rh cnQsDQorCS50eF9xdWV1ZV9zdG9wICAgICAgICA9IGVuZXRjX3R4X3F1ZXVlX3N0b3AsDQogCS50 eF9xdWV1ZV9yZWxlYXNlICAgICA9IGVuZXRjX3R4X3F1ZXVlX3JlbGVhc2UsDQogCS5kZXZfc3Vw cG9ydGVkX3B0eXBlc19nZXQgPSBlbmV0Y19zdXBwb3J0ZWRfcHR5cGVzX2dldCwNCiB9Ow0KLS0g DQoxLjkuMQ0KDQo= 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 96917A0096 for ; Fri, 12 Apr 2019 09:05:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 723F65F16; Fri, 12 Apr 2019 09:04:49 +0200 (CEST) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70047.outbound.protection.outlook.com [40.107.7.47]) by dpdk.org (Postfix) with ESMTP id 5D21A568A for ; Fri, 12 Apr 2019 09:04:23 +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=fcjELVAI2tp6iN6v5l0oNgfE+fOEp7TbWUkmCqAzhLE=; b=dwxcXSmmqShF62hKtMgPNEUlbwH99OPjYFDvFALLFhzdeR9O1+8yIc+W5A7j4Il5AKOvTIllDS+Z2NwoMu27MieMidtxEreDqReD1h190TkO/fduM87XkCHQGWH0QCt6PB6kqiDwCWMC8Z0zVKk8CrkGTeQfRbaq9rcmtqOwGjY= Received: from VE1PR04MB6365.eurprd04.prod.outlook.com (10.255.118.78) by VE1PR04MB6461.eurprd04.prod.outlook.com (20.179.233.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.17; Fri, 12 Apr 2019 07:04:21 +0000 Received: from VE1PR04MB6365.eurprd04.prod.outlook.com ([fe80::f5ad:f178:4c55:13e0]) by VE1PR04MB6365.eurprd04.prod.outlook.com ([fe80::f5ad:f178:4c55:13e0%3]) with mapi id 15.20.1792.016; Fri, 12 Apr 2019 07:04:21 +0000 From: Gagandeep Singh To: "dev@dpdk.org" , "ferruh.yigit@intel.com" CC: "thomas@monjalon.net" , Gagandeep Singh Thread-Topic: [PATCH v2 10/13] net/enetc: enable Rx-Tx queue start/stop feature Thread-Index: AQHU8P30Enam4Bbv8Emcqsdd3WHIBQ== Date: Fri, 12 Apr 2019 07:04:21 +0000 Message-ID: <1555075598-4988-11-git-send-email-g.singh@nxp.com> References: <1554745507-15089-1-git-send-email-g.singh@nxp.com> <1555075598-4988-1-git-send-email-g.singh@nxp.com> In-Reply-To: <1555075598-4988-1-git-send-email-g.singh@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BM1PR0101CA0038.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::24) To VE1PR04MB6365.eurprd04.prod.outlook.com (2603:10a6:803:12a::14) x-mailer: git-send-email 1.9.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=G.Singh@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [92.120.1.67] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 042616d2-5402-40b2-3a1d-08d6bf151648 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:VE1PR04MB6461; x-ms-traffictypediagnostic: VE1PR04MB6461: x-microsoft-antispam-prvs: x-forefront-prvs: 0005B05917 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(39860400002)(376002)(366004)(396003)(346002)(189003)(199004)(6512007)(102836004)(256004)(86362001)(36756003)(14444005)(486006)(25786009)(6486002)(2501003)(26005)(386003)(2906002)(66066001)(7736002)(71190400001)(14454004)(71200400001)(6506007)(53936002)(97736004)(186003)(76176011)(8676002)(52116002)(105586002)(106356001)(99286004)(446003)(81166006)(81156014)(72206003)(478600001)(50226002)(11346002)(476003)(2616005)(6116002)(54906003)(5660300002)(110136005)(4326008)(316002)(8936002)(6436002)(68736007)(3846002)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6461; H:VE1PR04MB6365.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-message-info: xx6w2rIoeu8KE7s8C6r2HMSRKliz2d1hd8B8ux5jRCHWHoCuMBeaxiM3CXTQ846BMCbZb8k1tfgaXHOHLmkZm1XHcoe+wUoTKh+3qIAOh5eo2wPadODUseLAQbSG/QlBg6FhpMIpiQRWpUt47dLgDBj4iCId9jkcTM0t9NnWKLJrfIBo8Thf17uc420RiH8tMPLvaGUMcGGXNEfOaY3YpcMC1Eh15rbe8v9aYMMGXxKWtbZS9Y51325gNw4AbAywYu0LRyCUh0a/iWkZ1k9Pqch9FDxr7yAQj5KI0jId89TqcUbhuZAlGKIST2ELM0nV+HJFWy+bolXUaTnUe1VWUOGvkMbluEZHWaFM4fENrt2WdJphAbRegaBita+QOJ87bn9648WX7djANRlzWf5ALg/2PIdrBvCc9GVepmyqHbo= 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: 042616d2-5402-40b2-3a1d-08d6bf151648 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 07:04:21.3668 (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: VE1PR04MB6461 Subject: [dpdk-dev] [PATCH v2 10/13] net/enetc: enable Rx-Tx queue start/stop feature 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" Message-ID: <20190412070421.5jgUdHxnJDNvn1ce1mgV_bbFycw28KhgNI44cC-yaDI@z> UnggYW5kIFR4IHF1ZXVlIHN0YXJ0LXN0b3AgYW5kIGRlZmVycmVkIHF1ZXVlIHN0YXJ0DQpmZWF0 dXJlcyBlbmFibGVkLg0KDQpTaWduZWQtb2ZmLWJ5OiBHYWdhbmRlZXAgU2luZ2ggPGcuc2luZ2hA bnhwLmNvbT4NCi0tLQ0KIGRvYy9ndWlkZXMvbmljcy9lbmV0Yy5yc3QgICAgICAgICAgfCAgIDIg Kw0KIGRvYy9ndWlkZXMvbmljcy9mZWF0dXJlcy9lbmV0Yy5pbmkgfCAgIDEgKw0KIGRyaXZlcnMv bmV0L2VuZXRjL2VuZXRjX2V0aGRldi5jICAgfCAxODUgKysrKysrKysrKysrKysrKysrKysrKysr KystLS0tLS0tLS0tLQ0KIDMgZmlsZXMgY2hhbmdlZCwgMTM0IGluc2VydGlvbnMoKyksIDU0IGRl bGV0aW9ucygtKQ0KDQpkaWZmIC0tZ2l0IGEvZG9jL2d1aWRlcy9uaWNzL2VuZXRjLnJzdCBiL2Rv Yy9ndWlkZXMvbmljcy9lbmV0Yy5yc3QNCmluZGV4IGVlYjA3NTIuLjI2ZDYxZjYgMTAwNjQ0DQot L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