Does rte_net_get_ptype() support processing packets with two 0x8100 VLAN tags?

huangdengdui huangdengdui at huawei.com
Wed Jul 2 04:38:12 CEST 2025


Hi everyone,

The current rte_net_get_ptype() only supports parsing packets with  a single 0x8100 VLAN tag and two 0x88a8 VLAN tags,
but does not support processing packets with two 0x8100 VLAN tags.

Some network cards (e.g., hns3) do support parsing packets with two 0x8100 VLAN tags.
Can this API be extended to support such packets?

I understand that two 0x8100 VLAN tag packets aren't commonly used, so I'm uncertain whether adding support is necessary.

Anyone is welcome to discuss this and share their opinions.

Thanks,
/Dengdui


More information about the dev mailing list