Acked-by: Wang Dong <[email protected]> -----Original Message----- From: Ananyev, Konstantin Sent: Tuesday, November 13, 2018 19:52 To: Lipiec, Herakliusz <[email protected]>; [email protected] Cc: Wang, Dong1 <[email protected]>; [email protected]; Burakov, Anatoly <[email protected]>; [email protected] Subject: RE: [PATCH v2] example/ipv4_multicast: fix app hanging when using clone
> -----Original Message----- > From: Lipiec, Herakliusz > Sent: Tuesday, November 13, 2018 11:49 AM > To: [email protected] > Cc: Ananyev, Konstantin <[email protected]>; Wang, Dong1 > <[email protected]>; [email protected]; Burakov, Anatoly > <[email protected]>; Lipiec, Herakliusz > <[email protected]>; [email protected] > Subject: [PATCH v2] example/ipv4_multicast: fix app hanging when using > clone > > The ipv4_multicast sample application was dropping packets when using > mbuf clone. When creating an L2 header and copying metadata from the > source packet, the ol_flags were also copied along with all the other > metadata. Because the cloned packet had IND_ATTACHED_MBUF flag set in > its ol_flags, this caused the packets to never be freed when using > rte_pktmbuf_free. > Since copying ol_flags from the cloned packet is not necessary in the > first place, just don't do it. > > Fixes: af75078fece3 ("first public release") > CC: [email protected] > > Reported-by: Wang Dong <[email protected]> > Signed-off-by: Herakliusz Lipiec <[email protected]> > --- Acked-by: Konstantin Ananyev <[email protected]>

