Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp645120ybh; Tue, 10 Mar 2020 05:46:37 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuBZT9L23wX7GLT1TEdcinOpYd7evjrDMuGUVF4AESJr2WnE3fk60ThFBddnyI3DY3l4quN X-Received: by 2002:a05:6830:20c9:: with SMTP id z9mr5627818otq.44.1583844397766; Tue, 10 Mar 2020 05:46:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583844397; cv=none; d=google.com; s=arc-20160816; b=GStFJy0xA071T4QpQi5HmCqBr6zNSsMOhELbgaxX9uEXpMMeIdsbbO2uWuYWFFy40L PjRI3SeGUyCIeW9/FwSI15sCykYg+YLWXKx84AshZdxveecda1t+EQGZUtNl+kYP9+it ZpAobh86onXmgwvhvfWloviiHARgb52sqb6lov+34y8xG6Fxyq09aR+GUhJzliPbLu5i Mfq1UVSDdTbS06lCo1kdXNbwirRXnyzgf3KW0G/B6lbf2F4gmJjXxG+ESsqHgJ7KvY0e mmQ85LFctask055HIpB8HEc9kH5utGSufm+4oiSx1lShgLwQbDntRZlYTQANHB19HP69 OQDQ== 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=9afX33mNY5bAGyYKlUuBBiIZGysyDqmm6jsyeO70Qhg=; b=BZxiuND7CrrvQqkxwSu5Y/Rx/A7uZCsk51s4LhXmFw+J6kL7C3yXBqSOfsW8faPym8 qMk2DaB/ZewdMUKaHPEHcVvPLTV0LbDUJ1IqRAGk7MIk4AA2OhdwwJmYi7ROxsnDaUbr Jcgro5p358cgEi1VQWcNAeY9serpXxmOUcDW8P9XOigWS1xRXfpv2rzTKU6TvIGVEY60 +8SVDo7JIJRJt4rqGD/c2ybANkjDkgYwzwOGKQbGEv1PAbdJEeZV1aGLeJcxf6lRi6pN mY9K7o3GO2W0Yqb/EoCCGPdMvBqxAj7DaOy70il+Q7xwexpd/xS1dqZZHy3gGU2W8g2S KCkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=plL+pplX; 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 p1si492143otk.236.2020.03.10.05.46.25; Tue, 10 Mar 2020 05:46:37 -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; dkim=pass header.i=@kernel.org header.s=default header.b=plL+pplX; 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 S1726990AbgCJMpm (ORCPT + 99 others); Tue, 10 Mar 2020 08:45:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:48430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727691AbgCJMpl (ORCPT ); Tue, 10 Mar 2020 08:45:41 -0400 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 1DAB4246A3; Tue, 10 Mar 2020 12:45:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583844340; bh=/SdVvABjZMbhpCatfBfYl/CVRlV9dxUaLRllt1nFvB8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=plL+pplXLHoyQRWAetymaErJPQKvbanKOKC8UASd0+bYWUkLUbENz+L0OYLDScmfv tPIFQrnpvbR160eKcVIrLhGGuqStPqQUdRndZQuLCaJg87JS75krXEj8m48+E5djb1 ofrmceZE8QelSIRKUY97kazbPkUsh7Y6uixD9FMk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , "David S. Miller" Subject: [PATCH 4.9 46/88] drivers: net: xgene: Fix the order of the arguments of alloc_etherdev_mqs() Date: Tue, 10 Mar 2020 13:38:54 +0100 Message-Id: <20200310123617.440477082@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200310123606.543939933@linuxfoundation.org> References: <20200310123606.543939933@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: Christophe JAILLET commit 5a44c71ccda60a50073c5d7fe3f694cdfa3ab0c2 upstream. 'alloc_etherdev_mqs()' expects first 'tx', then 'rx'. The semantic here looks reversed. Reorder the arguments passed to 'alloc_etherdev_mqs()' in order to keep the correct semantic. In fact, this is a no-op because both XGENE_NUM_[RT]X_RING are 8. Fixes: 107dec2749fe ("drivers: net: xgene: Add support for multiple queues") Signed-off-by: Christophe JAILLET Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c +++ b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c @@ -1711,7 +1711,7 @@ static int xgene_enet_probe(struct platf int ret; ndev = alloc_etherdev_mqs(sizeof(struct xgene_enet_pdata), - XGENE_NUM_RX_RING, XGENE_NUM_TX_RING); + XGENE_NUM_TX_RING, XGENE_NUM_RX_RING); if (!ndev) return -ENOMEM;