[ovs-discuss] Swapping tap device stats

Ben Pfaff blp at nicira.com
Mon Aug 10 23:42:21 UTC 2009


Jesse Gross <jesse at nicira.com> writes:

> Ben Pfaff wrote:
>>> Normally when we display port stats, transmit is for data leaving the
>>> switch and receive is for data entering the switch.  These stats come
>>> directly from the interface.  However, for tap devices the reverse is
>>> actually reported, since from the kernel's perspective the tap device
>>> is acting like the machine connected to the switch, not the switch
>>> itself.
>>>
>>> Unless anyone objects, I'd like to swap receive and transmit stats so
>>> that they match the other interfaces.
>>
>> Where do you want to swap them?
>
> In the tap netdev.

So on master, somewhere in netdev_linux_get_stats()?  And on
citrix, somewhere in netdev_get_stats()?

That sounds reasonable to me.




More information about the discuss mailing list