On 2020/6/23 6:07, Jakub Kicinski wrote: > On Sat, 20 Jun 2020 17:42:55 +0800 Luo bin wrote: >> @@ -1144,8 +1190,16 @@ static int nic_dev_init(struct pci_dev *pdev) >> goto err_reg_netdev; >> } >> >> + err = hinic_init_intr_coalesce(nic_dev); >> + if (err) { >> + netif_err(nic_dev, drv, netdev, "Failed to >> init_intr_coalesce\n"); >> + goto err_init_intr; >> + } >> + >> return 0; >> >> +err_init_intr: >> + unregister_netdev(netdev); >> err_reg_netdev: >> err_set_features: >> hinic_hwdev_cb_unregister(nic_dev->hwdev, > > A little suspicious - you should finish all init before device is > registered, once registered the interface can be immediately brought > up. > . > Will fix. Thanks for your review.
- [PATCH net-next v1 0/5] hinic: add some ethtool ops support Luo bin
- [PATCH net-next v1 1/5] hinic: add support to set and ... Luo bin
- [PATCH net-next v1 2/5] hinic: add support to set and ... Luo bin
- Re: [PATCH net-next v1 2/5] hinic: add support to ... Jakub Kicinski
- Re: [PATCH net-next v1 2/5] hinic: add support... luobin (L)
- Re: [PATCH net-next v1 2/5] hinic: add support to ... Jakub Kicinski
- [PATCH net-next v1 3/5] hinic: add self test support Luo bin
- [PATCH net-next v1 4/5] hinic: add support to identify... Luo bin
- [PATCH net-next v1 5/5] hinic: add support to get eepr... Luo bin
- Re: [PATCH net-next v1 5/5] hinic: add support to ... Andrew Lunn
- Re: [PATCH net-next v1 5/5] hinic: add support to ... Jakub Kicinski