From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.ecotelecom.ru (mail.ecotelecom.ru [193.105.59.24]) by dpdk.org (Postfix) with ESMTP id 767E25AA0 for ; Mon, 30 Nov 2015 17:17:08 +0100 (CET) Received: from [10.210.0.253] (unknown [10.210.0.253]) by mail.ecotelecom.ru (Postfix) with ESMTPA id 481E2D402AC for ; Mon, 30 Nov 2015 19:17:08 +0300 (MSK) To: dev@dpdk.org From: Alexey Bogdanenko Message-ID: <565C7684.2090901@ecotelecom.ru> Date: Mon, 30 Nov 2015 19:17:08 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [dpdk-dev] Unable to configure ethdev in secondary process using ring PMD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Nov 2015 16:17:08 -0000 Hello, I would like to setup communication between two existing DPDK applications and run them on the same host. "Connecting their ports" in some way in order not to rewrite the applications would be very desirable. Specifically, I would like one process to send packets and the second process to receive the packets using rte_eth_tx_burst() and rte_eth_rx_burst() respectively. The most straightforward way to accomplish this seems to be by using ring based PMD API as described in the documentation [1] and email [2]. To adapt the example from the documentation to multi-process scenario, I call rte_ring_create() and rte_eth_from_rings() in the primary process, rte_ring_lookup() and rte_eth_from_rings() in the secondary process. After that each process calls rte_eth_dev_configure(). Unfortunately, the function returns -1001 in the secondary process, which is explained in debug log: PMD: rte_eth_dev_configure: Cannot run in secondary processes Is it possible to connect the applications as described above? Any advice would be appreciated. References: 1. Network Interface Controller Drivers. Chapter 8. Libpcap and Ring Based Poll Mode Drivers. 2. DPDK ML. Fri Dec 6 07:22:06 CET 2013. How to know corresponding device from port number. Tetsuya.Mukawa Thanks, Alexey Bogdanenko