Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752078AbdLSTQr (ORCPT ); Tue, 19 Dec 2017 14:16:47 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:55380 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751072AbdLSTQp (ORCPT ); Tue, 19 Dec 2017 14:16:45 -0500 Date: Tue, 19 Dec 2017 14:16:44 -0500 (EST) Message-Id: <20171219.141644.1574828912135603880.davem@davemloft.net> To: lipeng321@huawei.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com, salil.mehta@huawei.com Subject: Re: [PATCH V2 net-next 01/17] net: hns3: add support to query tqps number From: David Miller In-Reply-To: <1513656159-127589-2-git-send-email-lipeng321@huawei.com> References: <1513656159-127589-1-git-send-email-lipeng321@huawei.com> <1513656159-127589-2-git-send-email-lipeng321@huawei.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 19 Dec 2017 11:16:45 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 545 Lines: 17 From: Lipeng Date: Tue, 19 Dec 2017 12:02:23 +0800 > @@ -5002,6 +5002,26 @@ static void hclge_uninit_ae_dev(struct hnae3_ae_dev *ae_dev) > ae_dev->priv = NULL; > } > > +static u32 hclge_get_max_channels(struct hnae3_handle *handle) > +{ > + struct hclge_vport *vport = hclge_get_vport(handle); > + struct hnae3_knic_private_info *kinfo = &handle->kinfo; > + struct hclge_dev *hdev = vport->back; > + Please order local variables from longest to shortest line. Please audit your entire submission for this problem.