From: Wei Liu Subject: Re: Is: SKB_MAX_LEN bites again. Was: Re: bug disabling guest interface Date: Sun, 10 Mar 2013 19:18:38 +0000 Message-ID: <20130310191838.GA13011@zion.uk.xensource.com> References: <5139A56D.30107@crc.id.au> <00bf01ce1c34$395a4f20$ac0eed60$@jacekowski.org> <20130308203636.GA5422@phenom.dumpdata.com> <1362797836.8941.189.camel@hastur.hellion.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1362797836.8941.189.camel@hastur.hellion.org.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: 'Steven Haigh' , "Palagummi, Siva" , Konrad Rzeszutek Wilk , "xen-devel@lists.xen.org" , annie li , "msw@amazon.com" , Jacek Milewicz List-Id: xen-devel@lists.xenproject.org On Sat, Mar 09, 2013 at 02:57:16AM +0000, Ian Campbell wrote: > > > - change MAX_SKB_FRAGS to 19 to accommodate all guests > > Changing MAX_SKB_FRAGS is *not* an option upstream. This might be a > useful local hack but we need to drop the idea as a long term fix. > > > Ugh. The negotiations between host and guest is probably the best > > choice. The issues you are going to hit are that you might need > > to redo the skbs to match what the frontend's max is. > > IMHO the right fix is for netback to coalesce as it copies from the > frontend if it needs to do so, it is copying anyway so it should be > cheap enough. I thought we had discussed this and someone was working on > implementing it. If not Annie then perhaps it was Matt or Siva (both now > CC'd) > As a short term fix, can we use skb_linearize() if skb->nr_frags >= MAX_SKB_FRAGS? Wei.