Re: [PATCH net-next 2/8] skb: api to report errors for zero copy skbs

2012-10-30 Thread Michael S. Tsirkin
On Tue, Oct 30, 2012 at 11:44:16AM -0400, Vlad Yasevich wrote: > On 10/29/2012 11:49 AM, Michael S. Tsirkin wrote: > >Orphaning frags for zero copy skbs needs to allocate data in atomic > >context so is has a chance to fail. If it does we currently discard > >the skb which is safe, but we don't rep

Re: [PATCH net-next 2/8] skb: api to report errors for zero copy skbs

2012-10-30 Thread Vlad Yasevich
On 10/29/2012 11:49 AM, Michael S. Tsirkin wrote: Orphaning frags for zero copy skbs needs to allocate data in atomic context so is has a chance to fail. If it does we currently discard the skb which is safe, but we don't report anything to the caller, so it can not recover by e.g. disabling zero

[PATCH net-next 2/8] skb: api to report errors for zero copy skbs

2012-10-29 Thread Michael S. Tsirkin
Orphaning frags for zero copy skbs needs to allocate data in atomic context so is has a chance to fail. If it does we currently discard the skb which is safe, but we don't report anything to the caller, so it can not recover by e.g. disabling zero copy. Add an API to free skb reporting such errors