From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f54.google.com (mail-vk0-f54.google.com [209.85.213.54]) by dpdk.org (Postfix) with ESMTP id F1223919B for ; Fri, 22 Jan 2016 05:35:20 +0100 (CET) Received: by mail-vk0-f54.google.com with SMTP id k1so35254747vkb.2 for ; Thu, 21 Jan 2016 20:35:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=yAapOIQFLzvDYaJ7PNWnUYAIroAkYq17mAM83XAGYzc=; b=xSD/Kn4RbBtmV2vKD4dOlko877/AtjdCwzRr9YIR4aJXHQbLdlVh7fxy2/r4iQqkXd H+ozEu8uPJNem0NxmqCiOA8HsH/vSeIL/KwOIm8qziUCeDkNONhk1KPX8hziXqDV9Ab8 GPJktrVOcMKLPwafdhgwlW2wiZs2fb1Y0hB89CrQD8ZAvIwHxQT1MZn7LMu2UueJsz/d Xco+SFdEoxvVd0CaZoqWbODkjz9z6RCdprBs6C1sXs0KXr9aLArpuJbEWyvPb4QPRoV4 mE0DtsiI0Ykn44wLPtgW7hCpS06FxvTmN3iIkxi2HDqmkRntAS+AdgnYH1iD4JTX1KjR K/uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=yAapOIQFLzvDYaJ7PNWnUYAIroAkYq17mAM83XAGYzc=; b=fuuvMWYBWfGgcyQvyDnKJyfV7N2g1vodPay1qt1/wPy2EPyXsAlI6ZoVfgwcOFUDp1 UFqSJTlV9BGR6JqgvcFE2U45zLIRKG4OChUEp3vJZpMwZC+MzTNFOTDvSXIBzTIBeZg1 7uz8uXveVefCpZ4QIOkAsCPjjoSW98sJILSByEYJhAF4MGCaLSAzBwO2TbaRli02KyBi S6KY/HuiXKbP/DmMC/AIxQyEpew9IZyUlMKUnHeBTSqni7xVeY0x+kOWRrpwDpKh4Lo0 Jf3NNzZXEjrqhKgeXpiBhgpaBA+KWD5HdVGPNLGjfErfri5oF5oXRjPp/1bmLO6Qhtb5 YveA== X-Gm-Message-State: AG10YORKOUnRVnpHH9k4KS21fAB5qYpiJIBNhl31SO9u2HNTMMV+QUSxn2K/LG5cr+wJWImT6e61LsdrxZTc+g== MIME-Version: 1.0 X-Received: by 10.31.5.139 with SMTP id 133mr545261vkf.157.1453437320420; Thu, 21 Jan 2016 20:35:20 -0800 (PST) Received: by 10.31.152.208 with HTTP; Thu, 21 Jan 2016 20:35:20 -0800 (PST) Date: Thu, 21 Jan 2016 20:35:20 -0800 Message-ID: From: Saurabh Mishra To: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] DPDK mbuf pool in SR-IOV env and one RX/TX queue 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: Fri, 22 Jan 2016 04:35:21 -0000 Hi, Is it possible for two or more processes to share the same mbuf_pool in SR-IOV with single rx/tx queue? char *eal_argv[] = {"fakeelf", "-c2", "-n4", "--proc-type=primary",}; int ret = rte_eal_init(4, eal_argv); And for secondary, we are passing --proc-type=secondary and adjust -c option according to the core number (1 << core_num). rte_pktmbuf_pool_create(mbuf_pool_name, NB_MBUFS, MBUF_CACHE_SIZE, 0, RTE_MBUF_DEFAULT_BUF_SIZE, rte_socket_id()); We have seen that it does not work. However, with PCI pass through of whole NIC, we can easily share same mbuf_pool with many processes. What are the limitations with SR-IOV and DPDK? If we create one primary and don't create any secondary proc-type, then that seems to work with SR-IOV. However, the moment we add a secondary process, rte_mempool_lookup() returns NULL. Note that we see only 1 queue for rx and tx and multi-queue gets disabled the moment we enable VFs. [683877.050219] ixgbe 0000:06:00.0: *Multi*queue Disabled: Rx Queue count = 1, Tx Queue count = 1 [683879.799872] ixgbe 0000:06:00.1: *Multi*queue Disabled: Rx Queue count = 1, Tx Queue count = 1 The device is question is as follows: 06:00.0 *Ether*net controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01) 06:00.1 *Ether*net controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01) 06:10.0 *Ether*net controller: Intel Corporation 82599 *Ether*net Controller Virtual Function (rev 01) 06:10.1 *Ether*net controller: Intel Corporation 82599 *Ether*net Controller Virtual Function (rev 01) 06:10.2 *Ether*net controller: Intel Corporation 82599 *Ether*net Controller Virtual Function (rev 01) 06:10.3 *Ether*net controller: Intel Corporation 82599 *Ether*net Controller Virtual Function (rev 01) Thanks, /Saurabh