From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f179.google.com (mail-wr0-f179.google.com [209.85.128.179]) by dpdk.org (Postfix) with ESMTP id 4BB4512009 for ; Wed, 21 Feb 2018 18:44:37 +0100 (CET) Received: by mail-wr0-f179.google.com with SMTP id f14so6819913wre.8 for ; Wed, 21 Feb 2018 09:44:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=vz2VfhS7eCfO1m2mjw7WinCUIoWZeHSVrQ47ioNpbao=; b=uraMQ6SDTY7SncABKk1p4YN2RRVPW4Bz/m9pAiwqLOu9XJuo0wGBVmtfe+cGIi+F0Y dvK7Z/xNBRpC4TzzMHhLO+LkqDOzjonqSA85fIXPHZZ8FpMz8rYiOBGpyj6xja96woIz i1AwTP5s/gtuvsh7dfKvb3U5tLXPIxn5HhydD0DOhfd7G9VKRJ22JulL4s2/72g2mIxI Ei4zqlG6azr0BPZndkMgI46bd+OyF/lLTCK5ziL2AAfE/3GwFFE8FVKIDCCJROEfvWY5 2aPhJgShjGQFPN1aFpIv2IMuT1X3lQAU2rmqAolRT7THJo0f7m/EaQ93TFv1rgcR75Q0 SgBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=vz2VfhS7eCfO1m2mjw7WinCUIoWZeHSVrQ47ioNpbao=; b=AQmwY6y/OpLabFogbfmSYwwp5ix9QFo3P8RYQtxdG9GEL1hCP7/pkDiyCwT8udf1Gl eEAe8HdY6YkB0Ip+7p7nAyJG9zo0f98sUglLygfR2GGyIjToFD/pHVvEJ131BseKt4Ix iluxl0hiNDIZ0+wmEsWI5Wbzl2GF3Jjc6fclUFfcF0M4GGix3x0FXCYj3PQSgcviSbtQ ZpFHIFaiqaEOzKZ8fbnKBCDVnYcC+nC7Hyno+Qo7SIl2tkIHnQZ4QF9Pw8hN0nvliX1g olU+XmfZB/hO+Gy2N/dM+VhTvZbSlFxb+aJnxLjrjj/EsiTQkfrB3t1qur++6WCGrJtj PFlg== X-Gm-Message-State: APf1xPBq9hfYlYgkorqQibfDqpD8Su1lJUIW6ypdQVYrqqUw/bKptXzr R+Na+FXfPo+PsinVnZY/IVsVjyp8jtQP7aItwJk= X-Google-Smtp-Source: AH8x224D++2kwDK4BOePHvwVjw5UpNmuFlakO8095Sd60U9GUZmvDmtB4FgsDbhdJ4r58xDa/QIpPwWVnmp9a4yvboc= X-Received: by 10.80.177.89 with SMTP id l25mr5914475edd.267.1519235076857; Wed, 21 Feb 2018 09:44:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.185.37 with HTTP; Wed, 21 Feb 2018 09:44:36 -0800 (PST) In-Reply-To: References: From: Victor Huertas Date: Wed, 21 Feb 2018 18:44:36 +0100 Message-ID: To: dev@dpdk.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Fwd: rte_eth_rx_queue_setup is returning error -28 (ENOSPC) 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: Wed, 21 Feb 2018 17:44:37 -0000 Hi all, I am trying to make an application for having various rx threads capturing packets from various queues of the same NIC (to increase performance using RSS on one NIC). I am basing the app on an example called l3fwd-thread. However, when I try to create the rx queue in a port using the rte_eth_rx_queue_setup function it returns an -28 error (ENOSPC). Having a look at source code of rte_ethdev.c, where this function is implemented, I have seen the only place where ENOSCP value is returned (see below). if (mp->private_data_size < sizeof(struct rte_pktmbuf_pool_private)) { RTE_PMD_DEBUG_TRACE("%s private_data_size %d < %d\n", mp->name, (int) mp->private_data_size, (int) sizeof(struct rte_pktmbuf_pool_private)); return -ENOSPC; } Executing step by step (using Eclipse), I saw that the private_data_size of the pktmbuf_pool was set to zero. And that was the reason why it returned -ENOSPC. Nevertheless in the init_mem function of the example, when the pktmbuf_pool is created, the value for private_data_size as parameter is 0. if (pktmbuf_pool[socketid] == NULL) { snprintf(s, sizeof(s), "mbuf_pool_%d", socketid); pktmbuf_pool[socketid] = rte_pktmbuf_pool_create(s, nb_mbuf, MEMPOOL_CACHE_SIZE, 0, RTE_MBUF_DEFAULT_BUF_SIZE, socketid); if (pktmbuf_pool[socketid] == NULL) rte_exit(EXIT_FAILURE, "Cannot init mbuf pool on socket %d\n", socketid); else printf("Allocated mbuf pool on socket %d\n", socketid); #if (APP_LOOKUP_METHOD == APP_LOOKUP_LPM) setup_lpm(socketid); #else setup_hash(socketid); #endif } So this is contradictory. Why the example initializes the private_data_size to 0 and then it provokes a bat rx queue initialization? Or am I understanding it wrongly? Thanks for your attention, -- Victor -- Victor