Re: [patch net-next] devlink: add warning in case driver does not set port type

2019-05-03 Thread Jakub Kicinski
On Fri, 3 May 2019 13:31:53 +0200, Jiri Pirko wrote: > From: Jiri Pirko > > Prevent misbehavior of drivers who would not set port type for longer > period of time. Drivers should always set port type. Do WARN if that > happens. > > Note that it is perfectly fine to temporarily not have the type

[patch net-next] devlink: add warning in case driver does not set port type

2019-05-03 Thread Jiri Pirko
From: Jiri Pirko Prevent misbehavior of drivers who would not set port type for longer period of time. Drivers should always set port type. Do WARN if that happens. Note that it is perfectly fine to temporarily not have the type set, during initialization and port type change. Signed-off-by: Ji