* [PATCH] net/idpf: remove useless function
@ 2026-02-18 12:04 Ciara Loftus
2026-02-18 13:44 ` Bruce Richardson
0 siblings, 1 reply; 3+ messages in thread
From: Ciara Loftus @ 2026-02-18 12:04 UTC (permalink / raw)
To: dev; +Cc: Ciara Loftus
Commit 376faf4aaa16 ("net/idpf: enable simple Tx function") removed the
one assignment that was performed in the function
idpf_qc_tx_vec_avx512_setup. Without it, the function is useless and
results in USELESS_CALL defects reported by Coverity. Fix these by
removing the function and the logic that calls it in idpf and cpfl.
Coverity issue: 501500
Coverity issue: 501501
Fixes: 376faf4aaa16 ("net/idpf: enable simple Tx function")
Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
---
drivers/net/intel/cpfl/cpfl_rxtx.c | 16 ----------------
drivers/net/intel/idpf/idpf_common_rxtx.h | 4 ----
drivers/net/intel/idpf/idpf_common_rxtx_avx512.c | 10 ----------
drivers/net/intel/idpf/idpf_rxtx.c | 16 ----------------
4 files changed, 46 deletions(-)
diff --git a/drivers/net/intel/cpfl/cpfl_rxtx.c b/drivers/net/intel/cpfl/cpfl_rxtx.c
index 11451e1666..36ee452876 100644
--- a/drivers/net/intel/cpfl/cpfl_rxtx.c
+++ b/drivers/net/intel/cpfl/cpfl_rxtx.c
@@ -1551,20 +1551,4 @@ cpfl_set_tx_function(struct rte_eth_dev *dev)
dev->tx_pkt_prepare = idpf_dp_prep_pkts;
PMD_DRV_LOG(NOTICE, "Using %s Tx (port %d).",
idpf_tx_path_infos[ad->tx_func_type].info, dev->data->port_id);
-
-#ifdef RTE_ARCH_X86
-#ifdef CC_AVX512_SUPPORT
- if (idpf_tx_path_infos[ad->tx_func_type].features.simd_width >= RTE_VECT_SIMD_256 &&
- idpf_tx_path_infos[ad->tx_func_type].features.single_queue) {
- for (i = 0; i < dev->data->nb_tx_queues; i++) {
- txq = dev->data->tx_queues[i];
- if (txq == NULL)
- continue;
- if (idpf_tx_path_infos[ad->tx_func_type].features.simd_width ==
- RTE_VECT_SIMD_512)
- idpf_qc_tx_vec_avx512_setup(txq);
- }
- }
-#endif /* CC_AVX512_SUPPORT */
-#endif /* RTE_ARCH_X86 */
}
diff --git a/drivers/net/intel/idpf/idpf_common_rxtx.h b/drivers/net/intel/idpf/idpf_common_rxtx.h
index 914cab0f25..cc11ea43b9 100644
--- a/drivers/net/intel/idpf/idpf_common_rxtx.h
+++ b/drivers/net/intel/idpf/idpf_common_rxtx.h
@@ -231,10 +231,6 @@ int idpf_qc_singleq_rx_vec_setup(struct idpf_rx_queue *rxq);
__rte_internal
int idpf_qc_splitq_rx_vec_setup(struct idpf_rx_queue *rxq);
__rte_internal
-int idpf_qc_tx_vec_avx512_setup(struct ci_tx_queue *txq);
-__rte_internal
-int idpf_qc_tx_vec_avx512_setup(struct ci_tx_queue *txq);
-__rte_internal
uint16_t idpf_dp_singleq_recv_pkts_avx512(void *rx_queue,
struct rte_mbuf **rx_pkts,
uint16_t nb_pkts);
diff --git a/drivers/net/intel/idpf/idpf_common_rxtx_avx512.c b/drivers/net/intel/idpf/idpf_common_rxtx_avx512.c
index fe870617bc..bcf8fec14c 100644
--- a/drivers/net/intel/idpf/idpf_common_rxtx_avx512.c
+++ b/drivers/net/intel/idpf/idpf_common_rxtx_avx512.c
@@ -1357,13 +1357,3 @@ idpf_dp_splitq_xmit_pkts_avx512(void *tx_queue, struct rte_mbuf **tx_pkts,
{
return idpf_splitq_xmit_pkts_vec_avx512_cmn(tx_queue, tx_pkts, nb_pkts);
}
-
-RTE_EXPORT_INTERNAL_SYMBOL(idpf_qc_tx_vec_avx512_setup)
-int __rte_cold
-idpf_qc_tx_vec_avx512_setup(struct ci_tx_queue *txq)
-{
- if (!txq)
- return 0;
-
- return 0;
-}
diff --git a/drivers/net/intel/idpf/idpf_rxtx.c b/drivers/net/intel/idpf/idpf_rxtx.c
index 6317112353..448d5fb425 100644
--- a/drivers/net/intel/idpf/idpf_rxtx.c
+++ b/drivers/net/intel/idpf/idpf_rxtx.c
@@ -897,20 +897,4 @@ idpf_set_tx_function(struct rte_eth_dev *dev)
dev->tx_pkt_prepare = idpf_dp_prep_pkts;
PMD_DRV_LOG(NOTICE, "Using %s Tx (port %d).",
idpf_tx_path_infos[ad->tx_func_type].info, dev->data->port_id);
-
-#ifdef RTE_ARCH_X86
-#ifdef CC_AVX512_SUPPORT
- if (idpf_tx_path_infos[ad->tx_func_type].features.simd_width >= RTE_VECT_SIMD_256 &&
- idpf_tx_path_infos[ad->tx_func_type].features.single_queue) {
- for (i = 0; i < dev->data->nb_tx_queues; i++) {
- txq = dev->data->tx_queues[i];
- if (txq == NULL)
- continue;
- if (idpf_tx_path_infos[ad->tx_func_type].features.simd_width ==
- RTE_VECT_SIMD_512)
- idpf_qc_tx_vec_avx512_setup(txq);
- }
- }
-#endif /* CC_AVX512_SUPPORT */
-#endif /* RTE_ARCH_X86 */
}
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] net/idpf: remove useless function
2026-02-18 12:04 [PATCH] net/idpf: remove useless function Ciara Loftus
@ 2026-02-18 13:44 ` Bruce Richardson
2026-02-19 11:01 ` Bruce Richardson
0 siblings, 1 reply; 3+ messages in thread
From: Bruce Richardson @ 2026-02-18 13:44 UTC (permalink / raw)
To: Ciara Loftus; +Cc: dev
On Wed, Feb 18, 2026 at 12:04:12PM +0000, Ciara Loftus wrote:
> Commit 376faf4aaa16 ("net/idpf: enable simple Tx function") removed the
> one assignment that was performed in the function
> idpf_qc_tx_vec_avx512_setup. Without it, the function is useless and
> results in USELESS_CALL defects reported by Coverity. Fix these by
> removing the function and the logic that calls it in idpf and cpfl.
>
> Coverity issue: 501500
> Coverity issue: 501501
>
> Fixes: 376faf4aaa16 ("net/idpf: enable simple Tx function")
>
> Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
> ---
> drivers/net/intel/cpfl/cpfl_rxtx.c | 16 ----------------
> drivers/net/intel/idpf/idpf_common_rxtx.h | 4 ----
> drivers/net/intel/idpf/idpf_common_rxtx_avx512.c | 10 ----------
> drivers/net/intel/idpf/idpf_rxtx.c | 16 ----------------
> 4 files changed, 46 deletions(-)
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net/idpf: remove useless function
2026-02-18 13:44 ` Bruce Richardson
@ 2026-02-19 11:01 ` Bruce Richardson
0 siblings, 0 replies; 3+ messages in thread
From: Bruce Richardson @ 2026-02-19 11:01 UTC (permalink / raw)
To: Ciara Loftus; +Cc: dev
On Wed, Feb 18, 2026 at 01:44:40PM +0000, Bruce Richardson wrote:
> On Wed, Feb 18, 2026 at 12:04:12PM +0000, Ciara Loftus wrote:
> > Commit 376faf4aaa16 ("net/idpf: enable simple Tx function") removed the
> > one assignment that was performed in the function
> > idpf_qc_tx_vec_avx512_setup. Without it, the function is useless and
> > results in USELESS_CALL defects reported by Coverity. Fix these by
> > removing the function and the logic that calls it in idpf and cpfl.
> >
> > Coverity issue: 501500
> > Coverity issue: 501501
> >
> > Fixes: 376faf4aaa16 ("net/idpf: enable simple Tx function")
> >
> > Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
> > ---
> > drivers/net/intel/cpfl/cpfl_rxtx.c | 16 ----------------
> > drivers/net/intel/idpf/idpf_common_rxtx.h | 4 ----
> > drivers/net/intel/idpf/idpf_common_rxtx_avx512.c | 10 ----------
> > drivers/net/intel/idpf/idpf_rxtx.c | 16 ----------------
> > 4 files changed, 46 deletions(-)
>
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Applied to dpdk-next-net-intel.
Thanks,
/Bruce
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-02-19 11:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-18 12:04 [PATCH] net/idpf: remove useless function Ciara Loftus
2026-02-18 13:44 ` Bruce Richardson
2026-02-19 11:01 ` Bruce Richardson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox