From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75DE0C43334 for ; Tue, 19 Jul 2022 20:35:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239435AbiGSUfn (ORCPT ); Tue, 19 Jul 2022 16:35:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239453AbiGSUfl (ORCPT ); Tue, 19 Jul 2022 16:35:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34BFB45F4F for ; Tue, 19 Jul 2022 13:35:40 -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 dfw.source.kernel.org (Postfix) with ESMTPS id BF3D261961 for ; Tue, 19 Jul 2022 20:35:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E09B0C341CA; Tue, 19 Jul 2022 20:35:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658262939; bh=LR70iE9fNxOfc0UN3hnUke98rc/gQ9zgymLPTk5ltiY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=umj9Urqw1akBzvwNSaBr0hJI0O1Ki0cHvMaXlwOf+8NPT7m8PhpPHz6WIXKA5i84v 3Lk0qXc6CVBO3uO76ZQplMIO78OijvwdwKWjUh41K8aoLtSLtvh1sBDc1fR1WZd67l BHbDT992Z4BEvLnIFSGsH5w54ZkQXyluv2/7NseyAcoKCP09Q1i95H/cYLhIzrlKyF lZSFVUMiyAacOYDvpgrKfPyQubutalzCVAiQ34InrGoFayroTUu+Voer3l0Zs5qOs2 rTYZXwgRoBGj0kJAoqSW4ORWJHNdh+DpH1B8FnhmkvpHcAijhIBBRd3Hhwy6DR5VB6 1A49Gdi9Ih55g== From: Saeed Mahameed To: "David S. Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet Cc: Saeed Mahameed , netdev@vger.kernel.org, Tariq Toukan , Moshe Tal , Maxim Mikityanskiy Subject: [net-next V2 05/13] net/mlx5e: HTB, move section comment to the right place Date: Tue, 19 Jul 2022 13:35:21 -0700 Message-Id: <20220719203529.51151-6-saeed@kernel.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220719203529.51151-1-saeed@kernel.org> References: <20220719203529.51151-1-saeed@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Moshe Tal mlx5e_get_qos_sq is a part of the SQ lifecycle, so need be under the title. Signed-off-by: Moshe Tal Reviewed-by: Tariq Toukan Reviewed-by: Maxim Mikityanskiy Signed-off-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/en/qos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/qos.c b/drivers/net/ethernet/mellanox/mlx5/core/en/qos.c index 75df55850954..9a61c44e7f72 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/qos.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/qos.c @@ -180,6 +180,8 @@ int mlx5e_get_txq_by_classid(struct mlx5e_priv *priv, u16 classid) return res; } +/* SQ lifecycle */ + static struct mlx5e_txqsq *mlx5e_get_qos_sq(struct mlx5e_priv *priv, int qid) { struct mlx5e_params *params = &priv->channels.params; @@ -195,8 +197,6 @@ static struct mlx5e_txqsq *mlx5e_get_qos_sq(struct mlx5e_priv *priv, int qid) return mlx5e_state_dereference(priv, qos_sqs[qid]); } -/* SQ lifecycle */ - static int mlx5e_open_qos_sq(struct mlx5e_priv *priv, struct mlx5e_channels *chs, struct mlx5e_qos_node *node) { -- 2.36.1