Re: [ovs-dev] [RFC 4/4] netlink: COW mmap Netlink messages to avoid memcpy()

2014-05-24 Thread Thomas Graf
On 05/23/14 at 09:57am, Ben Pfaff wrote: > On Fri, May 23, 2014 at 01:16:01AM +0200, Thomas Graf wrote: > > If the message was received via a shared memory ring the frame > > is usable as ofpbuf base directly without copying the buffer > > unnecessarily. A new destructor() callback is introduced wh

Re: [ovs-dev] [RFC 4/4] netlink: COW mmap Netlink messages to avoid memcpy()

2014-05-23 Thread Ben Pfaff
On Fri, May 23, 2014 at 01:16:01AM +0200, Thomas Graf wrote: > If the message was received via a shared memory ring the frame > is usable as ofpbuf base directly without copying the buffer > unnecessarily. A new destructor() callback is introduced which > allows marking the frame unused after the o

[ovs-dev] [RFC 4/4] netlink: COW mmap Netlink messages to avoid memcpy()

2014-05-22 Thread Thomas Graf
If the message was received via a shared memory ring the frame is usable as ofpbuf base directly without copying the buffer unnecessarily. A new destructor() callback is introduced which allows marking the frame unused after the ofpbuf has been uninitialized. Signed-off-by: Thomas Graf --- lib/n