From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id DCC711D7 for ; Mon, 12 Nov 2018 21:46:51 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Nov 2018 12:46:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,496,1534834800"; d="scan'208";a="95763075" Received: from silpixa00399499.ir.intel.com (HELO silpixa00399499.ger.corp.intel.com) ([10.237.222.133]) by FMSMGA003.fm.intel.com with ESMTP; 12 Nov 2018 12:46:49 -0800 From: Herakliusz Lipiec To: dev@dpdk.org Cc: konstantin.ananyev@intel.com, Herakliusz Lipiec Date: Mon, 12 Nov 2018 20:46:50 +0000 Message-Id: <20181112204650.7175-1-herakliusz.lipiec@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] example/ipv4_multicast: fix app hanging when using clone X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2018 20:46:52 -0000 This example was dropping packets when using clone (ip 224.0.0.103). The problem was that mbufs were not freed. This was caused by coping ol_flags from cloned mbuf to header mbufs. Signed-off-by: Herakliusz Lipiec --- examples/ipv4_multicast/main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/ipv4_multicast/main.c b/examples/ipv4_multicast/main.c index 4073a4907..428ca4694 100644 --- 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; } -- 2.17.1