[ovs-discuss] Faking Virtual Port Speed

Abdul Basit judiciousmind at gmail.com
Wed May 25 07:12:13 UTC 2016


Hi,
For an experiment, instead of throttling bandwidth in mininet using 'bw'
parameter. My objective is to create virtual interfaces with different
speeds. As per my understanding, OVS creates virtual interfaces using veth
pair on behalf of our mininet command. Instead of modifying linux kernel, i
want OVS to visualize/pretend virtual interfaces of different speeds. To do
so i did following steps

1. I have modified 'bridge.c'
2. In 'iface_refresh_netdev_status' function i am passing custom speed to
'ovsrec_interface_set_link_speed' function
3. For testing my modified code i am adding new port to a bridge 'br0' but
this does't seem to call 'iface_refresh_netdev_status' function even i
tried writing this value in file on disk.

I need guidance whether i'm heading in a right direction to fake the port
speed?
May i know any resource from where i could find more detail for OVS code
insight?
regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20160525/e9c75435/attachment-0002.html>


More information about the discuss mailing list