From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B7033606A31C for ; Sun, 29 Nov 2026 20:53:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=networkplumber-org.20260707.gappssmtp.com header.i=@networkplumber-org.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=KI+Ouj9W Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D8B4340A73; Sun, 29 Nov 2026 21:51:00 +0100 (CET) Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by mails.dpdk.org (Postfix) with ESMTPS id 8E71D40E44 for ; Sun, 29 Nov 2026 21:50:57 +0100 (CET) Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-3ae6b4c669fso8186910a91.0 for ; Sun, 29 Nov 2026 12:50:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20260707.gappssmtp.com; s=20260707; t=1795985456; x=1796590256; 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:content-type; bh=WZ/I7aHDqf9KEaDhaFrfJk8nQ4hhi+o3k6za3zvwwJI=; b=KI+Ouj9WERcb/wGGT6SvZRmjeqcTsFfeCw074D1jGzZEy1+en4AwzzqYBRuDoDFoii 4cllTIakhINlY9R3qooftQV4AcaSJc2UIvkk+WYXMUiXEPy4xaPOpwLdJ4PCq5Yy37OS IZ8Fkpco7I1VIbEuxohX9txSS+GFeg38GC9/z10AQUh21o8aKEhheGe9FM5UReg4MMpG 4rYjVCiMK0YgN7oID8licppZ3MukHJze+NsHGIBbiYFw4ZFj2qrh6emhfjk1XWEbrpho QaFWptOzJ+6XH3+U7Axjt5zNNPCAzHDBRpGIAStiYGwKh3a/wZ7oC6rI2+ds51p8stuD wqFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795985456; x=1796590256; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=WZ/I7aHDqf9KEaDhaFrfJk8nQ4hhi+o3k6za3zvwwJI=; b=VK2bYDeJEFtEJLd7Ym9ekrHkonp/GiZsQjfbwNUfbGXZNiFqMWm62SyyHKg0uEz0mr xsBLm4LvwYpXcMGwnuGBUM3j4GoYVe0+p4d0bquIgk5c8M7jwKMgOOvw83WXw5+hF8fE NoUBo2L0icw/vFkb79thHr8rc+zVOmLa479lQT29xHc8ZMWsV+mSf7ZfNmHakjfqoGG8 DUTK4yDFEIScOYD5AGuZH/SOuFwkNK5gJrDC3Z07AOPfsLROWL5+9FMmWUpgDJcsMZLZ oqId/ng4tecs7Rl5DxcddMQcgTYg3pTlRJuMxLw7b2x+31y55y2gDzAfr9CtvcTa6PX6 rPwQ== X-Gm-Message-State: APuU4Z/lGhywjT5nVQNbcBq1oJQTdgrTfR9gbU+FVkSRxH3+hPx9VIKj m6rRwdkzhwcXjuPtTypm61MB2v88LQVZAE29cXcSegglO28O7fx8LU2BIFkS8YpUGOTtgEbaxP8 V5AQhCr0= X-Gm-Gg: AZFdTZdx9FQ21rd0uV8g2hCPaIkEhnh/8HNamNclwSpJBEK0VHvCSkgRi4NCXoNJM2r WcF9Om3A2mHtqUNloxXSG8mJcR5LpzFvT0z4EvLm2PSvIbcDwS2lOUfnJxcGONmJmYHNfDWsf+E vol9m7Vt/46l0H5w1de3x0vCxiwnoMxSZlCWHAaufCuf32rXEIzypigYpir3xTYJdyntIFR/Yec lJhLKWPt78XHIk6moAL+zj6FwAuKdJogtkl4tdRbMPQsdkaZDM/AawnQ5hU+oYX/f7tabYVCdpz t63M9NiP93T5mCKD4U1Z83GdqfJv+V4JaoGEvlTEYn9aFHqufs5VK47dlJ7zZ+r3N2kURa3t6BI 9IPlFmvlt4NXlbUVeUdVfUe3IFdtfWpTg5PXgoetRqczbifnsdocA1Kpv39uJZWqNaiCi3Vnb7u pKaCA1Tg9TPbtRqvdS8Oi3pbh5QchbEyB6P3zZWsL83a6TSGQJ/L0B7dMWvbP/ozD3QN/RzQjc5 JsA7FuOTwuKxuifJJioSB0asMw5fPEr6z99ptZlZeyoMPL4+uz/2ZYUNPj8u0WF9qGBDdGJB057 t3xfIe66qzyrY95XL7V6bqOYJLAS5UUjy6HLhJTE5eEje1mCnD4yhz8FTVJrIIP5ZleCu4OTJpu jxhyAMO4PuRsuHg== X-Received: by 2002:a17:90b:4d86:b0:3ae:3b3d:c617 with SMTP id 98e67ed59e1d1-3b41c93cdbdmr20820580a91.29.1795985456049; Sun, 29 Nov 2026 12:50:56 -0800 (PST) Received: from phoenix.lan (204-195-112-43.wavecable.com. [204.195.112.43]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b50234fb25sm10383968a91.2.2026.11.29.12.50.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 12:50:55 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Jingjing Wu , Praveen Shetty Subject: [PATCH 31/45] net/idpf: remove unused queue enable helper Date: Sun, 29 Nov 2026 12:49:16 -0800 Message-ID: <20261129205006.1440292-32-stephen@networkplumber.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261129205006.1440292-1-stephen@networkplumber.org> References: <20261129205006.1440292-1-stephen@networkplumber.org> X-Archived-By: 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-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 idpf_vc_queues_ena_dis() has no caller. The idpf and cpfl drivers enable queue groups through idpf_vc_queue_switch(). Signed-off-by: Stephen Hemminger --- drivers/net/intel/idpf/idpf_common_virtchnl.c | 68 ------------------- drivers/net/intel/idpf/idpf_common_virtchnl.h | 1 - 2 files changed, 69 deletions(-) diff --git a/drivers/net/intel/idpf/idpf_common_virtchnl.c b/drivers/net/intel/idpf/idpf_common_virtchnl.c index b1a13d1c56..986ceede7d 100644 --- a/drivers/net/intel/idpf/idpf_common_virtchnl.c +++ b/drivers/net/intel/idpf/idpf_common_virtchnl.c @@ -887,74 +887,6 @@ idpf_vc_queue_switch(struct idpf_vport *vport, uint16_t qid, } #define IDPF_RXTX_QUEUE_CHUNKS_NUM 2 -int -idpf_vc_queues_ena_dis(struct idpf_vport *vport, bool enable) -{ - struct idpf_adapter *adapter = vport->adapter; - struct virtchnl2_del_ena_dis_queues *queue_select; - struct virtchnl2_queue_chunk *queue_chunk; - uint32_t type; - struct idpf_cmd_info args; - uint16_t num_chunks; - int err, len; - - num_chunks = IDPF_RXTX_QUEUE_CHUNKS_NUM; - if (vport->txq_model == VIRTCHNL2_QUEUE_MODEL_SPLIT) - num_chunks++; - if (vport->rxq_model == VIRTCHNL2_QUEUE_MODEL_SPLIT) - num_chunks++; - - len = sizeof(struct virtchnl2_del_ena_dis_queues) + - sizeof(struct virtchnl2_queue_chunk) * (num_chunks - 1); - queue_select = rte_zmalloc("queue_select", len, 0); - if (queue_select == NULL) - return -ENOMEM; - - queue_chunk = queue_select->chunks.chunks; - queue_select->chunks.num_chunks = num_chunks; - queue_select->vport_id = vport->vport_id; - - type = VIRTCHNL_QUEUE_TYPE_RX; - queue_chunk[type].type = type; - queue_chunk[type].start_queue_id = vport->chunks_info.rx_start_qid; - queue_chunk[type].num_queues = vport->num_rx_q; - - type = VIRTCHNL2_QUEUE_TYPE_TX; - queue_chunk[type].type = type; - queue_chunk[type].start_queue_id = vport->chunks_info.tx_start_qid; - queue_chunk[type].num_queues = vport->num_tx_q; - - if (vport->rxq_model == VIRTCHNL2_QUEUE_MODEL_SPLIT) { - type = VIRTCHNL2_QUEUE_TYPE_RX_BUFFER; - queue_chunk[type].type = type; - queue_chunk[type].start_queue_id = - vport->chunks_info.rx_buf_start_qid; - queue_chunk[type].num_queues = vport->num_rx_bufq; - } - - if (vport->txq_model == VIRTCHNL2_QUEUE_MODEL_SPLIT) { - type = VIRTCHNL2_QUEUE_TYPE_TX_COMPLETION; - queue_chunk[type].type = type; - queue_chunk[type].start_queue_id = - vport->chunks_info.tx_compl_start_qid; - queue_chunk[type].num_queues = vport->num_tx_complq; - } - - args.ops = enable ? VIRTCHNL2_OP_ENABLE_QUEUES : - VIRTCHNL2_OP_DISABLE_QUEUES; - args.in_args = (uint8_t *)queue_select; - args.in_args_size = len; - args.out_buffer = adapter->mbx_resp; - args.out_size = IDPF_DFLT_MBX_BUF_SIZE; - err = idpf_vc_cmd_execute(adapter, &args); - if (err != 0) - DRV_LOG(ERR, "Failed to execute command of VIRTCHNL2_OP_%s_QUEUES", - enable ? "ENABLE" : "DISABLE"); - - rte_free(queue_select); - return err; -} - RTE_EXPORT_INTERNAL_SYMBOL(idpf_vc_vport_ena_dis) int idpf_vc_vport_ena_dis(struct idpf_vport *vport, bool enable) diff --git a/drivers/net/intel/idpf/idpf_common_virtchnl.h b/drivers/net/intel/idpf/idpf_common_virtchnl.h index a8c693240a..c683c0dd2b 100644 --- a/drivers/net/intel/idpf/idpf_common_virtchnl.h +++ b/drivers/net/intel/idpf/idpf_common_virtchnl.h @@ -27,7 +27,6 @@ int idpf_vc_cmd_execute(struct idpf_adapter *adapter, __rte_internal int idpf_vc_queue_switch(struct idpf_vport *vport, uint16_t qid, bool rx, bool on, uint32_t type); -int idpf_vc_queues_ena_dis(struct idpf_vport *vport, bool enable); __rte_internal int idpf_vc_vport_ena_dis(struct idpf_vport *vport, bool enable); __rte_internal -- 2.53.0