> On Mon, 19 May 2025 21:36:56 +0530
> <sk...@marvell.com> wrote:
> 
> > From: Sunil Kumar Kori <sk...@marvell.com>
> >
> > hdr_lens is used to maintain header lengths after parsing packets.
> > When port receives different type of packets (say first is VXLAN
> > packet and second is GRE packet).
> >
> > For first packet, L2/L3/L4 lengths are set for inner and outer header
> > alongwith tunnel_len.
> >
> > Now for second packet, tunnel_len is added more than its size it
> > contains stale value which further leads to wrong header pointers.
> >
> > Hence clearing stale information before processing each packet.
> >
> > Signed-off-by: Sunil Kumar Kori <sk...@marvell.com>
> 
> The initialization of hdr_lens then becomes redundant.
> 
> Maybe better to just move it into the loop.
> 
Yes, that will not make any difference. I will fix in next version.

Reply via email to