From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4331845AF4; Wed, 9 Oct 2024 19:50:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CE1B042DF0; Wed, 9 Oct 2024 19:50:28 +0200 (CEST) Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by mails.dpdk.org (Postfix) with ESMTP id 8202A42DFA for ; Wed, 9 Oct 2024 19:50:27 +0200 (CEST) Received: by mail-pj1-f46.google.com with SMTP id 98e67ed59e1d1-2e109539aedso123207a91.0 for ; Wed, 09 Oct 2024 10:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1728496227; x=1729101027; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=0yz3QaT3NU5K2T2DES/tyJ5Qul9b930BdbXKkIfzWcQ=; b=JUWkwbwCBg0qLwj8HHelGnndFpXnemjYhBkxH0wNhd6s9o0xiVv428yZuOJRqVWp2c WpYBmph0NQ1vhnFZKspPm4wBcPol55wfWp1lYedK+7bSJy+Cs6HMjfi+v2xyn2i5A+1Y iEWYrkwc/HBmMe7IbgfWgpNbbFhKlIo4HlRGU8e0sdgs/pEbq+XXi6wsTJ7NEP6h1J1F LU862YNb8Kb3N5NoZVwtaPiCxcjDze0g7Wz81kmz3fO0D+2Y3K278Nxk8CtfDEi3EucI E8FAP+QKQ0OuM735anMwg4k4zV3o6Vaxx5DLZPadzY589m7y9PY+5d8k9KZRVI9GLJZi n5/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728496227; x=1729101027; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0yz3QaT3NU5K2T2DES/tyJ5Qul9b930BdbXKkIfzWcQ=; b=f5a5I02AQrznPojN8cDb3HQGBf6qN9lkEZlQE9xoMZeaHvTff7v6mlVKcYRihbQh2o /UfS8rQ11pP8Za6bOOIAcDtAocssGDjEYjOWV/K2rAJod0AGkuK7tzJqVF7EPRXoPaVQ OTMIfjKpO2Z6FFq7VmmsTsX0ydgTBWqphkLSrqaT7dUYUeGePN8mZLdKfD7G8X1INCwP ebi/qe+kfBuopTLZ/dV+iDv5X1iUobW2rN8Ct/CqBJhdaEmF4o4sOmp4+ypRjbEW+7dx j3p8b3WgUi5UvOOjAmqyddwimUhiXwg7c7sJQM3ZpRm7mTW7nWI4Mmg/MKY6VGqb7QDy Yl+g== X-Gm-Message-State: AOJu0Yzz4h+yJkNmedfTO7JnekexOOLsAVIbzjAJ7h/KoY+ZnA6TYdwg 8PkF3d6h15i62IRHite7Nud8VICvgtXB0NFl5k8yLQD3VVR1XAHTIl8lVkv1Suc= X-Google-Smtp-Source: AGHT+IFmjcsOISiIrbeI3ORbz9KqQRZH+rROu3lB0WbgGEKAwL2P/YJJiHLlfNcNt3CNXm/LsM+6ag== X-Received: by 2002:a17:90a:2d86:b0:2e2:973b:f8df with SMTP id 98e67ed59e1d1-2e2a25519d9mr3778341a91.35.1728496226745; Wed, 09 Oct 2024 10:50:26 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e2a5aabbb1sm1980603a91.35.2024.10.09.10.50.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2024 10:50:26 -0700 (PDT) Date: Wed, 9 Oct 2024 10:49:45 -0700 From: Stephen Hemminger To: Bruce Richardson Cc: dev@dpdk.org Subject: Re: [PATCH 5/5] net/ice: limit the number of queues to sched capabilities Message-ID: <20241009104946.21d0cd6e@hermes.local> In-Reply-To: <20241009170822.344716-6-bruce.richardson@intel.com> References: <20241009170822.344716-1-bruce.richardson@intel.com> <20241009170822.344716-6-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Wed, 9 Oct 2024 18:08:22 +0100 Bruce Richardson wrote: > Rather than assuming that each VSI can hold up to 256 queue pairs, > or the reported device limit, query the available nodes in the scheduler > tree to check that we are not overflowing the limit for number of > child scheduling nodes at each level. Do this by multiplying > max_children for each level beyond the VSI and using that as an > additional cap on the number of queues. > > Signed-off-by: Bruce Richardson Acked-by: Stephen Hemminger