Re: [PATCH rdma-next v3] RDMA/nldev: Return device protocol

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

 



On Tue, Apr 02, 2019 at 07:07:54PM +0300, Leon Romanovsky wrote:
> From: Leon Romanovsky <leonro@xxxxxxxxxxxx>
> 
> Add new RDMA_NLDEV_ATTR_DEVICE_PROTOCOL attribute to give ability
> for stable names UDEV rule create Ib device stable names based on link
> type protocol. The assumption that devices like mlx4 with duality in their
> link type under one IB device struct won't be allowed in the future.
> 
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
>  Changelog
>  v2 -> v3:
>   * Fixed double assignment in case of OPA link

I prefer the if .. else if .. pattern so this isn't so fragile. We
should never have two attributes dropped.

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