From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50059.outbound.protection.outlook.com [40.107.5.59]) by dpdk.org (Postfix) with ESMTP id 756371B134 for ; Fri, 12 Apr 2019 14:29:08 +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=sVKYONk6RXlKxCWdkIvvKmwJUFyrJr2rhwxDgn1AjZM=; b=Hiqv3pnvovDK/PcJXFidGY+lpMFYyEYiukFFjWs7CTagPiY4OuyId+ZF5tF+HLBOhm5tz+CGCoYxqyMWE9b4vGaIIzOkc8SyYdgC2cmsINvN3K53dIHd1nHbffdQISwIBHv0Hac0JpWhLHlJyBVmpRdZcyaDjl6VxD5xR+SFyfY= Received: from VE1PR04MB6365.eurprd04.prod.outlook.com (10.255.118.78) by VE1PR04MB6367.eurprd04.prod.outlook.com (10.255.118.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.15; Fri, 12 Apr 2019 12:29:06 +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 12:29:06 +0000 From: Gagandeep Singh To: "dev@dpdk.org" , "ferruh.yigit@intel.com" CC: Gagandeep Singh Thread-Topic: [PATCH v4 10/13] net/enetc: enable Rx-Tx queue start/stop feature Thread-Index: AQHU8StS8zNSSnLTbEqUkhITCItBbg== Date: Fri, 12 Apr 2019 12:29:06 +0000 Message-ID: <20190412122840.1908-11-g.singh@nxp.com> References: <20190412105105.24351-1-g.singh@nxp.com> <20190412122840.1908-1-g.singh@nxp.com> In-Reply-To: <20190412122840.1908-1-g.singh@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BMXPR01CA0029.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::15) To VE1PR04MB6365.eurprd04.prod.outlook.com (2603:10a6:803:12a::14) x-mailer: git-send-email 2.19.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=G.Singh@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [92.120.0.8] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: edab8a4b-204d-4cd1-27a2-08d6bf42749d 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:VE1PR04MB6367; x-ms-traffictypediagnostic: VE1PR04MB6367: x-microsoft-antispam-prvs: x-forefront-prvs: 0005B05917 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(346002)(396003)(39860400002)(366004)(136003)(189003)(199004)(476003)(99286004)(1076003)(8936002)(2501003)(5660300002)(186003)(6486002)(97736004)(3846002)(6436002)(106356001)(6116002)(14444005)(7736002)(6506007)(102836004)(386003)(305945005)(256004)(446003)(76176011)(2616005)(105586002)(26005)(71190400001)(53936002)(36756003)(66066001)(25786009)(8676002)(486006)(11346002)(14454004)(50226002)(71200400001)(81156014)(6512007)(86362001)(2906002)(316002)(478600001)(110136005)(72206003)(4326008)(52116002)(68736007)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6367; 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: mgADyYCPxOaPtF6LxLUG4uGpVs3ApD9UjXMfPt93wZf4OimUMDmzhLR8B804gK8Fhj5DXufFqIRlh2WeQ8IBhacASY7Wjv6OkS8JH3HKp2b527hQQ39AFcaUXxzswzrVD8EDqWgXg49mpqvwK/O+mqmy0VlYJjeca0ZHpqH1+Jm0z248CpMDNYhEWj32edS1l+bYdoamD391j6BJ5pPeBCzfoBg13cZ1kwRAvDS0xzkhrOrSUlrTunrTfT6Uqt+L8ws3DvciEcEdlS7tC6xNwWpar34uwZiwj8pV66c1APS2wGz6lFuxmVupqVP18hriTTKuGOpSITnpYI2x8BXyzwqtcWMTp3NoXoDQ8/sr4QmLVagGDm67tVrbTRcw3GifvijcFpTZX5JzVSIRONpbxLwdM+F4GLlwsaSSdlzZf4U= 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: edab8a4b-204d-4cd1-27a2-08d6bf42749d X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 12:29:06.7969 (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: VE1PR04MB6367 Subject: [dpdk-dev] [PATCH v4 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 12:29:08 -0000 UnggYW5kIFR4IHF1ZXVlIHN0YXJ0LXN0b3AgYW5kIGRlZmVycmVkIHF1ZXVlIHN0YXJ0DQpmZWF0 dXJlcyBlbmFibGVkLg0KDQpTaWduZWQtb2ZmLWJ5OiBHYWdhbmRlZXAgU2luZ2ggPGcuc2luZ2hA bnhwLmNvbT4NCi0tLQ0KIG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aGlz IGRyaXZlciBzdXBwb3J0cw0KICAqLw0KQEAgLTY4Niw4ICs3NTksMTIgQEAgc3RhdGljIGNvbnN0 IHN0cnVjdCBldGhfZGV2X29wcyBlbmV0Y19vcHMgPSB7DQogCS5kZXZfaW5mb3NfZ2V0ICAgICAg ICA9IGVuZXRjX2Rldl9pbmZvc19nZXQsDQogCS5tdHVfc2V0ICAgICAgICAgICAgICA9IGVuZXRj X210dV9zZXQsDQogCS5yeF9xdWV1ZV9zZXR1cCAgICAgICA9IGVuZXRjX3J4X3F1ZXVlX3NldHVw LA0KKwkucnhfcXVldWVfc3RhcnQgICAgICAgPSBlbmV0Y19yeF9xdWV1ZV9zdGFydCwNCisJLnJ4 X3F1ZXVlX3N0b3AgICAgICAgID0gZW5ldGNfcnhfcXVldWVfc3RvcCwNCiAJLnJ4X3F1ZXVlX3Jl bGVhc2UgICAgID0gZW5ldGNfcnhfcXVldWVfcmVsZWFzZSwNCiAJLnR4X3F1ZXVlX3NldHVwICAg ICAgID0gZW5ldGNfdHhfcXVldWVfc2V0dXAsDQorCS50eF9xdWV1ZV9zdGFydCAgICAgICA9IGVu ZXRjX3R4X3F1ZXVlX3N0YXJ0LA0KKwkudHhfcXVldWVfc3RvcCAgICAgICAgPSBlbmV0Y190eF9x dWV1ZV9zdG9wLA0KIAkudHhfcXVldWVfcmVsZWFzZSAgICAgPSBlbmV0Y190eF9xdWV1ZV9yZWxl YXNlLA0KIAkuZGV2X3N1cHBvcnRlZF9wdHlwZXNfZ2V0ID0gZW5ldGNfc3VwcG9ydGVkX3B0eXBl c19nZXQsDQogfTsNCi0tIA0KMi4xOS4xDQoNCg== 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 BE8F8A0096 for ; Fri, 12 Apr 2019 14:30:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2BF8E1B212; Fri, 12 Apr 2019 14:29:42 +0200 (CEST) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50059.outbound.protection.outlook.com [40.107.5.59]) by dpdk.org (Postfix) with ESMTP id 756371B134 for ; Fri, 12 Apr 2019 14:29:08 +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=sVKYONk6RXlKxCWdkIvvKmwJUFyrJr2rhwxDgn1AjZM=; b=Hiqv3pnvovDK/PcJXFidGY+lpMFYyEYiukFFjWs7CTagPiY4OuyId+ZF5tF+HLBOhm5tz+CGCoYxqyMWE9b4vGaIIzOkc8SyYdgC2cmsINvN3K53dIHd1nHbffdQISwIBHv0Hac0JpWhLHlJyBVmpRdZcyaDjl6VxD5xR+SFyfY= Received: from VE1PR04MB6365.eurprd04.prod.outlook.com (10.255.118.78) by VE1PR04MB6367.eurprd04.prod.outlook.com (10.255.118.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.15; Fri, 12 Apr 2019 12:29:06 +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 12:29:06 +0000 From: Gagandeep Singh To: "dev@dpdk.org" , "ferruh.yigit@intel.com" CC: Gagandeep Singh Thread-Topic: [PATCH v4 10/13] net/enetc: enable Rx-Tx queue start/stop feature Thread-Index: AQHU8StS8zNSSnLTbEqUkhITCItBbg== Date: Fri, 12 Apr 2019 12:29:06 +0000 Message-ID: <20190412122840.1908-11-g.singh@nxp.com> References: <20190412105105.24351-1-g.singh@nxp.com> <20190412122840.1908-1-g.singh@nxp.com> In-Reply-To: <20190412122840.1908-1-g.singh@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BMXPR01CA0029.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::15) To VE1PR04MB6365.eurprd04.prod.outlook.com (2603:10a6:803:12a::14) x-mailer: git-send-email 2.19.1 authentication-results: spf=none (sender IP is ) smtp.mailfrom=G.Singh@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [92.120.0.8] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: edab8a4b-204d-4cd1-27a2-08d6bf42749d 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:VE1PR04MB6367; x-ms-traffictypediagnostic: VE1PR04MB6367: x-microsoft-antispam-prvs: x-forefront-prvs: 0005B05917 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(346002)(396003)(39860400002)(366004)(136003)(189003)(199004)(476003)(99286004)(1076003)(8936002)(2501003)(5660300002)(186003)(6486002)(97736004)(3846002)(6436002)(106356001)(6116002)(14444005)(7736002)(6506007)(102836004)(386003)(305945005)(256004)(446003)(76176011)(2616005)(105586002)(26005)(71190400001)(53936002)(36756003)(66066001)(25786009)(8676002)(486006)(11346002)(14454004)(50226002)(71200400001)(81156014)(6512007)(86362001)(2906002)(316002)(478600001)(110136005)(72206003)(4326008)(52116002)(68736007)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6367; 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: mgADyYCPxOaPtF6LxLUG4uGpVs3ApD9UjXMfPt93wZf4OimUMDmzhLR8B804gK8Fhj5DXufFqIRlh2WeQ8IBhacASY7Wjv6OkS8JH3HKp2b527hQQ39AFcaUXxzswzrVD8EDqWgXg49mpqvwK/O+mqmy0VlYJjeca0ZHpqH1+Jm0z248CpMDNYhEWj32edS1l+bYdoamD391j6BJ5pPeBCzfoBg13cZ1kwRAvDS0xzkhrOrSUlrTunrTfT6Uqt+L8ws3DvciEcEdlS7tC6xNwWpar34uwZiwj8pV66c1APS2wGz6lFuxmVupqVP18hriTTKuGOpSITnpYI2x8BXyzwqtcWMTp3NoXoDQ8/sr4QmLVagGDm67tVrbTRcw3GifvijcFpTZX5JzVSIRONpbxLwdM+F4GLlwsaSSdlzZf4U= 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: edab8a4b-204d-4cd1-27a2-08d6bf42749d X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 12:29:06.7969 (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: VE1PR04MB6367 Subject: [dpdk-dev] [PATCH v4 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: <20190412122906.4qD3OWwYKrqsLC34ydhwTKCgQh640p76VYbYmADDt9o@z> UnggYW5kIFR4IHF1ZXVlIHN0YXJ0LXN0b3AgYW5kIGRlZmVycmVkIHF1ZXVlIHN0YXJ0DQpmZWF0 dXJlcyBlbmFibGVkLg0KDQpTaWduZWQtb2ZmLWJ5OiBHYWdhbmRlZXAg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