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 2440945EA2; Sat, 14 Dec 2024 19:09:20 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8572740E7C; Sat, 14 Dec 2024 19:09:01 +0100 (CET) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id 455114028A for ; Sat, 14 Dec 2024 19:08:57 +0100 (CET) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-216281bc30fso30604665ad.0 for ; Sat, 14 Dec 2024 10:08:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1734199736; x=1734804536; 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=ISIq/4NjX8gsBiGvvhEE+iQo79qo/IZUDy/wdiIThLA=; b=Xbi0WOJiLNbbTvB/gs5BNfpj8zgMp3bUCmnudyVSufP+soVGsgJshyIvEqc/Sa8aa5 bOpwLwmPir/bGVzyBzKuURtyqqUA/cPzEXQpWWqlrNlyeziFYhfW44xVcP+DKdZ95XO0 yVNJg9D2jqjXFNVC3mYCi+e0OhtsW+c3/VnALxQkGDjtT/jxnqooRfGPdUtCT5K2buPi hjzAnEb+pOIftBb3+He/3sVzOSNP0STu77essRaeDi+sPOQtZbPYa6/NjQv42fKx+SHh afCTJ7mB4SHeeOuDaZSu1+5U7PqczGmOXkpZQiry9p90yLTupDu8+b4Ct1esuVOgym1j rvSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734199736; x=1734804536; 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=ISIq/4NjX8gsBiGvvhEE+iQo79qo/IZUDy/wdiIThLA=; b=FQdiJIZXHzGfnVAbWHovBhq5/2DZYqbPv/7XzlRi41+FPWcH8xmgTuMzcwMYv5r6ci VAREGUj1m79nJfCq1NernH/uI8R4CNBC9SOwaS+SZ2cu63SlI/i+ombPxc2n44sZ7Ogw VcTON4inRPiSKdh4WFkcoKVdcYHI+gmCgiz2VCuPH47iBwcZ6svCyJgHA0w02dRMtCUp q2H2AssffYBwc1cL30CDYB22KfwQVimIgTQCKMHeJ1oEpnAmO/+O/E7qFSAgTTyGaZmR cYmY3Ejez9Ug2dqhqP8/8xbVBhMqr2TsQxgd/kyDg8EeNVwlWboyDzWn9p/dzF0n3vBt 8eNA== X-Gm-Message-State: AOJu0Yz+L0cJQpHCwtJJIumt/+kAdN9nG18vd+TrF8ZxLufwrx0enPuA ygd9dLSXLDUzJlDBvHGoUbsKBbO3lFeQhsjMAK9Gkegx1r80dX40qHbX8TJh/k+4fSuNwUuo44e t X-Gm-Gg: ASbGnctdnLvqQ5dRrczLiIx65yrd/LzspIG93Jkcc1H1eQRIHXrunm7gh4JqAzg2yDM m0KDLjeBr9IMiglrVWGDg1UNmql0/CXfnkZHdxt8Uyq1/A9eCtOkg0NJIyC4kTwUK6wodZ7IPFb uM3N3MNrS4kDM6237Q0F1PhiEzODmSuDaI3cr+q0s7ONjcY8sTwde6l5Fn0Vqvmi5lpOcafqkVd dsB7taUSpzmCZY4G2bw6us9y3hV1HbKoNEiI5WyrTreNQRx/gLliWalFaLVGYLmJvimQZvgzopf +R6xEGwo1AlGaxUu6qDDBtAPzSF+5+a5bQ== X-Google-Smtp-Source: AGHT+IFOgbDY5EyXSBGXhRuGWPYyfYjwklrQwskXfnkargQ4BoSiT9/khF6XZ6lo+fT/sj2ZIBBR/Q== X-Received: by 2002:a17:903:22cf:b0:216:3e86:1cb9 with SMTP id d9443c01a7336-21892aeaa74mr98976145ad.50.1734199736522; Sat, 14 Dec 2024 10:08:56 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-218a1db755dsm15341355ad.42.2024.12.14.10.08.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Dec 2024 10:08:56 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Apeksha Gupta , Sachin Saxena Subject: [PATCH v2 4/5] net/enetfec: remove unneeded deferred start check Date: Sat, 14 Dec 2024 10:07:35 -0800 Message-ID: <20241214180843.6662-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241214180843.6662-1-stephen@networkplumber.org> References: <20241213214929.817688-1-stephen@networkplumber.org> <20241214180843.6662-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 Already checked in ethdev now. Signed-off-by: Stephen Hemminger --- drivers/net/enetfec/enet_ethdev.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/net/enetfec/enet_ethdev.c b/drivers/net/enetfec/enet_ethdev.c index 91c0f60490..9835532595 100644 --- a/drivers/net/enetfec/enet_ethdev.c +++ b/drivers/net/enetfec/enet_ethdev.c @@ -366,7 +366,7 @@ enetfec_tx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx, uint16_t nb_desc, unsigned int socket_id __rte_unused, - const struct rte_eth_txconf *tx_conf) + const struct rte_eth_txconf *tx_conf __rte_unused) { struct enetfec_private *fep = dev->data->dev_private; unsigned int i; @@ -377,12 +377,6 @@ enetfec_tx_queue_setup(struct rte_eth_dev *dev, sizeof(struct bufdesc); unsigned int dsize_log2 = rte_fls_u64(dsize) - 1; - /* Tx deferred start is not supported */ - if (tx_conf->tx_deferred_start) { - ENETFEC_PMD_ERR("Tx deferred start not supported"); - return -EINVAL; - } - /* allocate transmit queue */ txq = rte_zmalloc(NULL, sizeof(*txq), RTE_CACHE_LINE_SIZE); if (txq == NULL) { @@ -443,7 +437,7 @@ enetfec_rx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx, uint16_t nb_rx_desc, unsigned int socket_id __rte_unused, - const struct rte_eth_rxconf *rx_conf, + const struct rte_eth_rxconf *rx_conf __rte_unused, struct rte_mempool *mb_pool) { struct enetfec_private *fep = dev->data->dev_private; @@ -456,12 +450,6 @@ enetfec_rx_queue_setup(struct rte_eth_dev *dev, sizeof(struct bufdesc); unsigned int dsize_log2 = rte_fls_u64(dsize) - 1; - /* Rx deferred start is not supported */ - if (rx_conf->rx_deferred_start) { - ENETFEC_PMD_ERR("Rx deferred start not supported"); - return -EINVAL; - } - if (queue_idx >= ENETFEC_MAX_Q) { ENETFEC_PMD_ERR("Invalid queue id %" PRIu16 ", max %d", queue_idx, ENETFEC_MAX_Q); -- 2.45.2