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 <[email protected]> --- 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

