Hello again, Thanks Ahmed and Tonghao for your replies.
Tonghao : IP packets are encapsulated By the MPLS protocol. After popping the inner mpls header we will find the IP header. That's why i used pop_mpls:0x800 to change the type of the ethernet frame. Ahmed : Yes. I'm working with the kernel datapath. Normally since it supports multiple pushing it should also support multiple popping. With double popping the kernel datapath forward the packet to the ovs-vswitchd but this latter could not handle it properly (may be because of a bug). Best regards, Adele Le jeu. 14 nov. 2019 à 04:14, Ahmed Medhat <a.medha...@gmail.com> a écrit : > Hi Adel, > > I expect you are using the kernel datapath type which has basic > support to mpls. You can use the userspace datapath typeif you need > multiple mpls pushing/popping. > > ovs-vsctl add-br br0 -- set bridge <bridge name> datapath_type=netdev > > Best regards, > Ahmed > > On Wed, Nov 13, 2019 at 6:46 PM Adel Belkhiri <adel.belkh...@gmail.com> > wrote: > > > > Hi All, > > > > I have an issue with popping multiple mpls headers with ovs. The pushing > via push_mpls works fine but the popping via pop_mpls triggers a warning in > the log and the operation is not accomplished. > > > > |WARN|system@ovs-system: execute pop_mpls(eth_type=0x8847),pop_mpls > (eth_type=0x800),2 failed (Invalid argument) on packet > mpls,vlan_tci=0x0000, > dl_src=ba:bd:0d:9d:c5:ee,dl_dst=ea:f5:19:d4:e2:4f,mpls_label=15,mpls_tc=0,mpls_ttl=64,mpls_bos=0,mpls_lse1=45376 > with metadata skb_priority(0),skb_mark(0), in_port(1) mtu 0 > > > > I'm using the last version of OVS : 2.12.90. My OpenFlow rules are the > following : > > > > sudo ovs-ofctl add-flow $S1 > "table=0,in_port=$S1_ETH2,eth_type=0x8847,mpls_bos=1,actions=pop_mpls:0x8847,resubmit(,0)" > > sudo ovs-ofctl add-flow $S1 > "table=0,in_port=$S1_ETH2,eth_type=0x8847,mpls_bos=0,actions=pop_mpls:0x800,output:$S1_ETH1" > > > > > > Any hint how to solve this? > > > > Many thanks. > > Adele. > > _______________________________________________ > > 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