From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpout3.netcore.co.in (smout3240118.nsmailserv.com [202.162.240.118]) by dpdk.org (Postfix) with ESMTP id C7B3D98 for ; Fri, 17 Feb 2017 11:14:25 +0100 (CET) Received: from cf3.netcore.co.in (cf3.netcore.co.in [202.162.229.197]) by smtpout3.netcore.co.in (Postfix) with ESMTP id 8C608E982F2 for ; Fri, 17 Feb 2017 15:44:24 +0530 (IST) Received: from smtpin3.netcore.in (unknown [192.168.2.198]) by cf3.netcore.co.in (Postfix) with ESMTP id D20201200AE for ; Fri, 17 Feb 2017 15:44:23 +0530 (IST) Received: from localhost.localdomain (unknown [203.196.171.36]) (using TLSv1.2 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: karthikraj.palanichamy@veryxtech.com) by smtpin3.netcore.in (Postfix) with ESMTPSA id 0250FFF916 for ; Fri, 17 Feb 2017 15:44:15 +0530 (IST) X-Abuse-Reports-To: abuse@safe-mails.com From: Karthikraj palanichamy To: users@dpdk.org Message-ID: <58A6CCF6.9070804@veryxtech.com> Date: Fri, 17 Feb 2017 15:44:14 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 X-SMTP30-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 0250FFF916.A3DE6 X-SMTP30-MailScanner: Found to be clean X-MailScanner-From: karthikraj.palanichamy@veryxtech.com X-Spam-Status: No X-Cloudmilter-Processed: 1 X-NetcoreISpam12-ECMScanner-Information: Please contact Netcore Support for more information X-NetcoreISpam12-MailScanner-ID: 8C608E982F2.A1B23 X-NetcoreISpam12-ECMScanner: Found to be clean X-NetcoreISpam12-ECMScanner-SpamCheck: not spam X-NetcoreISpam12-ECMScanner-From: karthikraj.palanichamy@veryxtech.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Issue in freeing and recreating mempools for Transmission X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Feb 2017 10:14:26 -0000 Hi! I am using dpdk to develop a traffic generator (both rx and tx). At the start, I will create a memory pool for Rx with default data room size : RTE_MBUF_DEFAULT_BUF_SIZE. For Tx, I will dynamically create memory pool based on the frame size to be transmitted. To transmit 80 bytes frames, I configured (80 +/RTE_PKTMBUF_HEADROOM/). There was no problem and transmission was successful. I will do `rte_mempool_free()` once the transmission is over. I will again create mem pool when transmission is again set ON. So, my code flow is /: create mempool -> transmit pkts -> free mempool/ When I repeat this for 3 to 5 times, I get segmentation fault in the transmission API of the PMD. - 'eth_igb_xmit_pkts' for igb PMD and 'ixgbe_xmit_pkts_vec()' for ixgbe PMD. When I do /`rte_eth_dev_close()`/ and `rte_eth_dev_start()` after freeing the mem pool, everything works fine. But I couldn't afford to do `rte_eth_dev_close()` since Rx will be running in parallel and Rx shouldn't be stopped. I tried `rte_eth_dev_tx_queue_stop()` but issue persists. Thanks in advance for any help. Regards Karthik DISCLAIMER: Privileged and/or Confidential information may be contained in this message. If you are not the addressee of this message, you may not copy, use or deliver this message to anyone. In such event,you should destroy the message and kindly notify the sender by reply e-mail. It is understood that opinions or conclusions that do not relate to the official business of the company are neither given nor endorsed by the company.