From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f46.google.com (mail-vk0-f46.google.com [209.85.213.46]) by dpdk.org (Postfix) with ESMTP id DCE4E8E81 for ; Thu, 21 Jan 2016 23:24:38 +0100 (CET) Received: by mail-vk0-f46.google.com with SMTP id e185so31669973vkb.1 for ; Thu, 21 Jan 2016 14:24:38 -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=mMmaUT5dJTAkzD71NLCQaXV7kDZr9u5aCf0l8jfjKJw=; b=jmjjmyQT546VeEd02BoFzaka7DEbXVvWG39yGUhLo2Hk+9K7mrAkERsejch4g7Oyxw 1NumrMgK7tOH7kYEFHi5rHN8zkS3TyZK7LblFsXWHvKZRZaKRsoQ8RhY091cZhGGfSrK EI/gXhEabGLw9c2DwbqFLvd1fNaEn5P5j6Bc58ivTsyXDlKiJIGQBNSFUakIxNfxZH+6 Zp4M1FByBgJjlfk4CzTBQs+06fI2r5/UdXIh93jsfXVS/OrhnsRTSwzA8Wc7cEf8HOPG MJuvpOAxR1hySChik5VWSgptLzJ03R8nIIGzOzaBZRtx2G50mpnWNzbR/ogiYecFynYD 8atQ== 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=mMmaUT5dJTAkzD71NLCQaXV7kDZr9u5aCf0l8jfjKJw=; b=l4meVZ6fZE2rtZb25F4bI2+ud2QM1HU5uZlYGtMFVdspgcApfWEtcyuhMjsltC5NZs 9DBtckNFGnof6lNO9wTJstfB4s7LN5q2KyRpiiw80obhpBztUgkG0BrHC10DKByejjuh 0e05w9C3GVn1nqsw+l7MF/mLDrDVXZ9X6/9BCkvjQagbFesXWXsEmP7zCxcSvzZ42iWv 0e7QbP2ABEpWCMHe+CgEexjQs9bDHK5fXkY3EVQulguH4Dn7BYBH+Pj0Y2nMkRWXP3bt AGp6LzP0HiuRsS4eZZwW5Zdo+HXOLdT1NDbR/wlufvxpuPcWuZrPZxPDbwN/hnjmO3wp 0UvA== X-Gm-Message-State: ALoCoQmm3PflBONAj2nPwKQbHA100qWIB1n2N4PPttmcj1ro6QTCzzCepL+qEG7dmjonJV/yU/RIL2DWs8jHpuAKF9Bv79S/Sw== MIME-Version: 1.0 X-Received: by 10.31.5.139 with SMTP id 133mr30062248vkf.157.1453415078335; Thu, 21 Jan 2016 14:24:38 -0800 (PST) Received: by 10.31.152.208 with HTTP; Thu, 21 Jan 2016 14:24:38 -0800 (PST) Date: Thu, 21 Jan 2016 14:24:38 -0800 Message-ID: From: Saurabh Mishra To: users@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] DPDK mbuf pool in SR-IOV env and one RX/TX queue X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jan 2016 22:24:39 -0000 Hi, Is it possible for two or more processes to share the same mbuf_pool in SR-IOV with single rx/tx queue? 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 passthrough 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 no 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