From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1A539A00E6 for ; Fri, 12 Jul 2019 19:35:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E95F51B9D5; Fri, 12 Jul 2019 19:35:54 +0200 (CEST) Received: from rcdn-iport-3.cisco.com (rcdn-iport-3.cisco.com [173.37.86.74]) by dpdk.org (Postfix) with ESMTP id E0F0F1B9CD for ; Fri, 12 Jul 2019 19:35:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1017; q=dns/txt; s=iport; t=1562952953; x=1564162553; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wB62eHxOmc4anZYjmoN2MHqu8Mkm2PwS6fYOkik+7vU=; b=bMgx9GqkqYWd7+FctEsCPdPj3mR0pwvGSZqzLzU2HZ1eJ/P5EOJRyxn7 wXetLDMruN1excF4+So9Ct9TzxiqaDwHE/Q6NhsVkXUmiQ64vYJDE457k 5IOmHdg3EeZ1Nu0opn1lnXaShhuFAMuZx3TDYw9B+nJA+6fBC+jCWKdGc 4=; X-IronPort-AV: E=Sophos;i="5.63,483,1557187200"; d="scan'208";a="582737790" Received: from alln-core-3.cisco.com ([173.36.13.136]) by rcdn-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 12 Jul 2019 17:35:52 +0000 Received: from cpp-rtpbld-31.cisco.com (cpp-rtpbld-31.cisco.com [172.18.5.114]) by alln-core-3.cisco.com (8.15.2/8.15.2) with ESMTP id x6CHZqZA018590; Fri, 12 Jul 2019 17:35:52 GMT Received: by cpp-rtpbld-31.cisco.com (Postfix, from userid 140087) id 74145AEA; Fri, 12 Jul 2019 13:35:52 -0400 (EDT) From: David Harton To: mw@semihalf.com, gtzalik@amazon.com, evgenys@amazon.com, netanel@amazon.com, akiyano@amazon.com, igorch@amazon.com, matua@amazon.com, sameehj@amazon.com, dev@dpdk.org Cc: David Harton Date: Fri, 12 Jul 2019 13:35:43 -0400 Message-Id: <20190712173543.28306-1-dharton@cisco.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190529210139.26766-1-dharton@cisco.com> References: <20190529210139.26766-1-dharton@cisco.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Outbound-SMTP-Client: 172.18.5.114, cpp-rtpbld-31.cisco.com X-Outbound-Node: alln-core-3.cisco.com Subject: [dpdk-dev] [PATCH v2] net/ena: Fix admin cq polling for 32-bit apps 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" Recent modifications to admin command queue polling logic did not support 32-bit applications. Updated the driver to work for 32 or 64 bit applications Fixes: 3adcba9a89 ("net/ena: update HAL to the newer version") Signed-off-by: David Harton --- v2: Leave existing timeout method and only arch size issue. v1: Fix arch size issue and count iterations to limit polling. drivers/net/ena/base/ena_com.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ena/base/ena_com.c b/drivers/net/ena/base/ena_com.c index b688067f7..e9b9be28d 100644 --- a/drivers/net/ena/base/ena_com.c +++ b/drivers/net/ena/base/ena_com.c @@ -547,7 +547,7 @@ static int ena_com_wait_and_process_admin_cq_polling(struct ena_comp_ctx *comp_c struct ena_com_admin_queue *admin_queue) { unsigned long flags = 0; - unsigned long timeout; + uint64_t timeout; int ret; timeout = ENA_GET_SYSTEM_TIMEOUT(admin_queue->completion_timeout); -- 2.19.1