Received: by 10.223.185.116 with SMTP id b49csp1100896wrg; Fri, 23 Feb 2018 11:58:27 -0800 (PST) X-Google-Smtp-Source: AH8x225Bay2FAXG0a6Slczn0oKIWRMZsXz9IZclM1yLynsxR3GjwsdBySyHnjE8T1o03WHMKZ74X X-Received: by 2002:a17:902:7d17:: with SMTP id z23-v6mr2671480pll.427.1519415907674; Fri, 23 Feb 2018 11:58:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519415907; cv=none; d=google.com; s=arc-20160816; b=ycb++e2vCOEjmOmLOReR/1ZrPJKFXAS8B9SRTYr19IBp0UG3WStyD6fbigPXV4AmiO sOaKZOFl1UQbeUQl6S1clL7F0uC4NPe1qK/hhOv/RhmRjSaNyiEQu9wpZeaYeAQDzp6r sT92yErBwSyocgRAYtA1FY8jh4VwpMGZB2l8PRBXZLXdKvOtong9i98TBGFAo9X8yjLS Ey3MoOs9D1TCf8amyXo8YhlU9Xav46OvRHFlxaO/M07KoviF65212lC7P9lXv+5RDH5G lim3Tcb8u78KHQWwosH3++BTsv3pii1yeyVglHC7dKzEPZg5f6uUe6oPkuUdnNgB2Tqg nMrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=aMW1Yu4FWiLDecw/jk6lScSPCO8dERFEDn8GVida3M4=; b=i+HgMCTxuhJz0AqX1eCGTg7ZOae1aZCJQHCUItdJwROf95vYkNa5JtPwA82aM+ldwI eyIm3M2Gt3mxiVLzzKGsP3Tl6/T12SdX7f4WzxIUtcMc1395cWW0RRId3NCA8G8rmqBL 5tXdUfEGT/R34OgYY3FF9AtpFsNmQE9Ai+7MsopjngFgdV0bmpwZgbCPd2FI2HeoZaFU FlLbNt6BN62QNkml20sOvrav+8jYnC/53HwXGaZ8LtERIVZZTxIju+qsiH3oLIDLr/Ik qAzNhS7BFTv9QzLXmWexc33Mos5SIdTE/raMrAqIPOfWPFPmiO/hdTFo8rd2UQYHn6f8 pNtQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 206si1859706pgb.647.2018.02.23.11.58.13; Fri, 23 Feb 2018 11:58:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933686AbeBWT5M (ORCPT + 99 others); Fri, 23 Feb 2018 14:57:12 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:42572 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933591AbeBWSoc (ORCPT ); Fri, 23 Feb 2018 13:44:32 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C193E121A; Fri, 23 Feb 2018 18:44:31 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mustafa Ismail , Shiraz Saleem , Jason Gunthorpe , Sasha Levin Subject: [PATCH 4.9 055/145] i40iw: Correct ARP index mask Date: Fri, 23 Feb 2018 19:26:01 +0100 Message-Id: <20180223170731.995033360@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170724.669759283@linuxfoundation.org> References: <20180223170724.669759283@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mustafa Ismail [ Upstream commit a283cdc4d3670700182c820b59078387f9a01a30 ] The ARP table entry indexes are aliased to 12bits instead of the intended 16bits when uploaded to the QP Context. This will present an issue when the number of connections exceeds 4096 as ARP entries are reused. Fix this by adjusting the mask to account for the full 16bits. Fixes: 4e9042e647ff ("i40iw: add hw and utils files") Signed-off-by: Mustafa Ismail Signed-off-by: Shiraz Saleem Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/infiniband/hw/i40iw/i40iw_d.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/infiniband/hw/i40iw/i40iw_d.h +++ b/drivers/infiniband/hw/i40iw/i40iw_d.h @@ -1102,7 +1102,7 @@ #define I40IWQPC_VLANTAG_MASK (0xffffULL << I40IWQPC_VLANTAG_SHIFT) #define I40IWQPC_ARPIDX_SHIFT 48 -#define I40IWQPC_ARPIDX_MASK (0xfffULL << I40IWQPC_ARPIDX_SHIFT) +#define I40IWQPC_ARPIDX_MASK (0xffffULL << I40IWQPC_ARPIDX_SHIFT) #define I40IWQPC_FLOWLABEL_SHIFT 0 #define I40IWQPC_FLOWLABEL_MASK (0xfffffUL << I40IWQPC_FLOWLABEL_SHIFT)