[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCHv1 net-next] xen-netback: remove unconditional pull_skb_tail in guest Tx path
On 04/11/14 21:43, Eric Dumazet wrote: > On Tue, 2014-11-04 at 16:17 -0500, David Miller wrote: > > >> >> Every protocol demux starts with pskb_may_pull() to pull frag data >> into the linear area, if necessary, before looking at headers. > > eth_get_headlen() might be relevant as well, to perform a single copy of > exactly all headers. In netback's case we need an estimate of the header length before reading any of the packet, since peeking at any frag would prevent any TLB flush avoidance. It might be useful to use eth_get_headlen() to adjust the estimate at runtime, but for now the fixed amount of 128 bytes is simple and seems good enough. David _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |