amorenoz / ovs-dbg

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

ofp: set size of vlan_vid field to 13 #62

Closed amorenoz closed 3 years ago

amorenoz commented 3 years ago

Although the meta-flow says it's 12 bit wide, in reality the VLANV_VID field can hold a 13 bit value because bit 12 expresses the presense of vlan header in certain OpenFlow versions (see http://www.openvswitch.org/support/dist-docs/ovs-fields.7.txt)

Therefore, override the vlan_vid length so that the parser does not fail when it encounters this 13bit wide vlan_vid fields

Fixes: #37 Signed-off-by: Adrian Moreno amorenoz@redhat.com