Re: [PATCH net-next] mlx4: make sure to always set the port type

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

 



On Mon, 7 Sep 2020 09:48:30 +0300 Leon Romanovsky wrote:
>>>> And can we call to devlink_port_type_*_set() without IS_ENABLED() check?  
>>>
>>> It'll generate two netlink notifications - not the end of the world but
>>> also doesn't feel super clean.  
> 
> I would say that such a situation is corner case during the driver init and
> not an end of the world to see double netlink message.

Could you spell out your reasoning here? Are you concerned about
out-of-tree drivers?

I don't see how adding IS_ENABLED() to the condition outweighs 
the benefit of not having duplicated netlink notifications.



[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