]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_mbuf/rte_mbuf.h
mbuf: fix debug checks for headroom and tailroom
[dpdk.git] / lib / librte_mbuf / rte_mbuf.h
index fe605c7a48a4b359a7f4911ed47d82892ec689e3..fbe8203de7618fe0a4a5e085a3858036512282e1 100644 (file)
@@ -1452,7 +1452,7 @@ static inline void rte_pktmbuf_refcnt_update(struct rte_mbuf *m, int16_t v)
  */
 static inline uint16_t rte_pktmbuf_headroom(const struct rte_mbuf *m)
 {
-       __rte_mbuf_sanity_check(m, 1);
+       __rte_mbuf_sanity_check(m, 0);
        return m->data_off;
 }
 
@@ -1466,7 +1466,7 @@ static inline uint16_t rte_pktmbuf_headroom(const struct rte_mbuf *m)
  */
 static inline uint16_t rte_pktmbuf_tailroom(const struct rte_mbuf *m)
 {
-       __rte_mbuf_sanity_check(m, 1);
+       __rte_mbuf_sanity_check(m, 0);
        return (uint16_t)(m->buf_len - rte_pktmbuf_headroom(m) -
                          m->data_len);
 }