From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80078.outbound.protection.outlook.com [40.107.8.78]) by dpdk.org (Postfix) with ESMTP id D50974C8F for ; Fri, 12 Apr 2019 09:04:15 +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=aqCl+0c5enr2SVKrmXPkybgaE7Exio66vOZgzaphGn0=; b=gqOVTxqfRQkLq64HOOtuW+WhOdf69mgYVmtznnmyR5dMYtEw0avoOs/C09y4yAtKV3bgxD9yJ6KT/EbtHXU0j0OcCTj69BBO4NrvSRe+/Du/O93TT144QkxdVbG4Wp6tevlWvDOnZPaUVbGWSoDKKp1LqgQzCVIIDWW4wvBWcq8= 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:14 +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:14 +0000 From: Gagandeep Singh To: "dev@dpdk.org" , "ferruh.yigit@intel.com" CC: "thomas@monjalon.net" , Gagandeep Singh Thread-Topic: [PATCH v2 06/13] net/enetc: replace register read/write macros with functions Thread-Index: AQHU8P3v3rqTZtNCPU6fNYmlTaAeUw== Date: Fri, 12 Apr 2019 07:04:14 +0000 Message-ID: <1555075598-4988-7-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: 0d3f8f8b-e99b-4c91-af37-08d6bf15120e 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)(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: XSQ2abpOMnHlc5Qzza01KToLF+cMpC7SD6e0L1YXn09STR8Fu30Omv6XHaLNFTpl+4WhHsnhGL0KVWvRXTyhJe9yGtBKIZIkET91iE9zB9zvhCBI0/Ppfi56JLGYhUCm2R7MNmkH3gHmUFVEYbKD91pTll7Y0i0zks1FnOKhnZfJYBuAQkkTp7wSWhLEaSNwJGI8bzv186PKRyMt+o35jWA82IWzkdck7URicqg4coTlSEEQaaEokoLseCs2hrxxN7MGKWX+Dj9RjQIdeq4TMmV5f/JQlrYj58mpMLcXvFMSdLTl5Lgw7bW8BKoUTmu7iwdDzrKCuVbGU9pcGPErRfON1P1i0FMlSlIhAUUyWaDefX/U1b90I744CAVs+pXDUMngGs2sygBbkBRbJ7x6o6UUATUKEi2UOH6QpbF+CvQ= 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: 0d3f8f8b-e99b-4c91-af37-08d6bf15120e X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 07:04:14.2768 (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 06/13] net/enetc: replace register read/write macros with functions 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:16 -0000 UmVwbGFjaW5nIHJlYWQtd3JpdGUgbWFjcm9zIHdpdGggYWxyZWFkeSBhdmFpbGFibGUNCnJlYWQt d3JpdGUgZnVuY3Rpb25zLg0KDQpTaWduZWQtb2ZmLWJ5OiBHYWdhbmRlZXAgU2luZ2ggPGcuc2lu Z2h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ZGRik7DQotCUVORVRDX1JFR19X UklURShFTkVUQ19HRVRfSFdfQUREUihody0+aHcucG9ydCwgRU5FVENfUFNJUE1BUjEoMCkpLA0K LQkJCTB4RkZGRiA8PCAxNik7DQorCWVuZXRjX3BvcnRfd3IoZW5ldGNfaHcsIEVORVRDX1BTSVBN QVIwKDApLCAweEZGRkZGRkZGKTsNCisJZW5ldGNfcG9ydF93cihlbmV0Y19odywgRU5FVENfUFNJ UE1BUjEoMCksIDB4RkZGRiA8PCAxNik7DQogDQogCXJldHVybiAwOw0KIH0NCi0tIA0KMS45LjEN Cg0K 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 8EB88A0096 for ; Fri, 12 Apr 2019 09:05:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F00BB5B1C; Fri, 12 Apr 2019 09:04:32 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80078.outbound.protection.outlook.com [40.107.8.78]) by dpdk.org (Postfix) with ESMTP id D50974C8F for ; Fri, 12 Apr 2019 09:04:15 +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=aqCl+0c5enr2SVKrmXPkybgaE7Exio66vOZgzaphGn0=; b=gqOVTxqfRQkLq64HOOtuW+WhOdf69mgYVmtznnmyR5dMYtEw0avoOs/C09y4yAtKV3bgxD9yJ6KT/EbtHXU0j0OcCTj69BBO4NrvSRe+/Du/O93TT144QkxdVbG4Wp6tevlWvDOnZPaUVbGWSoDKKp1LqgQzCVIIDWW4wvBWcq8= 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:14 +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:14 +0000 From: Gagandeep Singh To: "dev@dpdk.org" , "ferruh.yigit@intel.com" CC: "thomas@monjalon.net" , Gagandeep Singh Thread-Topic: [PATCH v2 06/13] net/enetc: replace register read/write macros with functions Thread-Index: AQHU8P3v3rqTZtNCPU6fNYmlTaAeUw== Date: Fri, 12 Apr 2019 07:04:14 +0000 Message-ID: <1555075598-4988-7-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: 0d3f8f8b-e99b-4c91-af37-08d6bf15120e 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)(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: XSQ2abpOMnHlc5Qzza01KToLF+cMpC7SD6e0L1YXn09STR8Fu30Omv6XHaLNFTpl+4WhHsnhGL0KVWvRXTyhJe9yGtBKIZIkET91iE9zB9zvhCBI0/Ppfi56JLGYhUCm2R7MNmkH3gHmUFVEYbKD91pTll7Y0i0zks1FnOKhnZfJYBuAQkkTp7wSWhLEaSNwJGI8bzv186PKRyMt+o35jWA82IWzkdck7URicqg4coTlSEEQaaEokoLseCs2hrxxN7MGKWX+Dj9RjQIdeq4TMmV5f/JQlrYj58mpMLcXvFMSdLTl5Lgw7bW8BKoUTmu7iwdDzrKCuVbGU9pcGPErRfON1P1i0FMlSlIhAUUyWaDefX/U1b90I744CAVs+pXDUMngGs2sygBbkBRbJ7x6o6UUATUKEi2UOH6QpbF+CvQ= 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: 0d3f8f8b-e99b-4c91-af37-08d6bf15120e X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2019 07:04:14.2768 (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 06/13] net/enetc: replace register read/write macros with functions 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: <20190412070414.HB2EIModoGOWduvZjvPH8trToKwQ6AWsrXofnq0K0QQ@z> UmVwbGFjaW5nIHJlYWQtd3JpdGUgbWFjcm9zIHdpdGggYWxyZWFkeSBhdmFpbGFibGUNCnJlYWQt d3JpdGUgZnVuY3Rpb25zLg0KDQpTaWduZWQtb2ZmLWJ5OiBHYWdhbmRlZXAgU2luZ2ggPGcuc2lu Z2hAbnhwLmNvbT4NCi0tLQ0KIGRyaXZlcnMvbmV0L2VuZXRjL2VuZXRjLmggICAgICAgIHwgIDcg Ky0tLS0NCiBkcml2ZXJzL25ldC9lbmV0Yy9lbmV0Y19ldGhkZXYuYyB8IDYxICsrKysrKysrKysr KysrKysrKysrLS0tLS0tLS0tLS0tLS0tLS0tLS0NCiAyIGZpbGVzIGNoYW5nZWQsIDMxIGluc2Vy dGlvbnMoKyksIDM3IGRlbGV0aW9ucygtKQ0KDQpkaWZmIC0tZ2l0IGEvZHJpdmVycy9uZXQvZW5l dGMvZW5ldGMuaCBiL2RyaXZlcnMvbmV0L2VuZXRjL2VuZXRjLmgNCmluZGV4IDBlODBkMWMuLjU2 NDU0ZGMgMTAwNjQ0DQotLS0gYS9kcml2ZXJzL25ldC9lbmV0Yy9lbmV0Yy5oDQorKysgYi9kcml2 ZXJzL25ldC9lbmV0Yy9lbmV0Yy5oDQpAQCAtMSw1ICsxLDUgQEANC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