On Wed, Jun 4, 2014 at 1:49 PM, Ryan Wilson <wr...@nicira.com> wrote: > When a bridge of datatype type netdev receives a packet, it copies the > packet from the NIC to a buffer in userspace. Currently, when making > an upcall, the packet is again copied to the upcall's buffer. However, > this extra copy is not necessary when the datapath exists in userspace > as the upcall can directly access the packet data. > > This patch eliminates this extra copy of the packet data in most cases. > In cases where the packet may still be used later by callers of > dp_netdev_execute_actions, making a copy of the packet data is still > necessary. > > This patch also adds a dpdk_buf field to 'struct ofpbuf' when using > DPDK. This field holds a pointer to the allocated DPDK buffer in the > rte_mempool. Thus, an upcall packet ofpbuf allocated on the stack can > now share data and free memory of a rte_mempool allocated ofpbuf. > > Signed-off-by: Ryan Wilson <wr...@nicira.com> > Acked-by: Jarno Rajahalme <jrajaha...@nicira.com> > Acked-by: Pravin B Shelar <pshe...@nicira.com>
Thanks. I shortened subject line further and pushed it to master. --Pravin. _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev