-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
bugSomething isn't workingSomething isn't working
Description
The PrepareFdbTxVlanTableEntry
function encodes the port_vlan
input as a single byte.
- The input value (
port_vlan
in theport_vlan_entry
struct) is anint
. - The parameter value (
vlan_ptr
in theremove_vlan_and_fwd
action) is bit<24>. - VLAN identifiers are bit<12>.
- The value that OvS assigns to
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.
- 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.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working