Re: [ovs-dev] [net-next 7/7] openvswitch: Use skb_zerocopy() for upcall

2013-12-05 Thread Thomas Graf
On 12/03/13 at 09:43pm, Jesse Gross wrote: Thanks for merging a first set of patches > On Sat, Nov 30, 2013 at 4:21 AM, Thomas Graf wrote: > > diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c > > index 8eaa39a..867edf1 100644 > > --- a/net/openvswitch/datapath.c > > +++ b/net

Re: [ovs-dev] [net-next 7/7] openvswitch: Use skb_zerocopy() for upcall

2013-12-03 Thread Jesse Gross
On Sat, Nov 30, 2013 at 4:21 AM, Thomas Graf wrote: > diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c > index 8eaa39a..867edf1 100644 > --- a/net/openvswitch/datapath.c > +++ b/net/openvswitch/datapath.c > +static int queue_gso_packets(struct datapath *, struct net *, int dp_i

[ovs-dev] [net-next 7/7] openvswitch: Use skb_zerocopy() for upcall

2013-11-30 Thread Thomas Graf
Use of skb_zerocopy() can avoids the expensive call to memcpy() when copying the packet data into the Netlink skb. Completes checksum through skb_checksum_help() if needed. Zerocopy is only performed if user space supported unaligned Netlink messages. memory mapped netlink i/o is preferred over ze