On 15 July 2016 at 00:32, <deepanshu.saxen...@gmail.com> wrote: > From: Deepanshu Saxena <deepanshu.saxe...@tcs.com> > > This commit implements ovs meters in kernel space using the traffic > control (tc) module of Linux kernel. TC is used to configure Traffic > Control features like Policing, Shaping etc. Ovs meters are analogous to > traffic control policing feature. The details from the meter command are > fetched and mapped to the corresponding fields of tc qdisc,class,filter > commands. > > In this commit only the "ovs-ofctl add-meter" command is translated to > the respective commands of tc. In this only the drop meter band type is > implemented. > > Tested the code using iperf3. Setup consist of ovs connected to VM using > tap interface port and another host via hardware interface. > > Meter is a switch element that can measure and control the rate of packets. > The > meter triggers a meter band if the packet rate or byte rate passing through > the meter exceeds a predefined threshold. If the meter band drops the > packet, it is called a Rate Limiter. > > Signed-off-by: Deepanshu Saxena <deepanshu.saxe...@tcs.com> > Co-authored-by : Jarno Rajahalme <jrajaha...@nicira.com>
OVS includes netlink libraries for interacting with TC, you shouldn't need to use popen(). _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev