From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0080.outbound.protection.outlook.com [104.47.0.80]) by dpdk.org (Postfix) with ESMTP id 0643C90FF for ; Fri, 28 Jul 2017 02:26:58 +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=gSCVvq4Uy85wpNC+H+37Spo3JVUD/R1naAbogmHAJeo=; b=cRuIceQJD0EpYWQcBolJOK5caLJlU8IsspZgmSuIEOZiUkxCKqLDHMCK3Rr90dvTX1CTWDSA6/k6G2gROrP/COEYgQPa9YbkzDHnsAua3/gzRDpP0NDZOKPBwQFtOBaru7V5/8WiArqRSiAZ0bLlGJx2gCIBzyZh1UXwp2TPblo= Received: from VI1PR0501MB2045.eurprd05.prod.outlook.com (10.167.195.147) by VI1PR0501MB2046.eurprd05.prod.outlook.com (10.167.195.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1282.10; Fri, 28 Jul 2017 00:26:55 +0000 Received: from VI1PR0501MB2045.eurprd05.prod.outlook.com ([fe80::7026:723:6974:182d]) by VI1PR0501MB2045.eurprd05.prod.outlook.com ([fe80::7026:723:6974:182d%14]) with mapi id 15.01.1282.021; Fri, 28 Jul 2017 00:26:55 +0000 From: Yongseok Koh To: Sagi Grimberg CC: Adrien Mazarguil , =?iso-8859-1?Q?N=E9lio_Laranjeiro?= , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] net/mlx5: poll completion queue once per a call Thread-Index: AQHTAW+uhe6Xsrl0Z0ad7UOD5+v/S6Jc6SAAgAEFhgCAA0B3AIACjDQAgAPUVoCAAN3lgA== Date: Fri, 28 Jul 2017 00:26:54 +0000 Message-ID: <55700E85-9A8D-419A-AE1A-63EBB26B0F18@mellanox.com> References: <20170720154835.13571-1-yskoh@mellanox.com> <20170721151006.GA38779@yongseok-MBP.local> <918eb17f-269c-7102-41ab-69ceb95fdacf@grimberg.me> <20170725074356.GA4034@minint-98vp2qg> In-Reply-To: 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=yskoh@mellanox.com; x-originating-ip: [209.116.155.178] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR0501MB2046; 7:zNTUOBMZJHWvaw+i25D7iCbwMjLVfBtFSRVkBDQp3+7zK/uaIBHG3DQtmKB1KGfalYa6Nm8W8FXY6jRJWTsIyxjfJhwFdzDk8gWgHQ7CusrqoAW+OhAnEwLiRL8lY+wbea+NAkaElc06dmRb7PI4qMrkvQVz3MB0iuGZvl4EnOSC5mRM46cX3C4yFrAJDWRZjLhHBqE2g4WIbp/WQk23w4fHc+Xfb3QUpvLE+hGXKjXWCCzcxzOoxKsuOTOlYb6YfTN8T/wwEVbpb8gIPnbha4FUt9tUPXe4WIp6sPvZC39YaZlaxYncp3ZBcIxQ5oP3RYdICSIsE7I5NdNUl/Oe9bdibhqw2a7cmOynlkYn2xjQW5FFIYzwkPdjRL8vTsdAKuVzX9/Hx7u9f6vLhMiKsUQKiaKcKoR4HgR5KcMzTtl+SSdZOCe4bqCZnWYiiGOilIL10KKVjHjUm/TmPLASDM+q1DLdwzXSs3pu+6v4qyVnZXfzD/V8zG6pmc17CeeDykACQGgAFSYyfxJkDNxghZiVwzxxfJu6xtTPIVJwrsyJfl26HAGlSy5pjsfNNGeDpGF9TCynxsBTbckuYtnAntKE+tD9010XcoX8bOPTUUOJbIWqOsv8AGRfbgBl6F51beINJZ0bNexv61aUAQYDZCnlDOi4YHX5FEyBOPqmYk9IrWMLyIJ2gGPYKviUrIr/wsoUohu3ELz/UnohwmnpkOiXZcYLuebc0fyWszeuVO7zbFW9FLhXRMusPd/BxIwqrZ/TjWLN5+w5fQCCG4SlR8gEiRDt2gMlzIzcV0WSexc= x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-ms-office365-filtering-correlation-id: 708f2fda-5038-4763-0e11-08d4d54f59b6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(48565401081)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:VI1PR0501MB2046; x-ms-traffictypediagnostic: VI1PR0501MB2046: x-exchange-antispam-report-test: UriScan:(235219596079481); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(6055026)(2002001)(6041248)(20161123555025)(20161123560025)(20161123564025)(20161123558100)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:VI1PR0501MB2046; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:VI1PR0501MB2046; x-forefront-prvs: 03827AF76E x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39840400002)(39860400002)(39450400003)(39400400002)(39850400002)(39410400002)(189002)(377454003)(199003)(24454002)(93886004)(66066001)(50986999)(76176999)(54356999)(97736004)(305945005)(101416001)(7736002)(189998001)(2900100001)(8936002)(2906002)(3660700001)(82746002)(3280700002)(33656002)(5660300001)(6436002)(99286003)(54906002)(6512007)(6246003)(81166006)(105586002)(106356001)(110136004)(38730400002)(81156014)(8676002)(68736007)(53936002)(25786009)(6506006)(6486002)(478600001)(5250100002)(229853002)(2950100002)(86362001)(102836003)(6116002)(6916009)(3846002)(83716003)(14454004)(4326008)(53546010)(36756003)(50929005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB2046; H:VI1PR0501MB2045.eurprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-ID: <17A613954443014FB6C9BB4C20D5DEE1@eurprd05.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jul 2017 00:26:54.9517 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2046 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: poll completion queue once per a call 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, 28 Jul 2017 00:26:59 -0000 > On Jul 27, 2017, at 4:12 AM, Sagi Grimberg wrote: >=20 >=20 >>> Yes I realize that, but can't the device still complete in a burst (of >>> unsuppressed completions)? I mean its not guaranteed that for every >>> txq_complete a signaled completion is pending right? What happens if >>> the device has inconsistent completion pacing? Can't the sw grow a >>> batch of completions if txq_complete will process a single completion >>> unconditionally? >> Speculation. First of all, device doesn't delay completion notifications= for no >> reason. ASIC is not a SW running on top of a OS. >=20 > I'm sorry but this statement is not correct. It might be correct in a > lab environment, but in practice, there are lots of things that can > affect the device timing. Disagree. [...] > Reviewed-by: Sagi Grimberg Thanks for ack! Yongseok=