Re: [PATCH net-next v5 3/4] net: devlink: make the devlink_ops::info_get() callback optional

From
Jiri Pirko <jiri@resnulli.us>
Date
2022-11-29 08:26:47
Also in
intel-wired-lan, linux-crypto, linux-rdma, lkml
Reply to
Vincent Mailhol, 2022-11-29
Tue, Nov 29, 2022 at 01:05:49AM CET, mailhol.vincent@wanadoo.fr wrote:
Some drivers only reported the driver name in their
devlink_ops::info_get() callback. Now that the core provides this
information, the callback became empty. For such drivers, just
removing the callback would prevent the core from executing
devlink_nl_info_fill() meaning that "devlink dev info" would not
return anything.

Make the callback function optional by executing
devlink_nl_info_fill() even if devlink_ops::info_get() is NULL.

N.B.: the drivers with devlink support which previously did not
implement devlink_ops::info_get() will now also be able to report
the driver name.

Signed-off-by: Vincent Mailhol <redacted>
Reviewed-by: Jiri Pirko <redacted>
Thread (17 messages) 17 messages, 5 authors, last reply 2022-11-30
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help