Re: [PATCH rdma-next 2/8] RDMA/core: Introduce and use ib_setup_port_attrs()

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

 



On Wed, Feb 13, 2019 at 07:23:04PM +0200, Leon Romanovsky wrote:
> From: Parav Pandit <parav@xxxxxxxxxxxx>
> 
> Refactor code for device and port sysfs attributes for reuse.
> 
> while at it, rename counter part free function to
> ib_free_port_attrs.
> 
> Also attribute setup sequence is:
> (a) port specific init.
> (b) device stats alloc/init.
> 
> So for cleanup, follow reverse sequence:
> (a) device stats dealloc
> (b) port specific cleanup
> 
> Signed-off-by: Parav Pandit <parav@xxxxxxxxxxxx>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
> ---
>  drivers/infiniband/core/sysfs.c | 64 ++++++++++++++++++---------------
>  1 file changed, 35 insertions(+), 29 deletions(-)

Applied to for-next

Thanks,
Jason



[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