Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6237078iob; Tue, 10 May 2022 13:37:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwh/nFz02FKFe41ZodL8q/X/CSGUgeRKghKEwlVo0dPV7lN8sxTAHK26u/a2BM3+/YOCV0R X-Received: by 2002:a17:906:6a1d:b0:6f5:2168:5816 with SMTP id qw29-20020a1709066a1d00b006f521685816mr21061270ejc.193.1652215024637; Tue, 10 May 2022 13:37:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652215024; cv=none; d=google.com; s=arc-20160816; b=Wp7BOOhNDML9G55tRVKofPijCcMHWFx4dlBNIHBRYTqnJ72vXjUp8bg2ieyB0fNav5 pQiAI9v6vdr+QB/8ttkrpWEqkQ/22nIpvnRPPGSwIzTZAIT+3GAiYgrNBvPejq5y9yX+ iaqJFTIZrD5LjdcWj8vdi0xMkVCDAkIRPh0g8XP+kfjY3SAuaP5zB3f2BhTypy9OzKyk +082/DdjBlzZjkK/zyGLcHgWqk18XBHz4Ot5Eda7GBcETlCq79Eu4o+rTkvzn5Tvv+7n 4J+RQtxTbTpzW3vPRdTaXZFrG4X9Cm1jInYxtigsOezIZNK+u01wRBSTe6SFUlgW7uCB BI/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=inr7IEQea/jFbtggCZcbvSIzSwIubYfGougSbryAVjY=; b=AP+COf7wAXgV7h9OhgXL8ubWYcfORT84XGHvPdH3bxi8yrsfUedL4JvoKiy8c93cuG 5Fou5ExX4N8PhMyXxx58ZxPBDRwXNK/unFUPZlAHNPR2nLcLEXqNzqVvWTWOp7wryfbq Pxs9JJUpCtOUwXnGkwT6jORpb/29pokeihbG1X+4vlAQaml+8lq0OzD/bZwciwZuRmEv KysM6P4HKkSGtWXMTcLUGV7Bw62qYGp4KvMI0jS6eQQDGB30oTnOA5C2twvAvNcQ4Keh 4gc2wAmt6pW7yCQjcEeW/P4OhNzRMxn4Tdclj0wBjYStoIJcqB8aChOcU4T5lMqVGVkn WnnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kRkfB3Vl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp29-20020a1709073e1d00b006e8abc55088si314828ejc.742.2022.05.10.13.36.40; Tue, 10 May 2022 13:37:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kRkfB3Vl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343811AbiEJOCD (ORCPT + 99 others); Tue, 10 May 2022 10:02:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244842AbiEJNiI (ORCPT ); Tue, 10 May 2022 09:38:08 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C863861624; Tue, 10 May 2022 06:26:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C039DB81D24; Tue, 10 May 2022 13:26:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E70D8C385A6; Tue, 10 May 2022 13:26:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652189184; bh=DHz9FBVHZk9j/KZCg+ljNfPo6VkSfiVP4tnwrZI+KG0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kRkfB3VlDeUJZtf83UBqYZU/2qCgmDuINn2F65h44b8aAB1b6Rdx8FgsRK2CuU5vj 4wdkcDJRpdVg9UEohwzqwFTGcUri24DR8IEtURZttp2ic1nQwmrb353q0LI+sFUKVp /ZhCnQHI1haMq607u2MIxa6ESmUpPKmdkPk22OTc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mark Zhang , Maor Gottlieb , Saeed Mahameed Subject: [PATCH 5.10 40/70] net/mlx5e: Fix the calling of update_buffer_lossy() API Date: Tue, 10 May 2022 15:07:59 +0200 Message-Id: <20220510130734.036026407@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220510130732.861729621@linuxfoundation.org> References: <20220510130732.861729621@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mark Zhang commit c4d963a588a6e7c4ef31160e80697ae8e5a47746 upstream. The arguments of update_buffer_lossy() is in a wrong order. Fix it. Fixes: 88b3d5c90e96 ("net/mlx5e: Fix port buffers cell size value") Signed-off-by: Mark Zhang Reviewed-by: Maor Gottlieb Signed-off-by: Saeed Mahameed Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.c @@ -309,8 +309,8 @@ int mlx5e_port_manual_buffer_config(stru if (err) return err; - err = update_buffer_lossy(max_mtu, curr_pfc_en, prio2buffer, port_buff_cell_sz, - xoff, &port_buffer, &update_buffer); + err = update_buffer_lossy(max_mtu, curr_pfc_en, prio2buffer, xoff, + port_buff_cell_sz, &port_buffer, &update_buffer); if (err) return err; }