Re: [ovs-dev] [dpdk-dev] ovs-dpdk: placing the metadata

2015-03-26 Thread Olivier MATZ
Hi Zoltan, On 03/25/2015 07:57 PM, Zoltan Kiss wrote: I have some comments for the first patch: diff --git a/examples/vhost/main.c b/examples/vhost/main.c index c3fcb80..050f3ac 100644 --- a/examples/vhost/main.c +++ b/examples/vhost/main.c I've sent in a separate patch for this file, I think

Re: [ovs-dev] [dpdk-dev] ovs-dpdk: placing the metadata

2015-03-25 Thread Zoltan Kiss
Hi Olivier, On 25/03/15 17:04, Olivier MATZ wrote: Hi Zoltan, On 03/24/2015 06:42 PM, Zoltan Kiss wrote: Hi, I've noticed in lib/netdev-dpdk.c that __rte_pktmbuf_init() stores the packet metadata right after "struct rte_mbuf", and before the buffer data: /* start of buffer is just after

Re: [ovs-dev] [dpdk-dev] ovs-dpdk: placing the metadata

2015-03-25 Thread Olivier MATZ
Hi Zoltan, On 03/24/2015 06:42 PM, Zoltan Kiss wrote: Hi, I've noticed in lib/netdev-dpdk.c that __rte_pktmbuf_init() stores the packet metadata right after "struct rte_mbuf", and before the buffer data: /* start of buffer is just after mbuf structure */ m->buf_addr = (char *)m + siz