Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3402520ybi; Mon, 10 Jun 2019 09:38:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWZBXIxF118KH54snFM8TgwbdiNlO/6wJLTG3Etta+xhUcfDAUmLgHYjn4fPlKp9ae25CH X-Received: by 2002:a17:90a:25af:: with SMTP id k44mr21593276pje.122.1560184726435; Mon, 10 Jun 2019 09:38:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560184726; cv=none; d=google.com; s=arc-20160816; b=Q2qBG8y7qbkVenyMER3LUDnyjdMMPH2NLnOYwFVmHxO8uESfMleoCj9olwtJNf6zuQ ryhoJuwg2h4yIbj8wjJBhsuLfy936HuMaoNboDrddQ44chkyt9QeSjzau91cC0UcJqgm fmzd8l9YQh8+5fvPmXdjU0uLRGL40lWGMEjGGK6BH6GW5O/ZT+NudvwGLYFwIxbgEfP5 4DDJvVQ1yIB5msVIsRA8KxAsF9404IB5nrfBdovvzy4GB9zWp0yyHTBChl1RdWrAI/+6 sRDD8kx2xVHtxxXVuLfUYE+d6meZm8EqJGvx5bVcP5q+n6ASVGl8pnjwJNnG1PPx23Fb ghdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=6FPZMseeH/c1utDtN3ICAiZtD6JIJIUuoVIBIJc4i/4=; b=TGh+sCRvfJ05nLxiin8MTXO1SZpNo6efj1Knts62NIpTEIpsMLqqo8agbGulYIVJlo 5QJUUfL8wooCBXg0nQqcbZiiYldvHJ8z2KwTtdbmFbHpXfBFQdzyBqtXO9NHJfk14qUw iRbdtwEIxY6ORNyDKZlnl09eP5dmS5TaqHJnxDXxTAqWmkwT11J5/w8woGiLNs5Xs/0V PgSTaUMhkIfjPhXKX8Mtx9N9tdqQwutQXKl//p5nlZ4qTZgAruWCflj9z6KLfe6plRfP 8A60sZ75sgRUxFKprXQz1/XtjCbnGyuUP5G9nxkM9zKQ1S1rQXFQ0WRO302zJWwsWSAj DhNQ== 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 f59si10946943plf.220.2019.06.10.09.38.31; Mon, 10 Jun 2019 09:38:46 -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 S2404118AbfFJQN7 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 10 Jun 2019 12:13:59 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:46634 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388850AbfFJQN7 (ORCPT ); Mon, 10 Jun 2019 12:13:59 -0400 Received: from DGGEMM405-HUB.china.huawei.com (unknown [172.30.72.57]) by Forcepoint Email with ESMTP id C580A6E4445C28E02EAA; Tue, 11 Jun 2019 00:13:53 +0800 (CST) Received: from dggeme760-chm.china.huawei.com (10.3.19.106) by DGGEMM405-HUB.china.huawei.com (10.3.20.213) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 11 Jun 2019 00:13:53 +0800 Received: from lhreml702-chm.china.huawei.com (10.201.108.51) by dggeme760-chm.china.huawei.com (10.3.19.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 11 Jun 2019 00:13:51 +0800 Received: from lhreml702-chm.china.huawei.com ([10.201.68.197]) by lhreml702-chm.china.huawei.com ([10.201.68.197]) with mapi id 15.01.1713.004; Mon, 10 Jun 2019 17:13:48 +0100 From: Salil Mehta To: xuechaojing , "davem@davemloft.net" CC: "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "Luoshaokai (luoshaokai)" , "Wangxiaoyun (Cloud, Network Chip Application Development Dept)" , xuechaojing , chiqijun , "wulike (A)" Subject: RE: [PATCH net-next 1/2] hinic: add rss support Thread-Topic: [PATCH net-next 1/2] hinic: add rss support Thread-Index: AQHVH39GZfVwWAWVqkmdo9ZxQyX0SKaVDyNg Date: Mon, 10 Jun 2019 16:13:48 +0000 Message-ID: References: <20190610033455.9405-1-xuechaojing@huawei.com> In-Reply-To: <20190610033455.9405-1-xuechaojing@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.202.226.43] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: netdev-owner@vger.kernel.org [mailto:netdev- > owner@vger.kernel.org] On Behalf Of Xue Chaojing > Sent: Monday, June 10, 2019 4:35 AM > To: davem@davemloft.net > Cc: linux-kernel@vger.kernel.org; netdev@vger.kernel.org; Luoshaokai > (luoshaokai) ; Wangxiaoyun (Cloud, Network Chip > Application Development Dept) ; > xuechaojing ; chiqijun ; > wulike (A) > Subject: [PATCH net-next 1/2] hinic: add rss support > > This patch adds rss support for the HINIC driver. > > Signed-off-by: Xue Chaojing > --- [...] > + > +int hinic_set_rss_type(struct hinic_dev *nic_dev, u32 tmpl_idx, > + struct hinic_rss_type rss_type) > +{ > + struct hinic_hwdev *hwdev = nic_dev->hwdev; > + struct hinic_func_to_io *func_to_io = &hwdev->func_to_io; > + struct hinic_hwif *hwif = hwdev->hwif; > + struct hinic_rss_context_tbl *ctx_tbl; > + struct pci_dev *pdev = hwif->pdev; > + struct hinic_cmdq_buf cmd_buf; > + u64 out_param; > + u32 ctx = 0; > + int err; reverse Christmas tree order in defining local variables everywhere?