From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtpout102.netcore.co.in (unknown [202.162.237.19]) by dpdk.org (Postfix) with ESMTP id BDBC069C3 for ; Thu, 9 Feb 2017 07:38:59 +0100 (CET) To: dev@dpdk.org From: Karthikraj palanichamy Message-ID: <589C0E7E.7080400@veryxtech.com> Date: Thu, 9 Feb 2017 12:08:54 +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: CDC85C004A.A3790 X-SMTP30-MailScanner: Found to be clean X-MailScanner-From: karthikraj.palanichamy@veryxtech.com X-Spam-Status: No X-Cloudmilter-Processed: 1 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Problem in configuring buffer size of a memory pool 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: Thu, 09 Feb 2017 06:38:59 -0000 Hi developers, For /`rte_pktmbuf_pool_create()`, /I normally provide RTE_MBUF_DEFAULT_BUF_SIZE as the data room size. I needed to change this dynamically 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. Then I will do `rte_mempool_free()` and create mem pool again whenever needed. So, my code flow is /create mempool -> transmit pkts -> free mempool/ When I do 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. Thanks in advance for your 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.