[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

[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

[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

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

2015-03-24 Thread Zoltan Kiss
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 + sizeof(struct dp_packet); (struct dp_packet has the rte_mb