On Wed, May 27, 2020 at 08:55:20PM +0000, Miroslav Kubiczek wrote:
> Datapath actions: 
> check_pkt_len(size=2,gt(clone(tnl_push(tnl_port(4),header(size=50,type=4,eth(dst=ae:df:6c:75:18:8b,src=f4:03:43:c3:a2:60,dl_type=0x0800),ipv4(src=192.168.200.1,dst=192.168.200.2,proto=17,tos=0,ttl=64,frag=0x4000),udp(src=0,dst=4789,csum=0xffff),vxlan(flags=0x8000000,vni=0x0)),out_port(3)),check_pkt_len(size=2,gt(5),le(5)))),le(userspace(pid=0,controller(reason=6,dont_send=1,continuation=0,recirc_id=1196,rule_cookie=0,controller_id=0,max_len=65535))))

You can see the result above: the check_pkt_len() shows a branch on
size=2, with the size>2 case inside gt() and the size<=2 case inside
le().

size=2 doesn't seem like the size you care about though. Was it what you
specified?

> How can I check the reg[0] value was set?

It's more of a "what-if" game in this case, since the generated flow
considers both possibilities.

> I suspect that the register is set but the next flow ignores the value in the 
> match.
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to