From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 5D46A8DA5 for ; Sun, 20 May 2018 15:09:28 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0D14621D4F; Sun, 20 May 2018 09:09:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 20 May 2018 09:09:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=2qHE8S3BpA2uq8iEg bA7XtEMN33Mv5fAu1DlK99rzNU=; b=GvX7h4dQaOH6fdReyYM3Ik1c9M3Iezd7U GCyNBQ/vNx29WR+MqEnRC0TKRrYwB7yFLi0jVVFl83ImRORyAcNtX1yic+aMBd/h FR+6AYL6//BTyBBXGfmGko7/1Y7hB8L640jAx0NnRXfXhNEp+LMCkiYNnomS60Hi odqaBBpm0hcPZ7eX/LxEeKgzogQMsoHOE+uZyceAYPRoOAWKzd9ElPw4GXC4t9zp TbVPtKsAescWFcBJJOFEq3nHgFPIMnB1V33aubdm/t2iosk0B+0fpo3nvYDYNcI8 GLFj9HaXXHzzYcSo4LI7P43dIur1z83pmUMbOx956O985kFeVm6uA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=2qHE8S 3BpA2uq8iEgbA7XtEMN33Mv5fAu1DlK99rzNU=; b=RSj0aLuGqQ1nUTT3wcZ1yA nsy9o/xRSFD/vDdSQg65Ua3wif0Vwc8aw9vKhCZPZ9H08CPrRDbTzjp/DQwCtRlx GoH9/jMhbuWsQRAUeHDMch2IexiMTcezTR8vEWVLG0MUGMUEacTDdUlqDrwo7R+a 5ftbM9vSBjhTCHwFa0tqRjlqyfIQlwg3y+AJ/YLm3trG+pToFDdnO88euoe1fDaM 1g0VcQPkw9RrkaicrNJ6Iiq4AiMJJ8h12ps2/bbF7YvbQlbRCCSlVmzDec7elScF 4JhHdb8nUFHYShD1fYmXGSgh86h16SQjCdEt84Ur59YeNghxpZgOzJJZOnrxVsJg == X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from yuanhanliu-NB0.tencent.com (unknown [223.74.148.80]) by mail.messagingengine.com (Postfix) with ESMTPA id 474541025C; Sun, 20 May 2018 09:09:25 -0400 (EDT) From: Yuanhan Liu To: Andy Green Cc: Rasesh Mody , dpdk stable Date: Sun, 20 May 2018 21:02:43 +0800 Message-Id: <20180520130246.16287-27-yliu@fridaylinux.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180520130246.16287-1-yliu@fridaylinux.org> References: <20180520130246.16287-1-yliu@fridaylinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/bnx2x: fix KR2 device check' has been queued to LTS release 17.11.3 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 May 2018 13:09:28 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/27/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 7ecdd695d7139fd6d43155e7fcd62835354dabab Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 14 May 2018 13:04:33 +0800 Subject: [PATCH] net/bnx2x: fix KR2 device check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ upstream commit d9b8838ab2e90713827ee8843d836b0fccbaf2f7 ] In function ‘elink_check_kr2_wa’: drivers/net/bnx2x/elink.c:12922:28: error: bitwise comparison always evaluates to false [-Werror=tautological-compare] ((next_page & 0xe0) == 0x2)))); This was fixed elsewhere in 2014 Fixes: b5bf7719221d ("bnx2x: driver support routines") Signed-off-by: Andy Green Acked-by: Rasesh Mody --- drivers/net/bnx2x/elink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnx2x/elink.c b/drivers/net/bnx2x/elink.c index cceae6f9b..74e1bead3 100644 --- a/drivers/net/bnx2x/elink.c +++ b/drivers/net/bnx2x/elink.c @@ -12921,7 +12921,7 @@ static void elink_check_kr2_wa(struct elink_params *params, */ not_kr2_device = (((base_page & 0x8000) == 0) || (((base_page & 0x8000) && - ((next_page & 0xe0) == 0x2)))); + ((next_page & 0xe0) == 0x20)))); /* In case KR2 is already disabled, check if we need to re-enable it */ if (!(vars->link_attr_sync & LINK_ATTR_SYNC_KR2_ENABLE)) { -- 2.11.0