From patchwork Mon Jul 16 15:36:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 142035 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2568547ljj; Mon, 16 Jul 2018 08:37:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpesU9rxRFmb54yVqarx7qmuRxFhqhvZAiUAPNJkFnYMX7uXeNEuH8993PXy3nb6Brl7EiQs X-Received: by 2002:a62:2352:: with SMTP id j79-v6mr18144935pfj.221.1531755460122; Mon, 16 Jul 2018 08:37:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531755460; cv=none; d=google.com; s=arc-20160816; b=0DfCLIJD3WtGqC7mYhjXlfb9LnEttSVO2WVEeJKwRQNFEe5xK0jKcr19G09ETiX2yf MiOsTDw1/s2Kg54ryFeSxG0LgztJw+p+eAVhx76bERC4/RRo/GPnvapqvbS1m0PwQ33k VFOkVi9zI7h3+J0UFOBKnzSRNOXtJ33zwpQeLM73ByxSjEjZjuMBP4DZE1DWFZZrXGse YAJP+7C9DeKHb7g3Mv5xi9orVirB38GhZq4ZgHBEg3AvSA8ApFxVz8NLKLM9cBheOF31 0tquggKRLaDkXi9OiMHlaOFJEl6psIQUN51gAAjp8Vw7aKl5F+dKBuHpPFx1KjjB2lP1 LuOg== 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 d26-v6si29433228pge.679.2018.07.16.08.37.39; Mon, 16 Jul 2018 08:37:40 -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 S1731325AbeGPQFf (ORCPT + 31 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 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(-) -- 2.7.4 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,