From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) by dpdk.org (Postfix) with ESMTP id 755533256 for ; Fri, 25 Jan 2019 09:10:33 +0100 (CET) Received: by mail-lj1-f195.google.com with SMTP id g11-v6so7627131ljk.3 for ; Fri, 25 Jan 2019 00:10:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=AYSjVfplfQUNhBlTdlrtxT7QsglGiZbpAJ08JjRFSFk=; b=PF5Z9w7Ll6V6GRpR+Iwd4cyMopz+CVmnLo+WvjghWXS65mssooeJkPLp07ir+fUKoP SlF3I7kjiNfG2xiCzyVkcVyQ0p/ZivqmhMUiq3iBjjUd1B9Uc+Ue8I/nrtfhEOd0Qgud 1i5J8nK7UFk4vP4qbkQCHZENHadCpaNfDzYLo9T8XlZ54Uwy/t0X+P2sXXWsZaZXHFWG gvHIFMyqeUSAuYLiv86JReRz9iEaH2mJ63LaYcrwDH0mgA/wLRsi1psWwRqxWGV57e3a Zvg0nmS4whWpZxghCMNPBSz6kr6b6HpzjhewK69ZFTfgqax93mO0M2d0zAy9WwZnJkyC mfcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=AYSjVfplfQUNhBlTdlrtxT7QsglGiZbpAJ08JjRFSFk=; b=S5nqw4loR0kz5VX4rPAZcbfDHSUI3k3Ebp+7NaBKXrF4P6mZZqvhVtQD0pFrpk6FTq ymW+2ifqrzeuthJhIiVnaGX2lWC14HhLo0WplQ/fzXkspZXOqzY4xEjH/OcBFATGJ/UM gliWwhv3QMnlyTX/dOiq6vuP9H0Wy2SAPN2dzarylQ84Zi/DYabLELkaytsguX6uFRI9 AYLaaXsHOo98QM/bTcRIJRaPsFQL/w2BEfGSlvq6p5zD0GUXM7BVOkT8L0uQo1F+/P3m bWxHF09Vg+XjawaQQ6SdiI3aoYbTQy4fEO3o6U4NLlrMOPEU7oYmNMhpZzdz/+PV4d7J dtlw== X-Gm-Message-State: AHQUAuZt93gPPDH+rinvoJ+Og7ugz+Wfx8SgOai+n4drgsKe7uXOGgvi ZrwTy6cwJ9WYUCGWMdeafFFMTTQOwZ0= X-Google-Smtp-Source: AHgI3IZoptlhydUKOiH7a6BBqxDuXILYzpoO2maeNRyPHFWbEY9moWm0YYZJ+bkaO0+SbswgBe9m/A== X-Received: by 2002:a2e:2246:: with SMTP id i67-v6mr2708423lji.154.1548403833039; Fri, 25 Jan 2019 00:10:33 -0800 (PST) Received: from localhost.localdomain ([185.157.12.197]) by smtp.gmail.com with ESMTPSA id m21sm1358664lfl.97.2019.01.25.00.10.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Jan 2019 00:10:32 -0800 (PST) From: Michal Krawczyk To: gtzalik@amazon.com, mw@semihalf.com, matua@amazon.com Cc: rk@semihalf.com, dev@dpdk.org, Michal Krawczyk Date: Fri, 25 Jan 2019 09:10:24 +0100 Message-Id: <1548403828-31870-2-git-send-email-mk@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548403828-31870-1-git-send-email-mk@semihalf.com> References: <1548403828-31870-1-git-send-email-mk@semihalf.com> Subject: [dpdk-dev] [PATCH 1/5] net/ena: remove lcore constraint from max queue number 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: Fri, 25 Jan 2019 08:10:33 -0000 The number of queues was limited by number of lcores in the recent ENAv2 patch. However, some apps like symmetric_mp, are configuring multiple queues although there is only single lcore used. To prevent failure in that case, the lcore number constraint was removed. Fixes: ea93d37eb49d ("net/ena: add HW queues depth setup") Signed-off-by: Michal Krawczyk --- drivers/net/ena/ena_ethdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index 3022dda..fde5fa7 100644 --- a/drivers/net/ena/ena_ethdev.c +++ b/drivers/net/ena/ena_ethdev.c @@ -1687,8 +1687,7 @@ static int ena_calc_io_queue_num(struct ena_com_dev *ena_dev, if (ena_dev->tx_mem_queue_type == ENA_ADMIN_PLACEMENT_POLICY_DEV) io_tx_sq_num = get_feat_ctx->llq.max_llq_num; - io_queue_num = RTE_MIN(rte_lcore_count(), ENA_MAX_NUM_IO_QUEUES); - io_queue_num = RTE_MIN(io_queue_num, io_rx_num); + io_queue_num = RTE_MIN(ENA_MAX_NUM_IO_QUEUES, io_rx_num); io_queue_num = RTE_MIN(io_queue_num, io_tx_sq_num); io_queue_num = RTE_MIN(io_queue_num, io_tx_cq_num); -- 2.7.4