NIKSS-vSwitch / nikss

Native In-Kernel P4-programmable Software Switch for Software-Defined Networking (previously PSA-eBPF)
Apache License 2.0
47 stars 4 forks source link

Fix prefix length calculation in LPM tables for exact match type keys #65

Closed tatry closed 2 years ago

tatry commented 2 years ago

Closes #64 PTF tests: https://github.com/tatry/p4c/pull/18

Fixes the conversion between LPM and exact match type key match types during write operation. Now all exact keys are treated as LPM keys with prefix length equal to its length when needed.

osinstom commented 2 years ago

@stuart-chu can you verify if this PR fixes #64?

tatry commented 2 years ago

LGTM, I don't think we need a PTF test for that.

@osinstom I just want run test with existing PTF tests for now.