Messages in this thread | | | From | Salil Mehta <> | Subject | RE: [PATCH net-next 1/2] hinic: add rss support | Date | Mon, 10 Jun 2019 16:13:48 +0000 |
| |
> 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) <luoshaokai@huawei.com>; Wangxiaoyun (Cloud, Network Chip > Application Development Dept) <cloud.wangxiaoyun@huawei.com>; > xuechaojing <xuechaojing@huawei.com>; chiqijun <chiqijun@huawei.com>; > wulike (A) <wulike1@huawei.com> > Subject: [PATCH net-next 1/2] hinic: add rss support > > This patch adds rss support for the HINIC driver. > > Signed-off-by: Xue Chaojing <xuechaojing@huawei.com> > ---
[...]
> + > +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?
| |