TX/RX statistics need to be swapped
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: TX/RX statistics need to be swapped
- From: Oleg Vasilev <oleg.vasilev@xxxxxxxxxxxxx>
- Date: Wed, 23 Nov 2022 20:12:30 +0600
- Cc: Michal Privoznik <mprivozn@xxxxxxxxxx>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0
Hi,
virDomainNetTypeSharesHostView[1] contains the logic where for some
interface types it swaps TX and RX values, because what TX from the
inside is RX on the outside and vice versa.
We observe a configuration where <interface type='ethernet' /> shows
swapped values in statistics, because, apparently, the values are
swapped once inside the kernel when going from the inside to the
outside, but not swapped second time because of the mentioned logic.
Is this a bug? Why in the virDomainNetTypeSharesHostView[1] ethernet is
marked as 'non-swapped'?
Maybe we need some more fine-grained way of determining whether to swap
value a second time?
Thanks,
Oleg
[1]:
https://gitlab.com/libvirt/libvirt/-/blob/master/src/conf/domain_conf.c#L29092
[Index of Archives]
[Virt Tools]
[Libvirt Users]
[Lib OS Info]
[Fedora Users]
[Fedora Desktop]
[Fedora SELinux]
[Big List of Linux Books]
[Yosemite News]
[KDE Users]
[Fedora Tools]