Re: [dpdk-dev] [PATCH 1/3] mbuf: add sanity checks on segment metadata

2018-10-09 Thread Olivier Matz
Hi David, On Thu, Sep 13, 2018 at 08:55:40AM +0200, David Marchand wrote: > Hello Yongseok, > > On Tue, Sep 11, 2018 at 8:16 PM, Yongseok Koh wrote: > > > >> On Sep 9, 2018, at 10:45 PM, David Marchand > >> wrote: > >> > >> Add some basic checks on the segments offset and length metadata: > >>

Re: [dpdk-dev] [PATCH 1/3] mbuf: add sanity checks on segment metadata

2018-09-12 Thread David Marchand
Hello Yongseok, On Tue, Sep 11, 2018 at 8:16 PM, Yongseok Koh wrote: > >> On Sep 9, 2018, at 10:45 PM, David Marchand wrote: >> >> Add some basic checks on the segments offset and length metadata: >> always funny to have a < 0 tailroom cast to uint16_t ;-). >> >> Signed-off-by: David Marchand >

Re: [dpdk-dev] [PATCH 1/3] mbuf: add sanity checks on segment metadata

2018-09-11 Thread Yongseok Koh
> On Sep 9, 2018, at 10:45 PM, David Marchand wrote: > > Add some basic checks on the segments offset and length metadata: > always funny to have a < 0 tailroom cast to uint16_t ;-). > > Signed-off-by: David Marchand > --- > lib/librte_mbuf/rte_mbuf.c | 5 + > 1 file changed, 5 insertions(

[dpdk-dev] [PATCH 1/3] mbuf: add sanity checks on segment metadata

2018-09-09 Thread David Marchand
Add some basic checks on the segments offset and length metadata: always funny to have a < 0 tailroom cast to uint16_t ;-). Signed-off-by: David Marchand --- lib/librte_mbuf/rte_mbuf.c | 5 + 1 file changed, 5 insertions(+) diff --git a/lib/librte_mbuf/rte_mbuf.c b/lib/librte_mbuf/rte_mbuf.