Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2476335imm; Mon, 16 Jul 2018 08:38:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfXdtnb3LsuWjQ0KA2N5iTidcWp0h29ESwyraX4b7LvI8OwfO+KLB1J+VG9GZ60ddW6GpYm X-Received: by 2002:a63:d15:: with SMTP id c21-v6mr16206163pgl.322.1531755517541; Mon, 16 Jul 2018 08:38:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531755517; cv=none; d=google.com; s=arc-20160816; b=DzUc/mHEVDrbaDa5glSChiuxuxJTIXzsaxnr9n2Lr+8+LQ5vSVOnjYetHhzF3RRtcv ojxfDkpjUQrvNB6GCOmFZNKzpKFPCKVkeTs6RosWJHlgqF/6q6v12neQbwmlNNzEOJut o814HWErr0z9FSDhFN63FdbdmdU5LrW53KEtobckwVgeLwzgDE0aqT/sIKf61zZYaJSD clNH4OfitSx3CsBUS51mhMZdcddTDTxUpttpcTiIddkdCcO3Iy97+CjlzcDwQLKbeSgH fmC63/zNmvYLkQq5vLieH07UPyGN8LDQqR1U85gHAD5LFKtjx+5GccsUY3f+Xcn44A74 sqgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=jWr2y6KzSXoV9YOk5FAAJvwZMglKQtUD9fbCRe1jp0s=; b=mPxXVs7Zi0rNxJ/v/b4ejT2mBCAbsH1Owxjiu5FdE6bR0arVCx2cFAnaOdQvuqGSA6 vGq8F7yhBM9Dq+OaK1N8SDx4+O400azHK/czq2wep7GVjmCcKsDd/irkeVoypnHJCGrZ U6YBZiLja0hNPfF8hRYv2l6EJt9zq0XJ1H5L4I6UoZHzI8+tDSyYNMF0KnaHDQiiOpzq H2mmzwMJ4GxlxqIAAJ9Hn8RXI+34+Xu0j33D8zRkNoNN+tsq5sGqBqK9ZC0h8cUxrh30 as3iX5m9p7Jx8opacTzdjA4tJsQkOd7samTZTgfCNuUn7AKnNlBU9VNyAxls9iDoS/By e/Gw== 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 w133-v6si34314759pfd.313.2018.07.16.08.38.22; Mon, 16 Jul 2018 08:38: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; 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 S1731319AbeGPQFf (ORCPT + 99 others); Mon, 16 Jul 2018 12:05:35 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:45356 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727403AbeGPQFe (ORCPT ); Mon, 16 Jul 2018 12:05:34 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 80C39E5987905; Mon, 16 Jul 2018 23:37:33 +0800 (CST) Received: from S00293818-DELL1.huawei.com (10.202.226.54) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.382.0; Mon, 16 Jul 2018 23:37:26 +0800 From: Salil Mehta To: CC: , , , , , , , Fuyun Liang Subject: [PATCH net-next 9/9] net: hns3: Fix comments for hclge_get_ring_chain_from_mbx Date: Mon, 16 Jul 2018 16:36:27 +0100 Message-ID: <20180716153627.476-10-salil.mehta@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180716153627.476-1-salil.mehta@huawei.com> References: <20180716153627.476-1-salil.mehta@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.202.226.54] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fuyun Liang Actually, hclge_get_ring_chain_from_mbx is used to get ring type, tqp id, and int_gl index from mailbox message. So the comments is incorrect. This patch fixes it. Fixes: dde1a86e93ca ("net: hns3: Add mailbox support to PF driver") Signed-off-by: Fuyun Liang Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c index 9d36bcc..f34851c 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c @@ -104,13 +104,15 @@ static void hclge_free_vector_ring_chain(struct hnae3_ring_chain_node *head) } } -/* hclge_get_ring_chain_from_mbx: get ring type & tqpid from mailbox message +/* hclge_get_ring_chain_from_mbx: get ring type & tqp id & int_gl idx + * from mailbox message * msg[0]: opcode * msg[1]: * msg[2]: ring_num * msg[3]: first ring type (TX|RX) * msg[4]: first tqp id - * msg[5] ~ msg[14]: other ring type and tqp id + * msg[5]: first int_gl idx + * msg[6] ~ msg[14]: other ring type, tqp id and int_gl idx */ static int hclge_get_ring_chain_from_mbx( struct hclge_mbx_vf_to_pf_cmd *req, -- 2.7.4