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 189DC45EC3; Mon, 16 Dec 2024 20:14:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 587E740611; Mon, 16 Dec 2024 20:13:43 +0100 (CET) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id 4653A402DF for ; Mon, 16 Dec 2024 20:13:39 +0100 (CET) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-21619108a6bso33572755ad.3 for ; Mon, 16 Dec 2024 11:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1734376418; x=1734981218; 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=K4dvE08xmJo6gSib2EGCaY4YZwc8c6lwB/njFhxN9mOEHWcR4UATsu4xsAA9ynMTwO U1YqJyPFZs2BJ6kFoThB7c1nqr21Z3vlCRlinS1pDwFBRBl8eGgmQEAlQycl1X8mgxO/ tca6U8WRA5Tl+dsjgPiMAvw4l0hN+0c3N2DKwll9ihbMPEo0uX3huWQgW2cJ20rCy+gh 2n87Xn72wi290YR80XNEb4yn/75d5l979z24zoPBrEBcMCFJowb1Pt7aaAsIW72TacCo rCwWEFyxsGfXyOSCparXTZHsVXaQztciAOguXRFTEMUK2iEOjaho8KT82BEGNm9oMu4N nr7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734376418; x=1734981218; 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=fflWKeUb2DOVSlucaIhshqkrhzJEotODUDm227MBIiqOJSOb6dYd9d/f8HXbp49g+X c4ZH6aV/HvHJXXTLN3Sg4ia9+qXlkmedgxPMU5dOGLk6xEaV8keEoNqSvyYDU0ZeovUN knmAhO8PtK0kEtFHQyYIPU5WV04ik8pSfcvGpUERZ8Nk15wIkmi6wUA/UvRJ9fn5EE0/ Aa9HKNEoqXNU1MUreg6pmeLOOSDSISVCzNo28UlV92+sclmAA1ei5olrG9pPinKd2WfH 3u9/6350rGMjOh4ojq201VWHur3XC+64S2XsYUvTUW+br9WMuCF1kZji4q/HgvCbnbOu szkQ== X-Gm-Message-State: AOJu0Yw9gdCC6mjaYmqJ37m0HM4vW8m65xm2Tz9LpaLrID0JZUqKs4OH AdhZYXgk9eZw0mghao9nvbiRIVezeoyjgeairq7f5lr0vxhO9niZQ+LAovzuEqoFQDfm1dV+B+5 Lvfw= X-Gm-Gg: ASbGncujs6YAfp7JtgOILGTszhSJe0UJNoVUXa4NlIiwJNN6iGoRf8S6UAtAG4PfvwB Z7dc1cWpWXFt6fOA9VyQHCOY+jBl6vvOKeiz0yvvw8BMu2D910UHmXJZDMyqWCnlCINCJFxpWHv B/RRS/9FqTnb82ItB/7stFM0odn7GPRHX/wJnr3uqkXeApT+ScJ1fYY18Xks4Dn0g6YU1BagwbV kz5AsAFGoes5DZPT4RjD+TYMGATCpf25jQ7Ai7eqwyWiHtG+bb5BhRxg+h4P4xIzGS+XwKFmVZh mRF7lZkWLiNPM4MbBSCpxFNYT/EHDSF5UQ== X-Google-Smtp-Source: AGHT+IGfxMWzVIr7mzO98hk7JuGoeyuR2HvadyHrYPUS2fszfuEFGUC5c0Sh8JDrtNcYSzqe7MoKjg== X-Received: by 2002:a17:902:d4ca:b0:215:6b4c:89fa with SMTP id d9443c01a7336-2189298266fmr164305965ad.8.1734376418426; Mon, 16 Dec 2024 11:13:38 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-218a1e6c6d2sm46413865ad.255.2024.12.16.11.13.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Dec 2024 11:13:38 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Apeksha Gupta , Sachin Saxena Subject: [PATCH v3 5/6] net/enetfec: remove unneeded deferred start check Date: Mon, 16 Dec 2024 11:11:37 -0800 Message-ID: <20241216191323.75753-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241216191323.75753-1-stephen@networkplumber.org> References: <20241213214929.817688-1-stephen@networkplumber.org> <20241216191323.75753-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