[ovs-discuss] MPLS push errors

Sergey Cherepnin scherepnin at gmail.com
Fri Jul 10 13:23:47 UTC 2015


Hello,

I try to configure MPLS in ovs 2.3.1 version. I have br0 and the following
open flow rule:

ovs-ofctl add-flow br0
priority=40000,in_port=LOCAL,dl_type=0x0800,nw_dst=118.0.0.2,actions=push_mpls:0x8847,set_mpls_label:255,output:1

I use user space datapath in br0:
ovs-vsctl add-br br0
ovs-vsctl set bridge br0 datapath_type=netdev
ovs-vsctl add-port br0 eth3

ifconfig br0 10.0.0.1
route add -net 118.0.0.0/8 gw 10.0.0.2

When I try the MPLS work and ping over br0 the following error occurs:

ping 118.0.0.2

1970-01-01T20:18:49.689Z|00001|dpif_netdev(handler13)|ERR|internal error
parsing flow mask
skb_priority(0),skb_mark(0/0),in_port(1),eth(src=00:0f:b7:12:03:7a/00:00:00:00:00:00,dst=14:cc:20:00:06:5c/00:00:00:00:00:00),eth_type(0x0800),ipv4(src=
10.0.0.1/0.0.0.0,dst=118.0.0.2/255.255.255.255,proto=1/0,tos=0/0xfc,ttl=64/0xff,frag=no/0xff),icmp(type=8,code=0)
(error)

1970-01-01T20:18:49.689Z|00002|dpif(handler13)|WARN|netdev at ovs-netdev:
failed to put[create] (Invalid argument)
skb_priority(0),skb_mark(0/0),in_port(1),eth(src=00:0f:b7:12:03:7a/00:00:00:00:00:00,dst=14:cc:20:00:06:5c/00:00:00:00:00:00),eth_type(0x0800),ipv4(src=
10.0.0.1/0.0.0.0,dst=118.0.0.2/255.255.255.255,proto=1/0,tos=0/0xfc,ttl=64/0xff,frag=no/0xff),icmp(type=8,code=0),
actions:push_mpls(label=10,tc=0,ttl=64,bos=1,eth_type=0x8847),2

Note, the packets get forwarded as expected with the MPLS label. But how to
avoid the errors above? What wrong in my config?

I also tried:

ovs-ofctl add-flow br0
priority=40001,in_port=LOCAL,dl_type=0x0800,nw_dst=118.0.0.2,actions=push_mpls:0x8847,set_field:20-\>mpls_label,output:1


--
Sergey.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150710/f50c2978/attachment-0002.html>


More information about the discuss mailing list