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

From
Keller, Jacob E <jacob.e.keller@intel.com>
Date
2022-11-29 00:24:50
Also in
intel-wired-lan, linux-crypto, linux-rdma, lkml
Reply to
Vincent Mailhol, 2022-11-29
-----Original Message-----
From: Intel-wired-lan <redacted> On Behalf Of
Vincent Mailhol
Sent: Monday, November 28, 2022 4:06 PM
To: Jiri Pirko <redacted>; <redacted>; Jakub Kicinski
[off-list ref]
Cc: Andrew Lunn <andrew@lunn.ch>; Shijith Thotton <sthotton@marvell.com>;
Simon Horman [off-list ref]; Kurt Kanzenbach
[off-list ref]; Eric Dumazet [off-list ref]; Jerin Jacob
[off-list ref]; Subbaraya Sundeep [off-list ref]; Ioana
Ciornei [off-list ref]; drivers@pensando.io; Linu Cherian
[off-list ref]; Florian Fainelli [off-list ref]; Herbert Xu
[off-list ref]; Leon Romanovsky [off-list ref]; linux-
rdma@vger.kernel.org; Shalom Toledo [off-list ref]; Srujana
Challa [off-list ref]; Minghao Chi [off-list ref]; Hao
Chen [off-list ref]; Guangbin Huang
[off-list ref]; Shannon Nelson [off-list ref];
intel-wired-lan@lists.osuosl.org; Vadim Fedorenko [off-list ref]; Paolo
Abeni [off-list ref]; Yisen Zhuang [off-list ref]; Sunil
Goutham [off-list ref]; Ariel Elior [off-list ref]; Ido
Schimmel [off-list ref]; Richard Cochran [off-list ref];
Arnaud Ebalard [off-list ref]; Jiri Pirko [off-list ref]; Michael
Chan [off-list ref]; Vincent Mailhol
[off-list ref]; Petr Machata [off-list ref]; Salil Mehta
[off-list ref]; Dimitris Michailidis [off-list ref];
Manish Chopra [off-list ref]; Boris Brezillon
[off-list ref]; oss-drivers@corigine.com; Vadim Pasternak
[off-list ref]; linux-kernel@vger.kernel.org; David S . Miller
[off-list ref]; Taras Chornyi [off-list ref]; hariprasad
[off-list ref]; linux-crypto@vger.kernel.org; Jonathan Lemon
[off-list ref]; Vladimir Oltean [off-list ref]; Saeed
Mahameed [off-list ref]; Geetha sowjanya [off-list ref]
Subject: [Intel-wired-lan] [PATCH net-next v5 3/4] net: devlink: make the
devlink_ops::info_get() callback optional

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.
Makes sense to me.

Thanks,
Jake
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