From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10044.outbound.protection.outlook.com [40.107.1.44]) by dpdk.org (Postfix) with ESMTP id CF1C61B319 for ; Mon, 30 Oct 2017 11:08:02 +0100 (CET) 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=Prio983vpYr6GOyqqVYUgpCf8o7TiQ1AuDYeoK8sTcs=; b=ENy79B7xAL5XoTcbpA0k31bArZEeIC5tvy3pYtdyHMCxdsJHNQKhHi7sQxV0axDmfIr1ssgbPtOsuCih/zqXSHwiaHIISzAdusVUaGzEnOkLga+7gp/PC4XFizhpb3/lZD1+QmvLMG4yTLpI+BX0AGKV/8yvRf/UFziKuLXHvY0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; Received: from mellanox.com (37.142.13.130) by VI1PR0502MB3662.eurprd05.prod.outlook.com (2603:10a6:803:f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.6; Mon, 30 Oct 2017 10:08:00 +0000 From: Matan Azrad To: Adrien Mazarguil Cc: dev@dpdk.org, Ophir Munk Date: Mon, 30 Oct 2017 10:07:26 +0000 Message-Id: <1509358049-18854-5-git-send-email-matan@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1509358049-18854-1-git-send-email-matan@mellanox.com> References: <1508768520-4810-1-git-send-email-ophirmu@mellanox.com> <1509358049-18854-1-git-send-email-matan@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: VI1PR08CA0217.eurprd08.prod.outlook.com (2603:10a6:802:15::26) To VI1PR0502MB3662.eurprd05.prod.outlook.com (2603:10a6:803:f::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 439e4805-a830-4b84-3a1a-08d51f7e1a94 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(4534020)(4602075)(2017052603199); SRVR:VI1PR0502MB3662; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0502MB3662; 3:TA+kxEkWnmhKNq6+3blxqcn1mXMoaOPMyGknciDg9QQZtwV8kdmrbElzG8okc+LvljMCWO4KmXLJpgR7sJt3aBWAKvaUHgt4dWv/9SYY1bsFmEzteN6nwTThAvQUYklTv7pWP0YIUssK115CvL5l18FM9E759wpcPJ2S315/PzPIS+sH9914290vtskDviaspiEQ9EIpyEtn4vhiitmVNVKr//7131FW9n14dwj0lq0AVPyLcymjVmGwWAypDbtj; 25:ijE6igCFH655I5IDEOCedQZpKHaxpclCN1RRrEX85plyoQWjz2m7CzhJhP+gd7F/zy7TFfbaFeQUS8mc9l7fPwBYvBSGbkL8A7qXmtUsBE4zs94ib+CW3yLJ3eYqu48qoX/mi5BGlpIqY/UCrEqYo9DbVvkQGIv5QUJe+TE5HH7tJGjTWweHERdmBxy+Xem6uOoKK3yYwB2htdJvZxAFVeeo5v8bcxLtpwBzy9xQUHW0ZC8IaedX2IWxPhjzw4LrG8Si0vXSTZCaKR+U3I26VNwRDHtHHuWyDEczKxcBXHLaCat4YfnYlKgNDcwh58hMjmaUP09ZXxT8UAHzpv0fLg==; 31:3VJQW+dx503YnT+tF5przaViV2nH1c+gxWQpg0alReucnsCf+EuchunXTrCFbu932/iAvN9zhI1exPi8idf5anq01iIKd2CsT1FrFUXGktCGtbOtowKC8YoZ2FP8aAKf+9D/j+hVeJaVkXdjQHdqZv9JUR4qoEIVk1q65ltnnCR7sPvR7AWHguLb+ONbRNmPNEHi/gt45XAVzGwNA3mnBip2NyoEnA9cX2WRV9XcAZY= X-MS-TrafficTypeDiagnostic: VI1PR0502MB3662: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; VI1PR0502MB3662; 20:d6hJDUUeYjwLV3t1jzhbgWIC16Rjwnp8cpKJdA4v+fVE82svrRTBcADJX+k+RZOj/YytVHsmxN9E2G6utm0hpTpAhncYmgpm2qJVCV34DtTEalKvJuCOPz4Ak+ieksVDA8J/KNnSFv02GGrH3ivvmieBYoqlumq0ZwW+VzdxCqkD2oSwlJjK1WwuPraNG/LcvQB4V0i4Z+RG1h5fVraN5zKUFfAayKwYD5JDlk5xLI35M9Ol+gDGKZntVQX6yqhniXcIjwnBLgVZdb0aytE/ntM9wvM8Bf8UyACu6krTccL90wRi2eliuqxKW+tdU7JBwYGJOhbyi8FHJcQZ7z7OlBhD7+j0nloZJkdI/Kgyr8YDH94LuNCzR/oRCPGKUOzrIQWKOOeJuyem9p6H6JKaOp0hShjlRfmAnQbZdF3LHaT80l4waUcwGnDj0W2SUerRUxr6/G3qfDtFAKw30OqjiYeIcisvnxlTQREqndvFDm0u8s0A+LnyqLMr4p+b6hyL; 4:asjmYg05EsX3M2zEDAs8cFg3qhoQemSvx3EiL0miSOXSHgi2k481LL3jpICg/kPhLoXP+BQtf9n+VSOyxeNDk13vaa5KftZ1/BtPXEIe5HzzloRApoPsG2RjkjQX+5FGNGnyhJw8RDSaYyCfkhUZ/CnJWEhOdGob+2lqzptKgG3b3fnV138SaPMgTZFII4koGtv5MUEXySyj9zoq89YTijapLorvMDYe6jo089f4KDTeUcxSSIMzwZL+YXP/+00Gayn7+aVGesenP2UfXnF6YQ== X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(3231020)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:VI1PR0502MB3662; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:VI1PR0502MB3662; X-Forefront-PRVS: 0476D4AB88 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(376002)(346002)(199003)(189002)(16526018)(97736004)(66066001)(47776003)(21086003)(5660300001)(4326008)(50226002)(316002)(53936002)(55016002)(4720700003)(6666003)(16586007)(6916009)(48376002)(36756003)(50466002)(2906002)(7736002)(305945005)(2950100002)(106356001)(101416001)(6116002)(3846002)(69596002)(68736007)(33026002)(81156014)(81166006)(8676002)(105586002)(189998001)(33646002)(107886003)(478600001)(8936002)(5003940100001)(25786009)(86362001)(76176999)(50986999); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0502MB3662; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0502MB3662; 23:5W1lP43qwkJRKx4Vl9dmTUuEMLByJd73l/J7w1G?= =?us-ascii?Q?Vrg8kqSvhP+9zGfZVnWIK58CWxlxbBIgCsZvjKobq/Qp2O+Ijo0sTdGiVk9o?= =?us-ascii?Q?CSp5MWL/Z/J/w1xBvnpdhPk31LXQL0rTVf84S7O7QbhK3VPG1Cljg4Fh8Csv?= =?us-ascii?Q?v/72bvAC/HVoSVEk174x19SpAfsJi1tD1mvuXIbpnJNCO2ifBU13Ww6qQmnH?= =?us-ascii?Q?h5aM1hTTTeg0jgIIB5B9Hr7k+ZDSZLWwRe789W9t/eChaiHGF6TBDW6TdXcw?= =?us-ascii?Q?Eq36dwSYRXJbrsMqbRXIHwXPtHQww6QCf0+jxhsozAK8lwyGd3f114xnbb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ostics: 1; VI1PR0502MB3662; 6:eMm0e4i/iPAlzpbLn53sYZBo/zvVu/OUSTMmUVlnYNMmYto4MHLUv0udNlxacrSeCzpuebCy1QuYsvVDIiaqLOb2AG86lk0HwyVICArHshMm/dEU9/RTwBba91xCMAIfB4cgcq2w8NHfugZ3UUWEP0pdY0YjTGwkB2qIOtZUCsw/ayqAo4U2BFAzKHc6ECDZ/MCBt6bnoRScO08AbgeUpGB1VELBy8aUD57l2lKz3jzAw6kbIWMC9Ob4EM3t7UG469C9eAhm6tdV4qQrZ4hBdFpHJ9eB8gADF6k3mvHp8MQfsEN3zItD86KJmvctEre4yTq5Cgf6HRjx+Yx6vZBkrQHO5RqLuOFOR6/v1Tma03k=; 5:Z6hnpy/8+1CtSfhQ9lpYCPIKBtZzG8MwXpZl3nYyM8WLsM33nSZTWJzj1h2sBcUZAuRNuA8/8tkiireVX+nSgztPWvqDQYfUq4NgQL+CH6hn8diM9xr7+equfQQl3UhacLPcdgXjYgx2LTKq0AphcMelS7HhpqCZXOONJUmLJuU=; 24:yYVHKvpCB/sOV1mXuRPD3k+BS+rirCRDYrIrxODGdeIy1dT3GSzgk/7KsUl+7BQpeWLvMLwwjsstWK6/HERRoGi781EQoKRhBiQqKOsKq+A=; 7:GhMJ3mhK0aWP9pZIUgbPmTeokophRyYoBZ86yZ3cZ8DU9znC2MlClOBdxogH5zJvkDhTfIf4H62trj9eS3lr5cb1VC8nJqfrBeDUsDNLVB34Pkj3bGyF1JK7H1lw6HJ1xWCueqpl2FRDTf60R3vg6rbaur2tRUzIKhllbcsubPCu2Lqp06QJXh3Nziaz9kaT6+8rDIGt7mOVYe5fQp7tkGBSdyA7vk6UGmbGfTR/ViyirSQQin5dRZUCgLv5UP/n SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2017 10:08:00.9274 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 439e4805-a830-4b84-3a1a-08d51f7e1a94 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0502MB3662 Subject: [dpdk-dev] [PATCH v3 4/7] net/mlx4: remove completion counter in Tx burst 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, 30 Oct 2017 10:08:03 -0000 Remove usage of variable which count the packets for completion and doesn't add more information than packets counter. Signed-off-by: Matan Azrad --- drivers/net/mlx4/mlx4_rxtx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/mlx4/mlx4_rxtx.c b/drivers/net/mlx4/mlx4_rxtx.c index a8d8e81..8ce70d6 100644 --- a/drivers/net/mlx4/mlx4_rxtx.c +++ b/drivers/net/mlx4/mlx4_rxtx.c @@ -257,7 +257,6 @@ struct pv { struct txq *txq = (struct txq *)dpdk_txq; unsigned int elts_head = txq->elts_head; const unsigned int elts_n = txq->elts_n; - unsigned int elts_comp = 0; unsigned int bytes_sent = 0; unsigned int i; unsigned int max; @@ -473,7 +472,6 @@ struct pv { sq->head += nr_txbbs; elt->buf = buf; bytes_sent += buf->pkt_len; - ++elts_comp; elts_head = elts_head_next; } /* Take a shortcut if nothing must be sent. */ @@ -487,7 +485,7 @@ struct pv { /* Ring QP doorbell. */ rte_write32(txq->msq.doorbell_qpn, txq->msq.db); txq->elts_head = elts_head; - txq->elts_comp += elts_comp; + txq->elts_comp += i; return i; } -- 1.8.3.1