[ovs-discuss] Does Open vSwitch 2.10.2 support meters in the Linux kernel datapath?

Ramzah Rehman ramzahrehman at gmail.com
Fri Dec 28 13:12:51 UTC 2018


I read here <http://docs.openvswitch.org/en/latest/faq/qos/> that  "Open
vSwitch 2.10 implemented meters in the Linux kernel datapath".  This means
that if I have Linux kernel version 4.15 (which has added support for meter
action), I can add meter in kernel datapath (no need to use user-space
datapath and DPDK). Is that right? If so, I have ovs version 2.10.2 and
kernel version 2.15.0. However, when I add a meter I get
OFPMMFC_INVALID_METER error.

#ovs-vsctl add-br br0
#ovs-vsctl set bridge br0
protocols=OpenFlow10,OpenFlow11,OpenFlow12,OpenFlow13,OpenFlow14,OpenFlow15
 #ovs-ofctl -O OpenFlow15 add-meter br0
meter=100,kbps,band=type=drop,rate=300000

OFPT_ERROR (OF1.5) (xid=0x2): OFPMMFC_INVALID_METER
OFPT_METER_MOD (OF1.5) (xid=0x2): ADD meter=100 kbps bands=
type=drop rate=300000

One more thing to add here is that the change log of ovs 2.10.1 says that
<https://github.com/openvswitch/openvswitch.github.io/blob/master/releases/NEWS-2.10.1.txt>
"Add support for compiling OVS with the latest Linux 4.14 kernel."

Does this mean that using meter action in kernel datapath is not yet
possible?

Best Regards,
Ramzah Rehman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20181228/c3d372a5/attachment.html>


More information about the discuss mailing list