aboutsummaryrefslogtreecommitdiffstats
path: root/src/framework/common/base
diff options
context:
space:
mode:
Diffstat (limited to 'src/framework/common/base')
-rw-r--r--src/framework/common/base/include/common/common_func.h17
-rw-r--r--src/framework/common/base/include/common/common_mem_api.h5
2 files changed, 19 insertions, 3 deletions
diff --git a/src/framework/common/base/include/common/common_func.h b/src/framework/common/base/include/common/common_func.h
index fdf2802..2b84b7a 100644
--- a/src/framework/common/base/include/common/common_func.h
+++ b/src/framework/common/base/include/common/common_func.h
@@ -93,6 +93,23 @@
#define common_memzone_data_lookup_name nscomm_memzone_data_lookup_name
#define common_dump_stack rte_dump_stack
+#define COMMON_PKTMBUF_HEADROOM RTE_PKTMBUF_HEADROOM
+
+#define common_pktmbuf_mtod rte_pktmbuf_mtod
+#define common_memcpy rte_memcpy
+#define common_spinlock_try_lock_with_pid dmm_spinlock_try_lock_with_pid
+#define common_spinlock_unlock rte_spinlock_unlock
+#define common_atomic64_t rte_atomic64_t
+#define common_atomic64_inc rte_atomic64_inc
+#define common_atomic64_read rte_atomic64_read
+#define common_atomic64_dec rte_atomic64_dec
+#define common_mbuf_refcnt_set rte_mbuf_refcnt_set
+#define common_mbuf_refcnt_read rte_mbuf_refcnt_read
+#define common_exit rte_exit
+#define COMMON_CACHE_LINE_SIZE RTE_CACHE_LINE_SIZE
+#define common_eal_process_type rte_eal_process_type
+#define COMMON_PROC_PRIMARY RTE_PROC_PRIMARY
+
#endif
#endif // _RTE_COMM_FUNC_H_
diff --git a/src/framework/common/base/include/common/common_mem_api.h b/src/framework/common/base/include/common/common_mem_api.h
index 9eb4344..d143732 100644
--- a/src/framework/common/base/include/common/common_mem_api.h
+++ b/src/framework/common/base/include/common/common_mem_api.h
@@ -75,6 +75,7 @@ typedef s8_t err_t;
void sys_sem_signal_s_v2 (sys_sem_t_v2 sem);
void sys_sem_init_v2 (sys_sem_t_v2 sem);
+u32_t sys_arch_sem_trywait_v2 (sys_sem_t_v2 * sem);
u32_t sys_arch_sem_wait_s_v2 (sys_sem_t_v2 sem);
@@ -90,7 +91,7 @@ get_sys_pid ()
}
pid_t updata_sys_pid ();
-long sys_now (void);
+u32_t sys_now (void);
#define sys_sem_t sys_sem_t_v2
#define sys_sem_st sys_sem_st_v2
@@ -126,9 +127,7 @@ sys_arch_lock_with_pid_v2 (sys_sem_t_v2 sem)
#define NSTACK_SEM_MALLOC(sys_sem,count) \
{ \
rte_spinlock_init(&(sys_sem)); \
- /*lint -e506*/\
if (!(count)) \
- /*lint +e506*/\
{ \
rte_spinlock_lock(&(sys_sem)); \
} \