Re: [dpdk-dev] [PATCH v2] mbuf: check sanity of data_len and pkt_len as well

2018-01-11 Thread Thomas Monjalon
14/12/2017 10:31, Olivier MATZ: > On Thu, Dec 14, 2017 at 09:50:25AM +0100, Olivier MATZ wrote: > > On Sun, Dec 10, 2017 at 12:39:18AM +0300, Ilya V. Matveychikov wrote: > > > Update rte_mbuf_sanity_check() to check sanity of data_len and pkt_len > > > fields. For segmented packets it is supposed t

Re: [dpdk-dev] [PATCH v2] mbuf: check sanity of data_len and pkt_len as well

2017-12-14 Thread Olivier MATZ
On Thu, Dec 14, 2017 at 09:50:25AM +0100, Olivier MATZ wrote: > On Sun, Dec 10, 2017 at 12:39:18AM +0300, Ilya V. Matveychikov wrote: > > 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 t

Re: [dpdk-dev] [PATCH v2] mbuf: check sanity of data_len and pkt_len as well

2017-12-14 Thread Olivier MATZ
On Sun, Dec 10, 2017 at 12:39:18AM +0300, Ilya V. Matveychikov wrote: > 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. Ma

[dpdk-dev] [PATCH v2] mbuf: check sanity of data_len and pkt_len as well

2017-12-09 Thread Ilya V. Matveychikov
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 --- lib/librte_mbuf/rte_mbuf.c | 23 +++ 1 file