I think it's a bug in classification:When verifying the pmr_term
ODP_PMR_CUSTOM_FRAME,
the big-endian packet data shouldn't directly memcpy and used as a uint64_t on
little-endian machine.
We should make a transition here when it's on little-endian machine.
Or we have to turn the value to big-endian when creating a ODP_PMR_CUSTOM_FRAME
pmr, it's different
from other pmr term and make no sense.
And I also add a test case for this ODP_PMR_CUSTOM_FRAME term in validation
test.
huanggaoyang (2):
linux-generic:classification: on little endian machine, a transition
should take after memcpy from a packet
linux-generic:classification:test: add a test case for term
ODP_PMR_CUSTOM_FRAME
.../include/odp_classification_inlines.h | 5 +
test/validation/classification/classification.h | 1 +
.../classification/odp_classification_test_pmr.c | 114 ++++++++++++++++++++-
3 files changed, 118 insertions(+), 2 deletions(-)
--
1.9.1
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp