diff options
author | Matias Elo <matias.elo@nokia.com> | 2023-01-09 14:13:42 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2023-02-07 16:25:36 +0200 |
commit | 8076020175dc801eb235ddf1f98c3b925ec13af8 (patch) | |
tree | 7a5aa40b1145e884ed6c09f2bec7e443e78a9045 /test | |
parent | a057dd7dbb5216a06ecbc0b286ecd88a1502148b (diff) |
validation: cls: set packet has vlan flag correctly
Follow the new packet API specification and set either
odp_packet_has_vlan() or odp_packet_has_vlan_qinq() flag, not both.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/validation/api/classification/odp_classification_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/validation/api/classification/odp_classification_common.c b/test/validation/api/classification/odp_classification_common.c index 4c24099a5..fe7677044 100644 --- a/test/validation/api/classification/odp_classification_common.c +++ b/test/validation/api/classification/odp_classification_common.c @@ -399,10 +399,10 @@ odp_packet_t create_packet(cls_packet_info_t pkt_info) vlan_hdr->type = odp_cpu_to_be_16(ODPH_ETHTYPE_VLAN); vlan_hdr++; } else { + odp_packet_has_vlan_set(pkt, 1); ethhdr->type = odp_cpu_to_be_16(ODPH_ETHTYPE_VLAN); } /* Default vlan header */ - odp_packet_has_vlan_set(pkt, 1); vlan_hdr->tci = odp_cpu_to_be_16(0); vlan_hdr->type = odp_cpu_to_be_16(eth_type); } else { |