amorenoz / ovs-dbg

Scripts to help debug OVS and OVN
Apache License 2.0
23 stars 8 forks source link

ofparse: datapath logic view does not detect nested recirc actions #74

Closed amorenoz closed 2 years ago

amorenoz commented 2 years ago

e.g:

Datapath Flows (logical)                                                                                                                                                                                             
├── ufid:7c2d7c8d-b933-4bf8-8434-87052c99798f, recirc_id(0),dp_hash(0/0),skb_priority(0/0),in_port(eth0),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),eth(src=00:00:00:00:00:00/00:00:00:00:00
│   :00,dst=02:42:ac:12:00:03),eth_type(0x0800),ipv4(src=0.0.0.0/0.0.0.0,dst=0.0.0.0/0.0.0.0,proto=6,tos=0/0,ttl=0/0,frag=no),tcp(src=0/0,dst=0/0),tcp_flags(0/0), packets:2744565, bytes:1191318984, used:0.065s,   
│   flags:SFPR., dp:ovs, actions:ct(zone=64000),recirc(0x8)                                                                                                                                                          
│   ├── ufid:52fe15ca-b2c8-449a-8edb-8dd4495f9c7a, recirc_id(0x8),dp_hash(0/0),skb_priority(0/0),in_port(eth0),skb_mark(0/0),ct_state(0x22/0x23),ct_zone(0/0),ct_mark(0x1),ct_label(0/0x2),eth(src=02:42:ac:12:00:02,
│   │   dst=02:42:ac:12:00:03),eth_type(0x0800),ipv4(src=172.18.0.2,dst=172.18.0.3,proto=6,tos=0/0,ttl=64,frag=no),tcp(src=0/0,dst=0/0),tcp_flags(0/0), packets:2153640, bytes:774440916, used:0.638s, flags:SP.,    
│   │   dp:ovs, actions:check_pkt_len(size=1414,gt(breth0),le(ct_clear,ct(nat),recirc(0x10)))                                                                                                                        
│   ├── ufid:20e15fb6-8631-4935-b18b-f9c4c2610a0c, recirc_id(0x8),dp_hash(0/0),skb_priority(0/0),in_port(eth0),skb_mark(0/0),ct_state(0x22/0x22),ct_zone(0/0),ct_mark(0x2),ct_label(0/0),eth(src=00:00:00:00:00:00/00
│   │   :00:00:00:00:00,dst=00:00:00:00:00:00/00:00:00:00:00:00),eth_type(0x0800),ipv4(src=0.0.0.0/0.0.0.0,dst=0.0.0.0/0.0.0.0,proto=0/0,tos=0/0,ttl=0/0,frag=no), packets:49, bytes:5727, used:0.064s, flags:FP.,   
│   │   dp:ovs, actions:breth0                                                                                                                                                                                       
│   └── ufid:d4702c7d-d762-45b1-9810-0b393b52fed9, recirc_id(0x8),dp_hash(0/0),skb_priority(0/0),in_port(eth0),skb_mark(0/0),ct_state(0x20/0x26),ct_zone(0/0),ct_mark(0),ct_label(0/0),eth(src=00:00:00:00:00:00/00:0
│       0:00:00:00:00,dst=02:42:ac:12:00:03),eth_type(0x0800),ipv4(src=0.0.0.0/0.0.0.0,dst=0.0.0.0/0.0.0.0,proto=6,tos=0/0,ttl=0/0,frag=no),tcp(src=0/0,dst=0/0),tcp_flags(0/0), packets:5, bytes:600, used:0.082s,  
│       flags:SP., dp:ovs, actions:breth0

actions:check_pkt_len(size=1414,gt(breth0),le(ct_clear,ct(nat),recirc(0x10))) the inner recirc is not being detected

amorenoz commented 2 years ago

Closed by #91