Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ovsp4rt] PrepareGeneveDecapModAndVlanPushTableEntry truncates vlan_id #679

Open
ffoulkes opened this issue Aug 31, 2024 · 0 comments
Open

Comments

@ffoulkes
Copy link
Contributor

ffoulkes commented Aug 31, 2024

The PrepareGeneveDecapModAndVlanPushTableEntry function encodes the vlan_id field as a single byte.

The source field (vlan_info.port_vlan) is int.

The vlan_id action param value is bit<12>.

Note

The unit test should expect, and test with, a 12-bit value.

@ffoulkes ffoulkes changed the title [ovsp4rt] PrepareGeneveDecapModAndVlanPushTableEntry truncates vlan_id to 8 bits [ovsp4rt] PrepareGeneveDecapModAndVlanPushTableEntry truncates vlan_id Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant