[PATCH v1 2/2] app/testpmd: mask VLAN inner type when specified
Anatoly Burakov
anatoly.burakov at intel.com
Tue Jun 16 12:27:39 CEST 2026
Currently, when testpmd command `...vlan inner_type is 0x1234`, the VLAN
inner type field is being specified in spec, but is not masked in mask.
Add full mask to VLAN inner type when specified.
Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
---
app/test-pmd/cmdline_flow.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
index 0b7d268535..e41ab0ef9b 100644
--- a/app/test-pmd/cmdline_flow.c
+++ b/app/test-pmd/cmdline_flow.c
@@ -4642,8 +4642,8 @@ static const struct token token_list[] = {
.help = "inner EtherType",
.next = NEXT(item_vlan, NEXT_ENTRY(COMMON_UNSIGNED),
item_param),
- .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_vlan,
- hdr.eth_proto)),
+ .args = ARGS(ARGS_ENTRY_MASK_HTON(struct rte_flow_item_vlan,
+ hdr.eth_proto, "\xff\xff")),
},
[ITEM_VLAN_HAS_MORE_VLAN] = {
.name = "has_more_vlan",
--
2.47.3
More information about the dev
mailing list