Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp462513ybl; Tue, 28 Jan 2020 06:21:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxggnpCqnr529p+ouMDi3Da3af1nJcwSPD6bpwkcvW/S3LrLTk85EcEH5tMTxaIfkmCULok X-Received: by 2002:aca:c452:: with SMTP id u79mr2992474oif.89.1580221271322; Tue, 28 Jan 2020 06:21:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580221271; cv=none; d=google.com; s=arc-20160816; b=jxcWi/Fa3mEZG0QbVW9Wpbc5eoj938GhcL4Nvs4Rs+AGpZqW2RHWgFp6552Xb4+mdY kkv5J4kIh6XVaASmzATFlv+B3l4TdtUiuZf503/f/Uq6Wye0zSZPhOWPAkvrPMNEwgxc X2nEsNeU57z84haeglxixQ5+qgD73kwOdBFqFUH2vyEjP1YiAqu+phec2FNq/yR/tcFM PrBPnnG4yeD1RfLslIy60eoKKFb7x9fGm9orC+BmNgFxbV2oviz/T0YhbpAp8Ls5gXYc 97Bh8NUA9vB/1If2emTF2i/LWxbRLIx8iVIf/z6lpJP6Lop/NqZMKs5G2p5/QtB5J/lc UbEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DZhmOjZG87PqcD63ftJq4Z+kBBLYi3WyqhXD3OQ8Qog=; b=eEzECJ/5EfS7pWMqw2AcedRaOeCBcWsEf9oMxYsw9o5dlvDbBMkM3vTyo70dHl8GZp sygGDdSsWgLATa5fyP/N7v+HKIUZDgPHOVwUr6mf5BoMj/mVyHX8H0oC6AwXZni4Zy1O dKm1T9KF7JmVwyfgbcY8xwAQ09n4AGcjzg1D52f+YuEjK106rTI6gyh2mFPFYWcZ/O06 ZYUY3mlmrHwopeivQTWsxfO1aiAxNm6J1WU3IszjlCu4imDYhhAC31KGWV1/k70ccMvg 2QzXidOhDY1okWdMkoRBZZwoKlwQql6amhFigSwf3JbwxOZxn9jAjRfjnAD69B5roA35 SbpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jYV9ocKu; 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 v13si1652357otp.273.2020.01.28.06.20.59; Tue, 28 Jan 2020 06:21:11 -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; dkim=pass header.i=@kernel.org header.s=default header.b=jYV9ocKu; 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 S1730148AbgA1OUH (ORCPT + 99 others); Tue, 28 Jan 2020 09:20:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:44640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730134AbgA1OUB (ORCPT ); Tue, 28 Jan 2020 09:20:01 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B677F2071E; Tue, 28 Jan 2020 14:20:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221201; bh=yqxU22kLh+ozfmo3704ST1oSKN1shi+dpDoq3akxJhM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jYV9ocKuGRZ07Ie5Bmo9yjEg0lIWOGjtKKzw7a7gdD2hIHgn8eoMcAwBkukzqLMjQ tPNcpfvOVPngbJtSIJi1cvE+VDwGAYEPJ0pF1DqwTyhvJwR52y9tacYxo8HFxZSf7j 9OoodbooibGfML/bRWs7rvVoa3jeufYn2/TZMgUg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Saeed Bshara , Sameeh Jubran , "David S. Miller" , Sasha Levin Subject: [PATCH 4.9 129/271] net: ena: fix swapped parameters when calling ena_com_indirect_table_fill_entry Date: Tue, 28 Jan 2020 15:04:38 +0100 Message-Id: <20200128135902.204635054@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sameeh Jubran [ Upstream commit 3c6eeff295f01bdf1c6c3addcb0a04c0c6c029e9 ] second parameter should be the index of the table rather than the value. Fixes: 1738cd3ed342 ("net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)") Signed-off-by: Saeed Bshara Signed-off-by: Sameeh Jubran Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/amazon/ena/ena_ethtool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/amazon/ena/ena_ethtool.c b/drivers/net/ethernet/amazon/ena/ena_ethtool.c index 67b2338f8fb34..06fd061a20e9a 100644 --- a/drivers/net/ethernet/amazon/ena/ena_ethtool.c +++ b/drivers/net/ethernet/amazon/ena/ena_ethtool.c @@ -697,8 +697,8 @@ static int ena_set_rxfh(struct net_device *netdev, const u32 *indir, if (indir) { for (i = 0; i < ENA_RX_RSS_TABLE_SIZE; i++) { rc = ena_com_indirect_table_fill_entry(ena_dev, - ENA_IO_RXQ_IDX(indir[i]), - i); + i, + ENA_IO_RXQ_IDX(indir[i])); if (unlikely(rc)) { netif_err(adapter, drv, netdev, "Cannot fill indirect table (index is too large)\n"); -- 2.20.1