[v2,08/10] cpt: mark internal functions with __rte_internal
Checks
Commit Message
Identify functions in the cpt driver which are internal (based on
their not having an rte_ prefix) and tag them with __rte_internal
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: Jerin Jacob Kollanukkaran <jerinj@marvell.com>
CC: Bruce Richardson <bruce.richardson@intel.com>
CC: Thomas Monjalon <thomas@monjalon.net>
CC: Anoob Joseph <anoobj@marvell.com>
---
drivers/common/cpt/cpt_pmd_ops_helper.c | 4 ++--
drivers/common/cpt/cpt_pmd_ops_helper.h | 4 ++--
drivers/common/cpt/rte_common_cpt_version.map | 6 +++++-
3 files changed, 9 insertions(+), 5 deletions(-)
@@ -13,7 +13,7 @@
#define CPT_OFFSET_CONTROL_BYTES 8
int32_t
-cpt_pmd_ops_helper_get_mlen_direct_mode(void)
+__rte_internal cpt_pmd_ops_helper_get_mlen_direct_mode(void)
{
uint32_t len = 0;
@@ -27,7 +27,7 @@ cpt_pmd_ops_helper_get_mlen_direct_mode(void)
}
int
-cpt_pmd_ops_helper_get_mlen_sg_mode(void)
+__rte_internal cpt_pmd_ops_helper_get_mlen_sg_mode(void)
{
uint32_t len = 0;
@@ -20,7 +20,7 @@
*/
int32_t
-cpt_pmd_ops_helper_get_mlen_direct_mode(void);
+__rte_internal cpt_pmd_ops_helper_get_mlen_direct_mode(void);
/*
* Get size of contiguous meta buffer to be allocated when working in scatter
@@ -30,5 +30,5 @@ cpt_pmd_ops_helper_get_mlen_direct_mode(void);
* - length
*/
int
-cpt_pmd_ops_helper_get_mlen_sg_mode(void);
+__rte_internal cpt_pmd_ops_helper_get_mlen_sg_mode(void);
#endif /* _CPT_PMD_OPS_HELPER_H_ */
@@ -1,6 +1,10 @@
-DPDK_18.11 {
+INTERNAL {
global:
cpt_pmd_ops_helper_get_mlen_direct_mode;
cpt_pmd_ops_helper_get_mlen_sg_mode;
};
+
+DPDK_18.11 {
+ local: *;
+};