Hi,

thank you for your reply.

Actually I didn't need to use dpdk, I just had to set datapath to netdev - as 
you said.

However I'm facing another problem now.

I tried to setup a drop meter with the following command :
ovs-ofctl -O Openflow13 add-meter s1 meter=1,kbps,bands=type=drop,rate=1000
I tested it and it worked fine.

then I tried to setup a dscp-remark meter :
ovs-ofctl -O Openflow13 add-meter br1 
meter=1,kbps,band=type=dscp_remark,rate=1000,prec_level=1
and I got te following error : 
OFPT_ERROR (OF1.3) (xid=0x2): OFPMMFC_BAD_BAND
OFPT_METER_MOD (OF1.3) (xid=0x2): ADD meter=1 kbps bands=
type=dscp_remark rate=1000 prec_level=1

According to Openflow documentation OFPMMFC_BAD_BAND indicates that the band is 
unsupported.
my question is : does OVS 2.8.1 fully implement meter, or just the drop band ? 
Or is my command incorrect (I successfully tested it with two other type of 
switches) ?

Regards

----- Mail original -----
De: "Guoshuai Li" <l...@dtdream.com>
À: "Cédric MORIN" <cedric.mo...@imt-atlantique.fr>, "ovs-discuss" 
<ovs-discuss@openvswitch.org>
Envoyé: Lundi 16 Octobre 2017 13:15:34
Objet: Re: [ovs-discuss] Cannot install meter

Is used DPDK create bridge br0?


"The "meter" action is now supported noly in the userspace datapath", not 
supported in kernel space.


can you find config "dpdk-init=true" in open-vswitch table's other_config.
And the datapath_type of bridge br0 needs to be similar to netdev, not system.


such as:

[root@gateway1 ~]# ovs-vsctl list bridge br-int
_uuid               : b73404aa-cb44-4f2c-92e6-99ae59a7ddf5
auto_attach         : []
controller          : []
datapath_id         : "0000aa0434b72c4f"
datapath_type       : netdev
datapath_version    : "<built-in>"
external_ids        : {}
fail_mode           : secure
flood_vlans         : []
flow_tables         : {}
ipfix               : []
mcast_snooping_enable: false
mirrors             : []
name                : br-int
netflow             : []
other_config        : {disable-in-band="true"}
ports               : [06a616dc-220a-4b33-b3d3-8d9779e48160, 
2feb03e8-49da-4b4e-a13e-60a89e517f9b, 
5719a445-f5ea-4ed9-a132-6bccd9529da4, 
a1b7cfa7-9ea5-4870-8bfb-909619b7fd40, 
c5cf0c7a-3235-4476-b557-a33e33b3b5f4, 
ec07f8f5-4ba4-48cb-af9d-dd95ef0ee5db, 
f06c334f-0446-4a6d-b675-449431df6af1, f1e29be4-5fad-49ec-8b64-ee70aa30d744]
protocols           : []
rstp_enable         : false
rstp_status         : {}
sflow               : []
status              : {}
stp_enable          : false



[root@gateway1 ~]# ovs-vsctl list open-vswitch
_uuid               : b4cd39ef-3a54-42aa-a8e9-803233d8779b
bridges             : [54cbc2bd-832f-476e-8e22-6e7d95a4a4e6, 
76c63542-38c5-42ac-af26-c36e3106b930, b73404aa-cb44-4f2c-92e6-99ae59a7ddf5]
cur_cfg             : 142
datapath_types      : [netdev, system]
db_version          : "7.15.0"
external_ids        : {hostname="gateway1", 
ovn-bridge-mappings="physnet2:br-ext", ovn-chassis-types=gateway_router, 
ovn-encap-ip="12.8.100.110", ovn-encap-type=geneve, 
ovn-remote="tcp:192.168.133.71:6643", ovn-remote-probe-interval="30000", 
rundir="/var/run/openvswitch", 
system-id="78a00e1d-70c4-4289-b261-ce2bcfdce17d"}
iface_types         : [dpdk, dpdkr, dpdkvhostuser, dpdkvhostuserclient, 
geneve, gre, internal, lisp, patch, stt, system, tap, vxlan]
manager_options     : []
next_cfg            : 142
other_config        : {dpdk-init="true", pmd-cpu-mask="0xffffff00"}
ovs_version         : "2.8.2"
ssl                 : []
statistics          : {}
system_type         : centos
system_version      : "7"


on 2017/10/16 18:17, Cédric MORIN say:
> Hi,
>
> I have a question regarding meters in OVS, I hope this is the correct mailing 
> list to ask it.
>
> According to the FAQ "Since version 2.0, Open vSwitch has OpenFlow protocol 
> support for OpenFlow meters. Currently, only the userspace datapath 
> implements meters" (http://docs.openvswitch.org/en/latest/faq/qos/),
> and according to the release notes of v.2.8.0 : "The "meter" action is now 
> supported in the userspace datapath" 
> (http://openvswitch.org/releases/NEWS-2.8.0).
> So I suppose it is now possible to create meters in OVS 2.8.0.
>
> I downloaded OVS 2.8.0, then 2.8.1, but I didn't manage to create a meter.
>
> I first used directly the OVS command line :
>> ovs-ofctl -O Openflow13 add-meter br0 meter=2,kbps,band=type=drop,rate=15000
> I got the following output :
> "
> OFPT_ERROR (OF1.3) (xid=0x2): OFPMMFC_INVALID_METER
> OFPT_METER_MOD (OF1.3) (xid=0x2): ADD meter=2 kbps bands=
> type=drop rate=15000
> "
> The output is different from v.2.7.2's one : "OFPMMFC_OUT_OF_METERS".
>
> I supposed that the command was wrong, so I tried to create a meter through 
> OpenDaylight API, with a command that was successful for CPqD switch. ODL 
> accepted the command, but the rule wasn't created, so the problem must be at 
> switch level.
>
> Is meter really implemented in OVS newest versions ? If so, could you please 
> give me a command line to create a meter ?
>
> Thank you
> _______________________________________________
> discuss mailing list
> disc...@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to