[PATCH v3] app/testpmd: add VLAN priority insert support
Stephen Hemminger
stephen at networkplumber.org
Wed Jun 17 17:46:05 CEST 2026
On Wed, 17 Jun 2026 16:52:47 +0800
Xingui Yang <yangxingui at huawei.com> wrote:
> The tx_vlan set and tx_qinq set commands now accept full 16-bit VLAN TCI
> (Tag Control Information) instead of only 12-bit VLAN ID. This allows
> users to set 802.1p priority and CFI/DEI bits for hardware VLAN insertion.
>
> ---
> v3:
> - Remove TX path validation to accept full 16-bit TCI values
> - Rename parameter from vlan_id to vlan_tci in code and documentation
> - Rename struct fields tx_vlan_id to tx_vlan_tci for consistency
> - Rename token variables cmd_tx_vlan_set_vlanid to cmd_tx_vlan_set_vlantci
> - Update cmdline.c structure fields, TOKEN definitions, and help strings
> - Add documentation with TCI bit layout and calculation examples
>
> Suggested-by: Stephen Hemminger <stephen at networkplumber.org>
> Suggested-by: Chengwen Feng <fengchengwen at huawei.com>
> Signed-off-by: Xingui Yang <yangxingui at huawei.com>
Added to net-next but had to fix one thing.
Because you put Suggested/Signed-off below the "---" cut line, git
trimmed away those parts and had to manually add them back.
More information about the dev
mailing list