common/iavf: mark the global functions internal
PATCH 1/1 common/iavf: mark the global functions internal
According to ABI policy, the internal functions should have the new tag __rte_internal and linked into INTERNAL sessions.
--- drivers/common/iavf/iavf_prototype.h | 6 ++++++ drivers/common/iavf/rte_common_iavf_version.map | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-)
drivers/common/iavf/iavf_prototype.h +6 -0
@@ -17,7 +17,9 @@*/ /* adminq functions */ +__rte_internal enum iavf_status iavf_init_adminq(struct iavf_hw *hw); +__rte_internal enum iavf_status iavf_shutdown_adminq(struct iavf_hw *hw);enum iavf_status iavf_init_asq (struct iavf_hw *hw);enum iavf_status iavf_init_arq (struct iavf_hw *hw);
@@ -30,6 +32,7 @@ void iavf_free_adminq_asq(struct iavf_hw *hw);void iavf_free_adminq_arq (struct iavf_hw *hw);enum iavf_status iavf_validate_mac_addr (u8 *mac_addr);void iavf_adminq_init_ring_data (struct iavf_hw *hw); +__rte_internal enum iavf_status iavf_clean_arq_element(struct iavf_hw *hw,struct iavf_arq_event_info *e,u16 *events_pending);
@@ -61,6 +64,7 @@ enum iavf_status iavf_aq_set_rss_key(struct iavf_hw *hw,const char *iavf_aq_str (struct iavf_hw *hw,enum iavf_admin_queue_err aq_err);const char *iavf_stat_str (struct iavf_hw *hw,enum iavf_status stat_err); +__rte_internal enum iavf_status iavf_set_mac_type(struct iavf_hw *hw);extern struct iavf_rx_ptype_decoded iavf_ptype_lookup[];
@@ -76,9 +80,11 @@ void iavf_acquire_spinlock(struct iavf_spinlock *sp);void iavf_release_spinlock (struct iavf_spinlock *sp);void iavf_destroy_spinlock (struct iavf_spinlock *sp); +__rte_internal void iavf_vf_parse_hw_config(struct iavf_hw *hw,struct virtchnl_vf_resource *msg);enum iavf_status iavf_vf_reset (struct iavf_hw *hw); +__rte_internal enum iavf_status iavf_aq_send_msg_to_pf(struct iavf_hw *hw, enum virtchnl_ops v_opcode, enum iavf_status v_retval,
drivers/common/iavf/rte_common_iavf_version.map +1 -1
@@ -1,4 +1,4 @@ -DPDK_21 { +INTERNAL { global: iavf_aq_send_msg_to_pf;
Signature · 1 line
2.28.0
PATCH v2 1/1 common/iavf: mark internal symbols
According to ABI policy, the internal functions should have the new tag __rte_internal and linked into INTERNAL sessions.
---
v2: update the commit title
--- drivers/common/iavf/iavf_prototype.h | 6 ++++++ drivers/common/iavf/rte_common_iavf_version.map | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-)
drivers/common/iavf/iavf_prototype.h +6 -0
@@ -17,7 +17,9 @@*/ /* adminq functions */ +__rte_internal enum iavf_status iavf_init_adminq(struct iavf_hw *hw); +__rte_internal enum iavf_status iavf_shutdown_adminq(struct iavf_hw *hw);enum iavf_status iavf_init_asq (struct iavf_hw *hw);enum iavf_status iavf_init_arq (struct iavf_hw *hw);
@@ -30,6 +32,7 @@ void iavf_free_adminq_asq(struct iavf_hw *hw);void iavf_free_adminq_arq (struct iavf_hw *hw);enum iavf_status iavf_validate_mac_addr (u8 *mac_addr);void iavf_adminq_init_ring_data (struct iavf_hw *hw); +__rte_internal enum iavf_status iavf_clean_arq_element(struct iavf_hw *hw,struct iavf_arq_event_info *e,u16 *events_pending);
@@ -61,6 +64,7 @@ enum iavf_status iavf_aq_set_rss_key(struct iavf_hw *hw,const char *iavf_aq_str (struct iavf_hw *hw,enum iavf_admin_queue_err aq_err);const char *iavf_stat_str (struct iavf_hw *hw,enum iavf_status stat_err); +__rte_internal enum iavf_status iavf_set_mac_type(struct iavf_hw *hw);extern struct iavf_rx_ptype_decoded iavf_ptype_lookup[];
@@ -76,9 +80,11 @@ void iavf_acquire_spinlock(struct iavf_spinlock *sp);void iavf_release_spinlock (struct iavf_spinlock *sp);void iavf_destroy_spinlock (struct iavf_spinlock *sp); +__rte_internal void iavf_vf_parse_hw_config(struct iavf_hw *hw,struct virtchnl_vf_resource *msg);enum iavf_status iavf_vf_reset (struct iavf_hw *hw); +__rte_internal enum iavf_status iavf_aq_send_msg_to_pf(struct iavf_hw *hw, enum virtchnl_ops v_opcode, enum iavf_status v_retval,
drivers/common/iavf/rte_common_iavf_version.map +1 -1
@@ -1,4 +1,4 @@ -DPDK_21 { +INTERNAL { global: iavf_aq_send_msg_to_pf;
Signature · 1 line
2.28.0
Re: [dpdk-dev] [PATCH v2] common/iavf: mark internal symbols
Quoted 78 lines
-----Original Message-----
From: Wang, Haiyue <[email protected]>
Sent: Saturday, August 15, 2020 12:31 AM
To: [email protected]
Cc: Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>; Wang, Haiyue <[email protected]>; Wu, Jingjing <[email protected]>; Xing, Beilei <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>
Subject: [PATCH v2] common/iavf: mark internal symbolsAccording to ABI policy, the internal functions should have the new tag
__rte_internaland linked into INTERNAL sessions.Signed-off-by Haiyue Wang <[email protected]>---
v2: update the commit title--- drivers/common/iavf/iavf_prototype.h | 6 ++++++ drivers/common/iavf/rte_common_iavf_version.map | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-)drivers/common/iavf/iavf_prototype.h +2
-0@@ -17,7 +17,9 @@*/ /* adminq functions */ +__rte_internal enum iavf_status iavf_init_adminq(struct iavf_hw *hw); +__rte_internal enum iavf_status iavf_shutdown_adminq(struct iavf_hw *hw); enum
iavf_statusiavf_init_asq(struct iavf_hw *hw); enumiavf_statusiavf_init_arq(struct iavf_hw *hw); @@ -30,6 +32,7 @@ voidiavf_free_adminq_asq(struct iavf_hw *hw); voidiavf_free_adminq_arq(struct iavf_hw *hw); enumiavf_statusiavf_validate_mac_addr(u8 *mac_addr); voidiavf_adminq_init_ring_data(struct iavf_hw *hw);drivers/common/iavf/iavf_prototype.h +1
-0+__rte_internal enum iavf_status iavf_clean_arq_element(struct iavf_hw *hw,struct iavf_arq_event_info *e,u16 *events_pending);@@ -61,6 +64,7 @@ enum iavf_status iavf_aq_set_rss_key(struct iavf_hw *hw,const char *iavf_aq_str(struct
iavf_hw*hw, enumiavf_admin_queue_erraq_err); const char *iavf_stat_str(structiavf_hw*hw, enumiavf_statusstat_err);+__rte_internal
enumiavf_statusiavf_set_mac_type(struct iavf_hw *hw);extern struct
iavf_rx_ptype_decodediavf_ptype_lookup[]; @@ -76,9 +80,11
@@ voidiavf_acquire_spinlock(struct iavf_spinlock *sp); voidiavf_release_spinlock(struct iavf_spinlock *sp); voidiavf_destroy_spinlock(struct iavf_spinlock *sp);drivers/common/iavf/iavf_prototype.h +1
-0+__rte_internal void iavf_vf_parse_hw_config(struct iavf_hw *hw,struct virtchnl_vf_resource *msg);enum iavf_status
iavf_vf_reset(struct iavf_hw *hw);drivers/common/iavf/iavf_prototype.h +1
-0+__rte_internal enum iavf_status iavf_aq_send_msg_to_pf(struct iavf_hw *hw, enum virtchnl_ops v_opcode, enum iavf_status v_retval,drivers/common/iavf/rte_common_iavf_version.map +1
-2@@ -1,4 +1,4 @@ -DPDK_21 { +INTERNAL { global: iavf_aq_send_msg_to_pf; --
Quoted 1 line
2.28.0
Ferruh Yigit
Acked-byRe: [dpdk-dev] [PATCH v2] common/iavf: mark internal symbols
Quoted 12 lines · Beilei
Quoted 12 lines
-----Original Message-----
From: Wang, Haiyue <[email protected]>
Sent: Saturday, August 15, 2020 12:31 AM
To: [email protected]
Cc: Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>; Wang, Haiyue <[email protected]>; Wu, Jingjing <[email protected]>; Xing, Beilei <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>
Subject: [PATCH v2] common/iavf: mark internal symbols
Quoted 7 lines
Quoted 4 lines
According to ABI policy, the internal functions should have the new tag
__rte_internaland linked into INTERNAL sessions.Signed-off-by Haiyue Wang <[email protected]>Acked-by Beilei Xing <[email protected]>
Zhang, Qi Z
AppliedRe: [dpdk-dev] [PATCH v2] common/iavf: mark internal symbols
Quoted 29 lines
-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Tuesday, August 18, 2020 11:48 PM
To: Xing, Beilei <[email protected]>; Wang, Haiyue <[email protected]>; [email protected]
Cc: Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>; Wu, Jingjing <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>
Subject: Re: [dpdk-dev] [PATCH v2] common/iavf: mark internal symbolsQuoted 16 lines · Beilei
Quoted 16 lines
-----Original Message-----
From: Wang, Haiyue <[email protected]>
Sent: Saturday, August 15, 2020 12:31 AM
To: [email protected]
Cc: Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>; Wang, Haiyue <[email protected]>; Wu, Jingjing <[email protected]>; Xing, Beilei <[email protected]>; Ray Kinsella <[email protected]>; Neil Horman <[email protected]>
Subject: [PATCH v2] common/iavf: mark internal symbolsAccording to ABI policy, the internal functions should have the new tag
__rte_internaland linked into INTERNAL sessions.
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Signed-off-by Haiyue Wang <[email protected]>Acked-by Beilei Xing <[email protected]>Acked-by Ferruh Yigit <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi