# 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 
- List: netdev
- Page: https://ratatoskr.run/netdev/2022/11/2023393
- Thread: https://ratatoskr.run/netdev/2022/11/2023381/t.md

```text


> -----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
> [ref]
> Cc: Andrew Lunn <andrew@lunn.ch>; Shijith Thotton <sthotton@marvell.com>;
> Simon Horman [ref]; Kurt Kanzenbach
> [ref]; Eric Dumazet [ref]; Jerin Jacob
> [ref]; Subbaraya Sundeep [ref]; Ioana
> Ciornei [ref]; drivers@pensando.io; Linu Cherian
> [ref]; Florian Fainelli [ref]; Herbert Xu
> [ref]; Leon Romanovsky [ref]; linux-
> rdma@vger.kernel.org; Shalom Toledo [ref]; Srujana
> Challa [ref]; Minghao Chi [ref]; Hao
> Chen [ref]; Guangbin Huang
> [ref]; Shannon Nelson [ref];
> intel-wired-lan@lists.osuosl.org; Vadim Fedorenko [ref]; Paolo
> Abeni [ref]; Yisen Zhuang [ref]; Sunil
> Goutham [ref]; Ariel Elior [ref]; Ido
> Schimmel [ref]; Richard Cochran [ref];
> Arnaud Ebalard [ref]; Jiri Pirko [ref]; Michael
> Chan [ref]; Vincent Mailhol
> [ref]; Petr Machata [ref]; Salil Mehta
> [ref]; Dimitris Michailidis [ref];
> Manish Chopra [ref]; Boris Brezillon
> [ref]; oss-drivers@corigine.com; Vadim Pasternak
> [ref]; linux-kernel@vger.kernel.org; David S . Miller
> [ref]; Taras Chornyi [ref]; hariprasad
> [ref]; linux-crypto@vger.kernel.org; Jonathan Lemon
> [ref]; Vladimir Oltean [ref]; Saeed
> Mahameed [ref]; Geetha sowjanya [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
```
