From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0062.outbound.protection.outlook.com [104.47.0.62]) by dpdk.org (Postfix) with ESMTP id D318F1C739 for ; Mon, 14 May 2018 12:14:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=XUzOHmRdem/9uZTQMv5znnRtzOz1/khT/oFXTHFeFgg=; b=JI+EDEd0iXLQQEZnn2MGWGxvJSpoXllwxVfyXAxFUaCOUxIZmnkgwQZLMMCaCnRQ72eVdztQeQK5sj4qWM0GUY6dpTpo1RmL1zP+Iau47nWlKO9X2bIQXbSdc97UimUvqLLq1vierlP5t8CEL5iPGYf6KyujbYcwl+YQx2SPUJA= Received: from DB7PR05MB4426.eurprd05.prod.outlook.com (52.134.109.15) by DB7PR05MB4204.eurprd05.prod.outlook.com (52.134.107.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Mon, 14 May 2018 10:14:42 +0000 Received: from DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::f116:5be4:ba29:fed8]) by DB7PR05MB4426.eurprd05.prod.outlook.com ([fe80::f116:5be4:ba29:fed8%13]) with mapi id 15.20.0755.018; Mon, 14 May 2018 10:14:42 +0000 From: Shahaf Shuler To: Ophir Munk , "dev@dpdk.org" , "Adrien Mazarguil" CC: Thomas Monjalon , Olga Shern Thread-Topic: [PATCH v6 1/2] net/mlx4: avoid constant recreations in function Thread-Index: AQHT62tpzPrtMc79KUKCvFlg8+s2l6QvAcHw Date: Mon, 14 May 2018 10:14:42 +0000 Message-ID: References: <1526230217-21180-1-git-send-email-ophirmu@mellanox.com> <1526292452-30482-1-git-send-email-ophirmu@mellanox.com> In-Reply-To: <1526292452-30482-1-git-send-email-ophirmu@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB7PR05MB4204; 7:eU8yr1uTg79I/lONO+AQqY4mXgIlDMiD0iDNfW0HjDUJwMoa9Yy72I0/eU6CuGAs/i8w8I66rOmlHTzCgjRNrZLapFNpXhbjywhwficpQeh6YK9ncDhi1KCMPS/4cSzCRNnWWzrGcv1xpDv+j896Kipif+6FMxG1Z8v7uqMfXJpB80n1S5twzQYSt5EjkXNTe2zsxEmtaD5xDE1uxs+fxeu7lXkMKaNcIRH5suz9uKBScG/5CrsCk+PoCgtH0qj3 x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(2017052603328)(7153060)(7193020); SRVR:DB7PR05MB4204; x-ms-traffictypediagnostic: DB7PR05MB4204: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:DB7PR05MB4204; BCL:0; PCL:0; RULEID:; SRVR:DB7PR05MB4204; x-forefront-prvs: 067270ECAF x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(376002)(346002)(396003)(39380400002)(39860400002)(189003)(199004)(8936002)(86362001)(8676002)(106356001)(5250100002)(66066001)(25786009)(14454004)(33656002)(2501003)(478600001)(5660300001)(81166006)(110136005)(4326008)(105586002)(54906003)(81156014)(316002)(74316002)(53936002)(102836004)(99286004)(6506007)(2900100001)(107886003)(476003)(9686003)(6436002)(6246003)(3660700001)(55016002)(446003)(486006)(3846002)(305945005)(11346002)(68736007)(7736002)(76176011)(97736004)(6116002)(26005)(2906002)(3280700002)(7696005)(229853002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR05MB4204; H:DB7PR05MB4426.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: G3e2NUHNJDH5tavQsngVodsigE7iRC1OeBsSLMKpuPUsKZF+ErDSp6GRylXh8+kfvCuekEtv6iVAyz+9dSPxkUN++D9CBct1TkJFeYidh/B7J0aQwOG11yEprsvOEl3c4qPNspvRhdDXZt2wtmHCGccJ7QLGAvFU49wF8DvC+0JlJfHiQeItLW4vcPaneLj1 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: c03bd98c-e347-49de-d94e-08d5b98382b2 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: c03bd98c-e347-49de-d94e-08d5b98382b2 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 May 2018 10:14:42.6156 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR05MB4204 Subject: Re: [dpdk-dev] [PATCH v6 1/2] net/mlx4: avoid constant recreations in function 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: Mon, 14 May 2018 10:14:45 -0000 Monday, May 14, 2018 1:08 PM, Ophir Munk: > Subject: [PATCH v6 1/2] net/mlx4: avoid constant recreations in function >=20 > Function mlx4_conv_rss_types() contains constant arrays variables which a= re > recreated with every call to the function. By changing the arrays definit= ions > from "const" to "static const" these recreations can be saved. >=20 > Signed-off-by: Ophir Munk Series applied to next-net-mlx, thanks.=20