From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60044.outbound.protection.outlook.com [40.107.6.44]) by dpdk.org (Postfix) with ESMTP id 04F671B3A7 for ; Tue, 23 Oct 2018 12:04:17 +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:X-MS-Exchange-SenderADCheck; bh=5A01UPa8+FGL1QPKfOmUuEYdOJcRMc/8T7YIyB114wM=; b=tjuJ6aEE4aqD9lnoSrYZAbcNR/EuO//dAH9V4Ezf8JKI6bFK9NQwxL2beb6A+ibLDfT2NPIsAJPxQCOjztiKTX4rPhPFSHEsUIcgENRwXVpyTaLgBbv35wHo2tnwvA2cSDqlhoukXIFKAuqZ+2z1Qx6y23yxf7DGope/nMeUbsE= Received: from AM4PR05MB3265.eurprd05.prod.outlook.com (10.171.186.150) by AM4PR05MB3380.eurprd05.prod.outlook.com (10.171.187.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1250.30; Tue, 23 Oct 2018 10:04:16 +0000 Received: from AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::477:2091:24b4:439f]) by AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::477:2091:24b4:439f%4]) with mapi id 15.20.1250.028; Tue, 23 Oct 2018 10:04:16 +0000 From: Slava Ovsiienko To: Slava Ovsiienko CC: "dev@dpdk.org" Thread-Topic: [PATCH v4 7/8] net/mlx5: remove unnecessary structure initializers Thread-Index: AQHUarfBnoBYh6MKF0Kf7/JS2mRAwg== Date: Tue, 23 Oct 2018 10:04:15 +0000 Message-ID: <1540289032-29628-8-git-send-email-viacheslavo@mellanox.com> References: <1539962470-10950-1-git-send-email-viacheslavo@mellanox.com> <1540289032-29628-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1540289032-29628-1-git-send-email-viacheslavo@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: LO2P265CA0442.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:e::22) To AM4PR05MB3265.eurprd05.prod.outlook.com (2603:10a6:205:4::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=viacheslavo@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [37.142.13.130] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM4PR05MB3380; 6:L7p8V5N5TtpOPKSaFNtEqojc9RS0IE7SjiAyE3E0YH5z3/ROakCQ8zv8t5+j8YKyRiK8gbeUOfHmDVWmjBMq0RX6SW/0hYIVjUgelChZs0SdhyLl5DzdEIPE15rKKYXxzcybir+7U+Yhc6/234CDeMITxlr8o+osu+wGspV70nsRvFROvTwM0VDSBfTV5ODm/CDbLkXfgoKvfrcb+5dd05CIrn+n6Z4rtGBKYEZZ+Knzpci0CUbzXLUrVNJ/oAiClTEohG5TY5bq1nqshDAZ8gbZwaBx7Z7zeUyd5zfktMmIaq76YFv5+BRKtIehA5u8FR62E9t1GuQqnxldVNoIhnFVG1ZVtRSDifKIzdtAeBoz5+/Ywun8iOkEslh9GgcfNwVWB1oy3TLLyBwNNhrm3Ce303G7soSByWP5WOI1MXCsIApEphdGupLuDXyCQxxsUw1cMcewpUqetoXQxkP2Mg==; 5:vmCM3Q8uhnjlP5L2KCDcvCB6KsNumHkx2ygaKBmLwE/yZkR5Ts1mh0ZwZDaTf3L3FcnRnpTjSRKHGTwJMaqw86yMs3JBx5RPKyPH/Guz7wF3t7qUwvEfEmi7XgHx7+Iv7DxkRhV9FxBUymJq6UlM+DgI1KrYxJtlDOTsuGCofTA=; 7:iVZUM1EPTm0BgfUbYPFhKS3AGSpYIcAQ93HPlWPSlJyUX1JiUzp6D7iSVIj/AbIN9dvgo+wMErBZReNmGngHgtFBukGHFHHdGN9ZLc904Fbt4OTHmCdnpWwrt4YxsaQTDcqk4ID9J+AabVDXrSK5QfRAcO5MlpSgyMNyNelquOh4o3BgBiDawYQem39r0rbDlIuFAAn1wce4VBEwti+HqlrTBa3bobKFir3XuYgIZ3DfpBSSn0fqEYqR7ke87/ij x-ms-office365-filtering-correlation-id: 60333d63-3fce-4c45-e0b6-08d638cee37d x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:AM4PR05MB3380; x-ms-traffictypediagnostic: AM4PR05MB3380: 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)(93006095)(93001095)(10201501046)(3231355)(944501410)(52105095)(3002001)(6055026)(148016)(149066)(150057)(6041310)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:AM4PR05MB3380; BCL:0; PCL:0; RULEID:; SRVR:AM4PR05MB3380; x-forefront-prvs: 0834BAF534 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(136003)(346002)(39860400002)(376002)(366004)(199004)(189003)(71200400001)(6512007)(2906002)(478600001)(5660300001)(446003)(2616005)(14454004)(53936002)(6436002)(37006003)(3846002)(81156014)(6862004)(86362001)(36756003)(2900100001)(5250100002)(7736002)(305945005)(6116002)(6486002)(105586002)(7049001)(316002)(97736004)(68736007)(71190400001)(52116002)(102836004)(4326008)(476003)(25786009)(99286004)(66066001)(106356001)(8676002)(81166006)(256004)(76176011)(6506007)(386003)(486006)(11346002)(6200100001)(26005)(186003)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3380; H:AM4PR05MB3265.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: dP48aFihHIAV0a+dr2saNkai9QfSXgsJCI9mzJ5oCDjEt0EQ7izxHv0Fc4I4pdTx12QPSuo01r0iAw+2qfYDuD56svLa/oiyZQclVn9MbHtEX7WBnP0nDYCDEN30NZxBM3X4EXDhQ0wq7QZwFCp0RFvX+X7lEkCXHbUrn5vnvqR0zxGTWG72P5huudHLPWfnz/pUv32LrYugfjza1DH0B2Hzn8spu/qdjR6rHMi8XRFUusElqs8MHP2gRdVn3o7jveELcprRkyN1It1jd+d05PC7PmHa1dWuAtkzOswfwQp9kN6DoGDBta3rvXLrfYVLh9a9+3yr5i0dRgq18tGOXV2VpLyGreusm5Mfkp9+i5o= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 60333d63-3fce-4c45-e0b6-08d638cee37d X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Oct 2018 10:04:15.4902 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3380 Subject: [dpdk-dev] [PATCH v4 7/8] net/mlx5: remove unnecessary structure initializers 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: Tue, 23 Oct 2018 10:04:17 -0000 The unnecessary structure filed initializers to zero are removed. We need to do this minor preparation before the following mlx5 counter structure modification. Signed-off-by: Viacheslav Ovsiienko --- drivers/net/mlx5/mlx5_flow_tcf.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/mlx5/mlx5_flow_tcf.c b/drivers/net/mlx5/mlx5_flow_= tcf.c index a0680af..4076400 100644 --- a/drivers/net/mlx5/mlx5_flow_tcf.c +++ b/drivers/net/mlx5/mlx5_flow_tcf.c @@ -399,11 +399,6 @@ struct pedit_parser { */ struct mlx5_flow_counter tmpl =3D { .ref_cnt =3D 1, - .shared =3D 0, - .id =3D 0, - .cs =3D NULL, - .hits =3D 0, - .bytes =3D 0, }; cnt =3D rte_calloc(__func__, 1, sizeof(*cnt), 0); if (!cnt) { --=20 1.8.3.1