Received: by 10.192.165.156 with SMTP id m28csp74717imm; Tue, 10 Apr 2018 16:45:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/T/PiZS/axKJwFouCeTTnLNxD/XE/SipcI0EJVBfBjd4vIppxduLGZa/1o7vBt0n1DVk6j X-Received: by 10.101.72.9 with SMTP id h9mr1720021pgs.88.1523403915065; Tue, 10 Apr 2018 16:45:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523403915; cv=none; d=google.com; s=arc-20160816; b=hb+A2fFN/HF8Rm+A018G6hy1ZATt+zbWmv78hm3rkuVgp0QWNJMkd3NBN7iU0hzNlM rnW9Xf1f5p53y4YAuqsOwxVbKhKUBQ8Vy4xz8fHLBPiefzHTlBqAw//iXvPS0lUS53ge f541lHAlQmX3MvMiNSwVOWhf71wf0MupcJMDhTuJ1LGPZNw8io8uut8HCXdtIYWqKOLx qlRp1Oy1Ms+oP+yJCG9wQh9JOv0+8XTBcUSM7jq6FEPP7+FxiJRrH3v924pkIdb1iCso R0Q3o5qq6755PBKogiuZaRztVEW0N8w6lQzXsGV8f9l7E545+bJZJpMPBUvhEJJhw08Z 2Riw== 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=hwDpd3wUw41AoBP+B6Zdj7AP24XCG5uyRExZruCdoJQ=; b=rNj7yf2zd59cJS6ZGt5UW0BvNaG3ADZ2KU6KFCoixWxle0pa1+IrpsGENoEe/Cntam YYSP+vGkS2oJGidx4k3mnlCS3qjQdR+Bgfy0Zncu0afItmiJfmrTbKOsWWn/Hg68xlXz i7dpaXWv/7kwMoSDa+MImLHne2zqwv4cCnu25Hh0nRsBCHRG8SGiWLLHp/Au9ISGKeXU 2PWcD+d2aejpeGomDWYXcNHoEWPNGMO66LipGQeo39BJBg8NWhPDF8HSZVh1CJYxaU2+ inrDu0b3UHBWt7cbkJgpL01e/BwXVGRRj4APcM+ZA1gbhHbaOq09rq4w0PEPPs2xcIF1 uiZw== 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 a4si2782719pfi.226.2018.04.10.16.44.38; Tue, 10 Apr 2018 16:45:15 -0700 (PDT) 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 S1753196AbeDJW0j (ORCPT + 99 others); Tue, 10 Apr 2018 18:26:39 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37246 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753127AbeDJW0d (ORCPT ); Tue, 10 Apr 2018 18:26:33 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E628BDCB; Tue, 10 Apr 2018 22:26:32 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maor Gottlieb , Leon Romanovsky , Jason Gunthorpe , Sasha Levin Subject: [PATCH 4.15 020/168] IB/mlx5: Report inner RSS capability Date: Wed, 11 Apr 2018 00:22:42 +0200 Message-Id: <20180410212801.064957313@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180410212800.144079021@linuxfoundation.org> References: <20180410212800.144079021@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.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Maor Gottlieb [ Upstream commit 4e2b53a5cb5a8243284dd7ec4980d2dc556e79f0 ] Add missing inner RSS support capability as part of the RSS supported fields. In addition change MLX5_RX_HASH_INNER to 1UL << 31 in order to define it as unsigned. Fixes: 309fa3470fca ("IB/mlx5: Add support for RSS on the inner packet") Signed-off-by: Maor Gottlieb Signed-off-by: Leon Romanovsky Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/infiniband/hw/mlx5/main.c | 3 ++- include/uapi/rdma/mlx5-abi.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -682,7 +682,8 @@ static int mlx5_ib_query_device(struct i MLX5_RX_HASH_SRC_PORT_TCP | MLX5_RX_HASH_DST_PORT_TCP | MLX5_RX_HASH_SRC_PORT_UDP | - MLX5_RX_HASH_DST_PORT_UDP; + MLX5_RX_HASH_DST_PORT_UDP | + MLX5_RX_HASH_INNER; resp.response_length += sizeof(resp.rss_caps); } } else { --- a/include/uapi/rdma/mlx5-abi.h +++ b/include/uapi/rdma/mlx5-abi.h @@ -307,7 +307,7 @@ enum mlx5_rx_hash_fields { MLX5_RX_HASH_SRC_PORT_UDP = 1 << 6, MLX5_RX_HASH_DST_PORT_UDP = 1 << 7, /* Save bits for future fields */ - MLX5_RX_HASH_INNER = 1 << 31 + MLX5_RX_HASH_INNER = (1UL << 31), }; struct mlx5_ib_create_qp_rss {