[systemd-devel] Antw: [EXT] Re: Additional Information for Ethernet
Ulrich Windl
Ulrich.Windl at rz.uni-regensburg.de
Fri Dec 10 07:17:05 UTC 2021
>>> Greg KH <gregkh at linuxfoundation.org> schrieb am 09.12.2021 um 18:24 in
Nachricht <YbI7vAIAc/zeZoKF at kroah.com>:
> On Thu, Dec 09, 2021 at 03:13:42AM +0000, Spencer Ku (古世瑜) wrote:
>> Hi All,
>> We are developing the redfish of openbmc, and want to expose some Ethernet
> information through the redfish interface, like packet count, drop count. My
> goal is to calculate the bandwidth / drop package rate of the Ethernet. We
> can get those counts from Ethernet driver
> (/sys/class/net/{Ethernet_Name}/statistics), but as far as I know, there is
> no suitable d-bus to read those metrics.
I wonder: What's the problem with just reading that file?
>>
>>
>>
>> My question is that: is it possible to create the new D-bus properties (
> like under the /org/freedesktop/{network}/network/{Ethernet_Name}), then
sync
> the counts to that D-Bus?
>
> Why not just use netlink for this? I think it provides this information
> already as part of networking stats. Have you looked into that?
>
> thanks,
>
> greg k-h
More information about the systemd-devel
mailing list