From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] example/ipv4_multicast: fix app hanging when using clone Date: Tue, 13 Nov 2018 10:25:23 +0100 Message-ID: <4835654.xzScbSBJzk@xps> References: <20181112204650.7175-1-herakliusz.lipiec@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, konstantin.ananyev@intel.com To: Herakliusz Lipiec Return-path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 3779B201 for ; Tue, 13 Nov 2018 10:25:26 +0100 (CET) In-Reply-To: <20181112204650.7175-1-herakliusz.lipiec@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, 12/11/2018 21:46, Herakliusz Lipiec: > This example was dropping packets when using clone (ip 224.0.0.103). What is this IP? What is clone? > The problem was that mbufs were not freed. This was caused by coping > ol_flags from cloned mbuf to header mbufs. Mbuf is not freed because of ol_flags? I feel this description should be improved. > Signed-off-by: Herakliusz Lipiec [...] > --- a/examples/ipv4_multicast/main.c > +++ b/examples/ipv4_multicast/main.c > @@ -266,8 +266,6 @@ mcast_out_pkt(struct rte_mbuf *pkt, int use_clone) > hdr->tx_offload = pkt->tx_offload; > hdr->hash = pkt->hash; > > - hdr->ol_flags = pkt->ol_flags; > - > __rte_mbuf_sanity_check(hdr, 1); > return hdr; > }