RE: [RFC PATCH v5 01/16] RDMA/irdma: Add driver framework definitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Subject: Re: [RFC PATCH v5 01/16] RDMA/irdma: Add driver framework
> definitions
> 
> On Thu, Apr 23, 2020 at 12:32:48AM +0000, Saleem, Shiraz wrote:
> 
> > we have a split initialization design for gen2 and future products.
> > phase1 is control path resource initialization in irdma_probe_dev and
> > phase-2 is the rest of the resources with the ib registration at the
> > end of irdma_open. irdma_close must de-register the ib device which
> > will take care of ibdev free too. So it makes sense to keep allocation
> > of the ib device in irdma_open.
> 
> The best driver pattern is to allocate the ib_device at the very start of probe() and
> use this to anchor all the device resources and memories.
> 
> The whole close/open thing is really weird, you should get rid of it.
maybe I missing something. But why is it weird?

underlying configuration changes and reset management for the physical
function need a light-weight mechanism which is realized with the close/open
from netdev PCI drv --> rdma drv.
Without a teardown and re-add of virtual device off the bus.




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux