Re: [RFC net-next 2/6] devlink: add version reporting API

2019-01-15 Thread Jiri Pirko
Tue, Jan 15, 2019 at 01:50:04AM CET, jakub.kicin...@netronome.com wrote: [...] >@@ -3701,6 +3732,40 @@ static int devlink_nl_cmd_info_get_dumpit(struct >sk_buff *msg, > return msg->len; > } > >+int devlink_versions_report(struct sk_buff *skb, enum devlink_attr attr, >+

[RFC net-next 2/6] devlink: add version reporting API

2019-01-14 Thread Jakub Kicinski
ethtool -i has a few fixed-size fields which can be used to report firmware version and expansion ROM version. Unfortunately, modern hardware has more firmware components. There is usually some datapath microcode, management controller, PXE drivers, and a CPLD load. Running ethtool -i on modern