RE: [PATCH v2] app/testpmd: fix VLAN header parsing

2025-03-24 Thread Morten Brørup
> From: Raslan Darawsheh [mailto:rasl...@nvidia.com] > Sent: Monday, 24 March 2025 09.50 > > When processing VLAN or QinQ packets, an infinite loop occurred, > preventing the csum forward engine from proceeding and causing > testpmd to hang during shutdown attempts. > > Updated the `get_ethertype

Re: [PATCH v2] app/testpmd: fix VLAN header parsing

2025-03-24 Thread Raslan Darawsheh
>> - eth_hdr->ether_type == _htons(RTE_ETHER_TYPE_QINQ)) { >> - vlan_hdr = (struct rte_vlan_hdr *) >> - ((char *)eth_hdr + sizeof(*eth_hdr)); >> + vlan_hdr = (struct rte_vlan_hdr *) RTE_PTR_ADD(eth_hdr, >> +