On Thu, Jul 28, 2022 at 7:03 PM Bruce Richardson
<bruce.richard...@intel.com> wrote:
>
> On Thu, Jul 28, 2022 at 05:26:39PM +0200, David Marchand wrote:
> > For diagnostic, it may be useful to provide a description of the device
> > with Bus specific information like, for PCI, the vendor and device ID.
> >
> > Signed-off-by: David Marchand <david.march...@redhat.com>
> > ---
> Good idea.

The idea came from OVS, which provides some PCI specific info in the
port status.
https://github.com/openvswitch/ovs/blob/master/lib/netdev-dpdk.c#L3655
https://github.com/openvswitch/ovs/blob/master/lib/netdev-dpdk.c#L3690


This is a pretty dumb API (returning a simple string).
Maybe something more flexible like returning some TLV-ish structure or
a map of strings (like OVS smap) would be better...
The function name could be more generic rte_dev_info(), in this case.


-- 
David Marchand

Reply via email to