You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PrepareFdbTxVlanTableEntry function encodes the port_vlan input as a single byte.
The input value (port_vlan in the port_vlan_entry struct) is an int.
The parameter value (vlan_ptr in the remove_vlan_and_fwd action) is bit<24>.
VLAN identifiers are bit<12>.
The value that OvS assigns to port_vlan is the int vlan field in the xbundle struct. The comment states that the value of this field is -1=trunk port, else a 12-bit VLAN ID.
This appears to be an error.
If it's not a bug, the code should contain a comment acknowledging the truncation and explaining why this is not an error.
If it is a bug, it should be fixed. The unit test will also have to be updated.
Note
Need to address both ES2K and DPDK variations.
The unit test should expect, and test with, a 12-bit input value.
The text was updated successfully, but these errors were encountered:
The
PrepareFdbTxVlanTableEntry
function encodes theport_vlan
input as a single byte.port_vlan
in theport_vlan_entry
struct) is anint
.vlan_ptr
in theremove_vlan_and_fwd
action) is bit<24>.port_vlan
is theint vlan
field in thexbundle
struct. The comment states that the value of this field is-1=trunk port, else a 12-bit VLAN ID
.This appears to be an error.
Note
The text was updated successfully, but these errors were encountered: