All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Haigh <netwiz@crc.id.au>
To: xen-devel@lists.xen.org
Subject: Re: Is: SKB_MAX_LEN bites again. Was: Re: bug disabling guest interface
Date: Wed, 13 Mar 2013 02:05:14 +1100	[thread overview]
Message-ID: <513F442A.3030307@crc.id.au> (raw)
In-Reply-To: <1363100173.32410.3.camel@zakaz.uk.xensource.com>

On 03/13/2013 01:56 AM, Ian Campbell wrote:
> On Tue, 2013-03-12 at 14:49 +0000, Konrad Rzeszutek Wilk wrote:
>> On Fri, Mar 08, 2013 at 11:09:56PM +0100, Jacek Milewicz wrote:
>>>>>> Is there any further information on a possible fix for this?
>>> Thoughts?
>>>>>> Ideas? As it seems to be hitting multiple sites, I'd like to get it
>>>>> fixed asap...
>>>>>
>>>>> There are 3 ways I can see this fixed:
>>>>> - update guests so all have same MAX_SKB_FRAGS (that includes windows
>>>>> drivers (windows drivers use 19 for MAX_SKB_FRAGS)) -add some sort of
>>>>> negotiation between host and guest
>>>>> - change MAX_SKB_FRAGS to 19 to accommodate all guests
>>>>>
>>>>> Unfortunately first one requires changes to the guest and most don't
>>>>> have that luxury. So the only way I see it could be fixed without
>>>>> breaking compatibility even more  is
>>>>
>>>> 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.
>>>>
>>>> Annie, Wei, Ian - were there some RFC patches floating around for this?
>>>>
>>>
>>> As much as I agree that negotiation is the best option in long term. It
>>> relies on people upgrading their kernels - and this is not the case (only
>>> people running kernels from before 2011-12-23 are affected by this bug
>>> (I'm not sure about other platforms)).
>>> And in a lot of cases (VPS providers) there is no easy way to upgrade
>>> guest kernels.
>>
>> Sure. The other option in the xen-netback might be a configurable option
>> to let net-back know that it is running with older guests which expect
>> 18 size MAX_SKB_FRAGS. That way we have the negotiation part, the code to
>> deal with backend MAX_SKB_FRAGS != frontend MAX_SKB_FRAGS and the value that
>> the system admin provides.
>
> I think this is over complicating things. netback can and should be
> modified to be able to cope with guests using frags == 18 (or larger)
> even if it only itself supports frags == 16 by coalescing things in the
> obvious way. This works for all guest supplied frames up to 64K in size,
> regardless of the number of slots they use to represent that 64K.

On this, while we just hacked this in the kernel source to increase 
MAX_SKB_FRAGS to 19, I believe Jacek Milewicz tested 18 to work fine on 
linux guests, but it seems Windows guests would still fail unless it was 
increased to 19.

-- 
Steven Haigh

Email: netwiz@crc.id.au
Web: https://www.crc.id.au
Phone: (03) 9001 6090 - 0412 935 897
Fax: (03) 8338 0299

  reply	other threads:[~2013-03-12 15:05 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-08  8:46 bug disabling guest interface Steven Haigh
2013-03-08 19:36 ` Jacek Milewicz
2013-03-08 20:36   ` Is: SKB_MAX_LEN bites again. Was: " Konrad Rzeszutek Wilk
2013-03-08 22:09     ` Jacek Milewicz
2013-03-09  2:19       ` Steven Haigh
2013-03-12 14:49       ` Konrad Rzeszutek Wilk
2013-03-12 14:56         ` Ian Campbell
2013-03-12 15:05           ` Steven Haigh [this message]
2013-03-12 15:08             ` Ian Campbell
2013-03-12 22:19               ` James Harper
2013-03-13  4:09                 ` jacek burghardt
2013-03-12 14:49       ` Konrad Rzeszutek Wilk
2013-03-09  2:57     ` Ian Campbell
2013-03-09  3:16       ` Steven Haigh
2013-03-09 12:53       ` Sander Eikelenboom
2013-03-10  4:58         ` ANNIE LI
2013-03-10  4:49       ` ANNIE LI
2013-03-12 11:39         ` Ian Campbell
2013-03-10 19:18       ` Wei Liu
2013-03-12 11:40         ` Ian Campbell
2013-03-12 12:18           ` Wei Liu
2013-03-12 15:07             ` ANNIE LI
2013-03-12 15:25               ` Wei Liu
2013-03-12 20:13                 ` Wei Liu
2013-03-12 21:08                   ` Wei Liu
2013-03-13  6:44                   ` annie li
2013-03-13  9:43                   ` Ian Campbell
2013-03-13 11:24                     ` Wei Liu
2013-03-13  6:22                 ` annie li
2013-03-13 11:26                   ` Wei Liu
2013-03-10  4:48     ` ANNIE LI
     [not found] <CAHyyzzTtK+LbxOh2r_X0=Zd2FsTxoAiLLaWahv5FY-QZnQxhLQ@mail.gmail.com>
     [not found] ` <CAHyyzzSO0vY3LquDjXVAeV3U9sLnAY28+iADzsOLFkMGcJHLOQ@mail.gmail.com>
     [not found]   ` <CAHyyzzSDqmBNWmyRKFijei8YrJD5i40AJ9mcxxnme9CeCLZX2g@mail.gmail.com>
     [not found]     ` <CAHyyzzQcjzeWv-Z6SBOb8Ra0u6BOMzjKV3Ze482rMmMHkAMccw@mail.gmail.com>
     [not found]       ` <CAHyyzzQsh30y7-4M1xmJc+8p-EcqS0+jaibpTrXxTQi92iGDgw@mail.gmail.com>
2013-04-10 15:28         ` (no subject) jacek burghardt
     [not found]           ` <20130411010344.GY11427@reaktio.net>
2013-04-11  7:31             ` Is: SKB_MAX_LEN bites again. Was: Re: bug disabling guest interface Brian Menges

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=513F442A.3030307@crc.id.au \
    --to=netwiz@crc.id.au \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.