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 2FAE845B17; Sat, 12 Oct 2024 04:19:12 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5FA424042C; Sat, 12 Oct 2024 04:19:01 +0200 (CEST) Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by mails.dpdk.org (Postfix) with ESMTP id C49E1402E0 for ; Sat, 12 Oct 2024 04:18:56 +0200 (CEST) Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-2e1c91fe739so2140257a91.2 for ; Fri, 11 Oct 2024 19:18:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1728699536; x=1729304336; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=q4t0oJC9ZdkkBDpKuZkWZZ7Yg1sudzJcKDH7TF2KDDI=; b=eNbxGrqqwUk2zHrB+HdHgeXUz42Jatzaa0lDyuagfrXbIoGgteKGwL3B0ug81KuJaC fxjub+emFr73PNuykdHQbCVJJvbDqctBCdvqzvdNI81H3APKjAtRq0bYKf1heEBr/OKz Etlakp70YJoNFoD/KXw1esWgb+K/jmRL8hJdEtZ0wMYUL+TaQsfpKaE3iBJjNRbISk9f fNjxtdVY/OwrsyKqpYQOXB1foyR3JP3a9M6xiE8+kCf50TC2fLfsjjPShfsXwYMuTslD eBVTtzz216tJuPq0nw8DTMH+hhQeZ0krJSHDsM53qQw2IZgKslsweJ+6NI5qHGrJtzl4 21CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728699536; x=1729304336; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=q4t0oJC9ZdkkBDpKuZkWZZ7Yg1sudzJcKDH7TF2KDDI=; b=isGnDKwO2CXU6Vj4VjHGSYqV/qvJ6srZ7hytQZiCpYbKXy7bcMtG08h0VHSvj8pzU3 /QZdj6EM7F4koZq2eCsHc+yMJESrbdKiESvf5ctSTY1QLeodRDPR12eRmwvIdANjENz6 wZL+vVipD9coecKWsZTWh/jUV6Ozxd72HHCsYCKvhQq4TdBAm8RNde4R9ST+l/AdcjrN UywFHSfPLSg90l7Xk5Kysnbg+h85vzk6JS4/eOnxjB52FlLelvtkXFXiBDoC16ZxP4bW /MS62oxB/Y7d+v5mDnfpKkhVzAPQnd3o0tQ6WzxNFyynwsxHpm7EbI7GMxwBqbA/zkan 6rAg== X-Gm-Message-State: AOJu0YwwlygZYzul1i05Fh4TOVVdCwVtJB5c87v0vjSzfO3kPraz3VAF w7lkebJbNkm03vDpgysMLi06DM9Wk6f2Y2sX4s5e2ByHDFMkS+9kI7AjMyB6cHyrROYUJVflfCx n X-Google-Smtp-Source: AGHT+IHEeDFBLFwYbjuMJtzcb++rMK3KPcQm9m/RpWDMkbXZYPG5/be33qtTMwqX3svnp7WwOwzrHQ== X-Received: by 2002:a05:6a21:398a:b0:1d3:42f3:ff6d with SMTP id adf61e73a8af0-1d8bcfb27c7mr5974338637.31.1728699535987; Fri, 11 Oct 2024 19:18:55 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e2aa9386bsm3320079b3a.116.2024.10.11.19.18.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 19:18:55 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v2 3/3] net/tap: remove unnecessary checks in configure Date: Fri, 11 Oct 2024 19:17:29 -0700 Message-ID: <20241012021844.536316-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241012021844.536316-1-stephen@networkplumber.org> References: <20241011173026.170884-1-stephen@networkplumber.org> <20241012021844.536316-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The ethdev layer already validates that the number of requested queues is less than the reported max queues. Signed-off-by: Stephen Hemminger --- drivers/net/tap/rte_eth_tap.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index c486c6f073..46afc9e2cb 100644 --- a/drivers/net/tap/rte_eth_tap.c +++ b/drivers/net/tap/rte_eth_tap.c @@ -948,22 +948,6 @@ tap_dev_configure(struct rte_eth_dev *dev) { struct pmd_internals *pmd = dev->data->dev_private; - if (dev->data->nb_rx_queues > RTE_PMD_TAP_MAX_QUEUES) { - TAP_LOG(ERR, - "%s: number of rx queues %d exceeds max num of queues %d", - dev->device->name, - dev->data->nb_rx_queues, - RTE_PMD_TAP_MAX_QUEUES); - return -1; - } - if (dev->data->nb_tx_queues > RTE_PMD_TAP_MAX_QUEUES) { - TAP_LOG(ERR, - "%s: number of tx queues %d exceeds max num of queues %d", - dev->device->name, - dev->data->nb_tx_queues, - RTE_PMD_TAP_MAX_QUEUES); - return -1; - } if (dev->data->nb_rx_queues != dev->data->nb_tx_queues) { TAP_LOG(ERR, "%s: number of rx queues %d must be equal to number of tx queues %d", -- 2.45.2