These QMan and BMan helpers are only used inside the dpaa bus driver. The dpaa net, crypto and event drivers use the frame queue and buffer pool interfaces, which keep their exports.
Drop the internal exports and the matching __rte_internal tags. Signed-off-by: Stephen Hemminger <[email protected]> --- drivers/bus/dpaa/dpaa_bus_base_symbols.c | 13 ------------- drivers/bus/dpaa/include/fsl_bman.h | 1 - drivers/bus/dpaa/include/fsl_fman.h | 2 -- drivers/bus/dpaa/include/fsl_qman.h | 6 ------ drivers/bus/dpaa/include/fsl_usd.h | 2 -- drivers/bus/dpaa/include/netcfg.h | 2 -- 6 files changed, 26 deletions(-) diff --git a/drivers/bus/dpaa/dpaa_bus_base_symbols.c b/drivers/bus/dpaa/dpaa_bus_base_symbols.c index 5fe7b72ebc..d197c94e18 100644 --- a/drivers/bus/dpaa/dpaa_bus_base_symbols.c +++ b/drivers/bus/dpaa/dpaa_bus_base_symbols.c @@ -28,7 +28,6 @@ RTE_EXPORT_INTERNAL_SYMBOL(fman_if_get_fc_threshold) RTE_EXPORT_INTERNAL_SYMBOL(fman_if_set_fc_threshold) RTE_EXPORT_INTERNAL_SYMBOL(fman_if_get_fc_quanta) RTE_EXPORT_INTERNAL_SYMBOL(fman_if_set_fc_quanta) -RTE_EXPORT_INTERNAL_SYMBOL(fman_if_get_fdoff) RTE_EXPORT_INTERNAL_SYMBOL(fman_if_set_err_fqid) RTE_EXPORT_INTERNAL_SYMBOL(fman_if_set_ic_params) RTE_EXPORT_INTERNAL_SYMBOL(fman_if_set_fdoff) @@ -36,28 +35,21 @@ RTE_EXPORT_INTERNAL_SYMBOL(fman_if_set_maxfrm) RTE_EXPORT_INTERNAL_SYMBOL(fman_if_get_maxfrm) RTE_EXPORT_INTERNAL_SYMBOL(fman_if_get_sg_enable) RTE_EXPORT_INTERNAL_SYMBOL(fman_if_set_sg) -RTE_EXPORT_INTERNAL_SYMBOL(fman_if_discard_rx_errors) RTE_EXPORT_INTERNAL_SYMBOL(fman_if_receive_rx_errors) -RTE_EXPORT_INTERNAL_SYMBOL(netcfg_acquire) -RTE_EXPORT_INTERNAL_SYMBOL(netcfg_release) RTE_EXPORT_INTERNAL_SYMBOL(bman_new_pool) RTE_EXPORT_INTERNAL_SYMBOL(bman_free_bpid) RTE_EXPORT_INTERNAL_SYMBOL(bman_free_pool) RTE_EXPORT_INTERNAL_SYMBOL(bman_get_params) -RTE_EXPORT_INTERNAL_SYMBOL(bman_release) RTE_EXPORT_INTERNAL_SYMBOL(bman_acquire) RTE_EXPORT_INTERNAL_SYMBOL(bman_query_free_buffers) -RTE_EXPORT_INTERNAL_SYMBOL(bman_thread_irq) RTE_EXPORT_INTERNAL_SYMBOL(qman_alloc_fqid_range) RTE_EXPORT_INTERNAL_SYMBOL(qman_reserve_fqid_range) RTE_EXPORT_INTERNAL_SYMBOL(qman_alloc_pool_range) RTE_EXPORT_INTERNAL_SYMBOL(qman_alloc_cgrid_range) -RTE_EXPORT_INTERNAL_SYMBOL(qman_release_cgrid_range) RTE_EXPORT_INTERNAL_SYMBOL(dpaa_intr_enable) RTE_EXPORT_INTERNAL_SYMBOL(dpaa_intr_disable) RTE_EXPORT_INTERNAL_SYMBOL(dpaa_get_ioctl_version_number) RTE_EXPORT_INTERNAL_SYMBOL(dpaa_get_link_status) -RTE_EXPORT_INTERNAL_SYMBOL(dpaa_get_qm_channel_pool_num) RTE_EXPORT_INTERNAL_SYMBOL(dpaa_update_link_status) RTE_EXPORT_INTERNAL_SYMBOL(dpaa_update_link_speed) RTE_EXPORT_INTERNAL_SYMBOL(dpaa_restart_link_autoneg) @@ -69,7 +61,6 @@ RTE_EXPORT_INTERNAL_SYMBOL(qman_fq_portal_irqsource_add) RTE_EXPORT_INTERNAL_SYMBOL(qman_irqsource_remove) RTE_EXPORT_INTERNAL_SYMBOL(qman_fq_portal_irqsource_remove) RTE_EXPORT_INTERNAL_SYMBOL(qman_portal_poll_rx) -RTE_EXPORT_INTERNAL_SYMBOL(qman_clear_irq) RTE_EXPORT_INTERNAL_SYMBOL(qman_portal_dequeue) RTE_EXPORT_INTERNAL_SYMBOL(qman_dequeue) RTE_EXPORT_INTERNAL_SYMBOL(qman_dqrr_consume) @@ -77,15 +68,11 @@ RTE_EXPORT_INTERNAL_SYMBOL(qman_static_dequeue_add) RTE_EXPORT_INTERNAL_SYMBOL(qman_dca_index) RTE_EXPORT_INTERNAL_SYMBOL(qman_create_fq) RTE_EXPORT_INTERNAL_SYMBOL(qman_fq_fqid) -RTE_EXPORT_INTERNAL_SYMBOL(qman_fq_state) RTE_EXPORT_INTERNAL_SYMBOL(qman_init_fq) RTE_EXPORT_INTERNAL_SYMBOL(qman_retire_fq) RTE_EXPORT_INTERNAL_SYMBOL(qman_oos_fq) -RTE_EXPORT_INTERNAL_SYMBOL(qman_query_fq_np) RTE_EXPORT_INTERNAL_SYMBOL(qman_query_fq_frm_cnt) RTE_EXPORT_INTERNAL_SYMBOL(qman_set_vdq) -RTE_EXPORT_INTERNAL_SYMBOL(qman_volatile_dequeue) -RTE_EXPORT_INTERNAL_SYMBOL(qman_enqueue) RTE_EXPORT_INTERNAL_SYMBOL(qman_enqueue_multi) RTE_EXPORT_INTERNAL_SYMBOL(qman_enqueue_multi_fq) RTE_EXPORT_INTERNAL_SYMBOL(qman_modify_cgr) diff --git a/drivers/bus/dpaa/include/fsl_bman.h b/drivers/bus/dpaa/include/fsl_bman.h index fcf2f25257..8d4ef4a245 100644 --- a/drivers/bus/dpaa/include/fsl_bman.h +++ b/drivers/bus/dpaa/include/fsl_bman.h @@ -345,7 +345,6 @@ const struct bman_pool_params *bman_get_params(const struct bman_pool *pool); * @flags: bit-mask of BMAN_RELEASE_FLAG_*** options * */ -__rte_internal int bman_release(struct bman_pool *pool, const struct bm_buffer *bufs, u8 num, u32 flags); __rte_internal diff --git a/drivers/bus/dpaa/include/fsl_fman.h b/drivers/bus/dpaa/include/fsl_fman.h index 0af2fb259e..a4f6eb59fc 100644 --- a/drivers/bus/dpaa/include/fsl_fman.h +++ b/drivers/bus/dpaa/include/fsl_fman.h @@ -133,7 +133,6 @@ int fman_if_set_ic_params(struct fman_if *fm_if, const struct fman_if_ic_params *icp); /* Get interface fd->offset value */ -__rte_internal int fman_if_get_fdoff(struct fman_if *fm_if); /* Set interface fd->offset value */ @@ -160,7 +159,6 @@ void fman_if_set_maxfrm(struct fman_if *fm_if, uint16_t max_frm); void fman_if_set_dnia(struct fman_if *fm_if, uint32_t nia); /* discard error packets on rx */ -__rte_internal void fman_if_discard_rx_errors(struct fman_if *fm_if); __rte_internal diff --git a/drivers/bus/dpaa/include/fsl_qman.h b/drivers/bus/dpaa/include/fsl_qman.h index 59b41e17f0..12af1d8029 100644 --- a/drivers/bus/dpaa/include/fsl_qman.h +++ b/drivers/bus/dpaa/include/fsl_qman.h @@ -48,7 +48,6 @@ u16 dpaa_get_qm_channel_caam(void); __rte_internal u16 dpaa_get_qm_channel_pool(void); -__rte_internal u16 dpaa_get_qm_channel_pool_num(void); /* Portal processing (interrupt) sources */ @@ -1604,7 +1603,6 @@ u32 qman_fq_fqid(struct qman_fq *fq); * This captures the state, as seen by the driver, at the time the function * executes. */ -__rte_internal void qman_fq_state(struct qman_fq *fq, enum qman_fq_state *state, u32 *flags); /** @@ -1715,7 +1713,6 @@ int qman_query_fq_has_pkts(struct qman_fq *fq); * @fq: the frame queue object to be queried * @np: storage for the queried FQD fields */ -__rte_internal int qman_query_fq_np(struct qman_fq *fq, struct qm_mcr_queryfq_np *np); /** @@ -1754,7 +1751,6 @@ int qman_query_wq(u8 query_dedicated, struct qm_mcr_querywq *wq); * callback, or by waiting for the QMAN_FQ_STATE_VDQCR bit to disappear from the * "flags" retrieved from qman_fq_state(). */ -__rte_internal int qman_volatile_dequeue(struct qman_fq *fq, u32 flags, u32 vdqcr); /** @@ -1790,7 +1786,6 @@ int qman_volatile_dequeue(struct qman_fq *fq, u32 flags, u32 vdqcr); * of an already busy hardware resource by throttling many of the to-be-dropped * enqueues "at the source". */ -__rte_internal int qman_enqueue(struct qman_fq *fq, const struct qm_fd *fd, u32 flags); __rte_internal @@ -2071,7 +2066,6 @@ static inline int qman_alloc_cgrid(u32 *result) * @id: the base CGR ID of the range to deallocate * @count: the number of CGR IDs in the range */ -__rte_internal void qman_release_cgrid_range(u32 id, unsigned int count); static inline void qman_release_cgrid(u32 id) { diff --git a/drivers/bus/dpaa/include/fsl_usd.h b/drivers/bus/dpaa/include/fsl_usd.h index 183ddac8aa..d4e2ea139d 100644 --- a/drivers/bus/dpaa/include/fsl_usd.h +++ b/drivers/bus/dpaa/include/fsl_usd.h @@ -72,11 +72,9 @@ int bman_thread_fd(void); __rte_internal void qman_thread_irq(void); -__rte_internal void bman_thread_irq(void); __rte_internal void qman_fq_portal_thread_irq(struct qman_portal *qp); -__rte_internal void qman_clear_irq(void); /* Global setup */ diff --git a/drivers/bus/dpaa/include/netcfg.h b/drivers/bus/dpaa/include/netcfg.h index a7d4f54b17..842ce95d92 100644 --- a/drivers/bus/dpaa/include/netcfg.h +++ b/drivers/bus/dpaa/include/netcfg.h @@ -33,13 +33,11 @@ struct netcfg_info { * cfg_file: FMC config XML file * Returns the configuration information in newly allocated memory. */ -__rte_internal struct netcfg_info *netcfg_acquire(void); /* cfg_ptr: configuration information pointer. * Frees the resources allocated by the configuration layer. */ -__rte_internal void netcfg_release(struct netcfg_info *cfg_ptr); #ifdef RTE_LIBRTE_DPAA_DEBUG_DRIVER -- 2.53.0

