Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Use arch-dependent include directory in DKMS confs
[deb_dpdk.git]
/
lib
/
librte_ip_frag
/
ip_frag_common.h
diff --git
a/lib/librte_ip_frag/ip_frag_common.h
b/lib/librte_ip_frag/ip_frag_common.h
index
cde6ed4
..
835e4f9
100644
(file)
--- a/
lib/librte_ip_frag/ip_frag_common.h
+++ b/
lib/librte_ip_frag/ip_frag_common.h
@@
-38,17
+38,9
@@
/* logging macros. */
#ifdef RTE_LIBRTE_IP_FRAG_DEBUG
/* logging macros. */
#ifdef RTE_LIBRTE_IP_FRAG_DEBUG
-
#define IP_FRAG_LOG(lvl, fmt, args...) RTE_LOG(lvl, USER1, fmt, ##args)
#define IP_FRAG_LOG(lvl, fmt, args...) RTE_LOG(lvl, USER1, fmt, ##args)
-
-#define IP_FRAG_ASSERT(exp) \
-if (!(exp)) { \
- rte_panic("function %s, line%d\tassert \"" #exp "\" failed\n", \
- __func__, __LINE__); \
-}
#else
#define IP_FRAG_LOG(lvl, fmt, args...) do {} while(0)
#else
#define IP_FRAG_LOG(lvl, fmt, args...) do {} while(0)
-#define IP_FRAG_ASSERT(exp) do {} while (0)
#endif /* IP_FRAG_DEBUG */
#define IPV4_KEYLEN 1
#endif /* IP_FRAG_DEBUG */
#define IPV4_KEYLEN 1
@@
-76,8
+68,8
@@
struct ip_frag_pkt * ip_frag_lookup(struct rte_ip_frag_tbl *tbl,
struct ip_frag_pkt **free, struct ip_frag_pkt **stale);
/* these functions need to be declared here as ip_frag_process relies on them */
struct ip_frag_pkt **free, struct ip_frag_pkt **stale);
/* these functions need to be declared here as ip_frag_process relies on them */
-struct rte_mbuf *
ipv4_frag_reassemble(const
struct ip_frag_pkt *fp);
-struct rte_mbuf *
ipv6_frag_reassemble(const
struct ip_frag_pkt *fp);
+struct rte_mbuf *
ipv4_frag_reassemble(
struct ip_frag_pkt *fp);
+struct rte_mbuf *
ipv6_frag_reassemble(
struct ip_frag_pkt *fp);