mbuf: check sanity of data and packet lengths
authorIlya V. Matveychikov <matvejchikov@gmail.com>
Sat, 9 Dec 2017 21:39:18 +0000 (00:39 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 11 Jan 2018 23:37:07 +0000 (00:37 +0100)
commit4ba9f1f910d3c7658ed857893dfb11027e87f85e
tree9ad46f7554ba6fb95d37223bb9480f526c7a0f14
parentfce71ed2d2f18f7afa71f06fc9926c79676a98f9
mbuf: check sanity of data and packet lengths

Update rte_mbuf_sanity_check() to check sanity of data_len and pkt_len
fields. For segmented packets it is supposed that head's pkt_len field
should be the sum of all segments data_len values.

Signed-off-by: Ilya V. Matveychikov <matvejchikov@gmail.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mbuf/rte_mbuf.c