All of lore.kernel.org
 help / color / mirror / Atom feed
* jumbo frames
@ 2005-05-11  0:14 Kip Macy
  2005-05-11  6:21 ` Keir Fraser
  0 siblings, 1 reply; 8+ messages in thread
From: Kip Macy @ 2005-05-11  0:14 UTC (permalink / raw)
  To: xen-devel

What is the status of jumbo frame support in dom0 and domU? Unless
something has changed I know it isn't supported in domU, but shouldn't
it just work in dom0?


                     -Kip

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jumbo frames
  2005-05-11  0:14 jumbo frames Kip Macy
@ 2005-05-11  6:21 ` Keir Fraser
  2005-05-11  6:27   ` Kip Macy
  2005-05-11 18:55   ` Jon Mason
  0 siblings, 2 replies; 8+ messages in thread
From: Keir Fraser @ 2005-05-11  6:21 UTC (permalink / raw)
  To: Kip Macy; +Cc: xen-devel


On 11 May 2005, at 01:14, Kip Macy wrote:

> What is the status of jumbo frame support in dom0 and domU? Unless
> something has changed I know it isn't supported in domU, but shouldn't
> it just work in dom0?

I think it'll just work, but it's untested. If the jumbo area spans 
multiple memory pages then it needs to be allocated with something like 
dma_alloc_coherent, or be represented by a fragmented skbuff. (i.e., 
hopefully the network stack and drivers don't assume that kmalloc() 
always return physically contiguous memory extents).

  -- Keir

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jumbo frames
  2005-05-11  6:21 ` Keir Fraser
@ 2005-05-11  6:27   ` Kip Macy
  2005-05-11  6:28     ` Keir Fraser
  2005-05-11 18:55   ` Jon Mason
  1 sibling, 1 reply; 8+ messages in thread
From: Kip Macy @ 2005-05-11  6:27 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel

On Wed, 11 May 2005, Keir Fraser wrote:

> 
> On 11 May 2005, at 01:14, Kip Macy wrote:
> 
> > What is the status of jumbo frame support in dom0 and domU? Unless
> > something has changed I know it isn't supported in domU, but shouldn't
> > it just work in dom0?
> 
> I think it'll just work, but it's untested. If the jumbo area spans 
> multiple memory pages then it needs to be allocated with something like 
> dma_alloc_coherent, or be represented by a fragmented skbuff. (i.e., 
> hopefully the network stack and drivers don't assume that kmalloc() 
> always return physically contiguous memory extents).
> 

What all would need to change to support it for domUs?

				-Kip

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jumbo frames
  2005-05-11  6:27   ` Kip Macy
@ 2005-05-11  6:28     ` Keir Fraser
  2005-05-11 15:44       ` Kip Macy
  0 siblings, 1 reply; 8+ messages in thread
From: Keir Fraser @ 2005-05-11  6:28 UTC (permalink / raw)
  To: Kip Macy; +Cc: xen-devel


On 11 May 2005, at 07:27, Kip Macy wrote:

>>> What is the status of jumbo frame support in dom0 and domU? Unless
>>> something has changed I know it isn't supported in domU, but 
>>> shouldn't
>>> it just work in dom0?
>>
>> I think it'll just work, but it's untested. If the jumbo area spans
>> multiple memory pages then it needs to be allocated with something 
>> like
>> dma_alloc_coherent, or be represented by a fragmented skbuff. (i.e.,
>> hopefully the network stack and drivers don't assume that kmalloc()
>> always return physically contiguous memory extents).
>>
>
> What all would need to change to support it for domUs?

We need scatter-gather support on the device channel, and the frontend 
and backend both need to know how to queue and dequeue fragmented 
network buffers.

  -- Keir

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jumbo frames
  2005-05-11  6:28     ` Keir Fraser
@ 2005-05-11 15:44       ` Kip Macy
  0 siblings, 0 replies; 8+ messages in thread
From: Kip Macy @ 2005-05-11 15:44 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel, Kip Macy

> >
> > What all would need to change to support it for domUs?
> 
> We need scatter-gather support on the device channel, and the frontend
> and backend both need to know how to queue and dequeue fragmented
> network buffers.
> 
>   -- Keir

Is it anywhere on the roadmap?

      -Kip

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: jumbo frames
@ 2005-05-11 18:11 Ian Pratt
  0 siblings, 0 replies; 8+ messages in thread
From: Ian Pratt @ 2005-05-11 18:11 UTC (permalink / raw)
  To: Kip Macy, Keir Fraser; +Cc: xen-devel, Kip Macy

 
> > > What all would need to change to support it for domUs?
> > 
> > We need scatter-gather support on the device channel, and 
> the frontend 
> > and backend both need to know how to queue and dequeue fragmented 
> > network buffers.
> > 
> >   -- Keir
> 
> Is it anywhere on the roadmap?

Post 3.0. Having it working in dom0 is good enough for iSCSI.

Unfortunately, many of the drivers use pci_map_page even for jumbo
frames, which is defined as dma_map_page which uses page_to_phys and
assumes that only a single page is being mapped. 

I think we'll need to create another cache for jumbo frames and bless
them with xen_contig_memory in the ctor function. Hmm, I'm not sure that
ctor functions can return failure, though...

Ian 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jumbo frames
  2005-05-11  6:21 ` Keir Fraser
  2005-05-11  6:27   ` Kip Macy
@ 2005-05-11 18:55   ` Jon Mason
  2005-05-11 19:04     ` Kip Macy
  1 sibling, 1 reply; 8+ messages in thread
From: Jon Mason @ 2005-05-11 18:55 UTC (permalink / raw)
  To: xen-devel; +Cc: Kip Macy

On Wednesday 11 May 2005 01:21 am, Keir Fraser wrote:
> On 11 May 2005, at 01:14, Kip Macy wrote:
> > What is the status of jumbo frame support in dom0 and domU? Unless
> > something has changed I know it isn't supported in domU, but shouldn't
> > it just work in dom0?
>
> I think it'll just work, but it's untested. If the jumbo area spans
> multiple memory pages then it needs to be allocated with something like
> dma_alloc_coherent, or be represented by a fragmented skbuff. (i.e.,
> hopefully the network stack and drivers don't assume that kmalloc()
> always return physically contiguous memory extents).

I've actually wanted to look into this for a while.  

It seems to me that MTUs of ~4000 (1 page) should be fairly trivial to 
impliment, and should boost performance significantly (with no extra cost as 
we are using the full page anyway).  

Kip, if you don't want to do it, I will ;-)

Thanks,
Jon  

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: jumbo frames
  2005-05-11 18:55   ` Jon Mason
@ 2005-05-11 19:04     ` Kip Macy
  0 siblings, 0 replies; 8+ messages in thread
From: Kip Macy @ 2005-05-11 19:04 UTC (permalink / raw)
  To: Jon Mason; +Cc: xen-devel

> It seems to me that MTUs of ~4000 (1 page) should be fairly trivial to
> impliment, and should boost performance significantly (with no extra cost as
> we are using the full page anyway).
> 
> Kip, if you don't want to do it, I will ;-)

That would be awesome.

Let me know if you want some extra testing done for any patches.

          -Kip

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-05-11 19:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-11  0:14 jumbo frames Kip Macy
2005-05-11  6:21 ` Keir Fraser
2005-05-11  6:27   ` Kip Macy
2005-05-11  6:28     ` Keir Fraser
2005-05-11 15:44       ` Kip Macy
2005-05-11 18:55   ` Jon Mason
2005-05-11 19:04     ` Kip Macy
  -- strict thread matches above, loose matches on Subject: below --
2005-05-11 18:11 Ian Pratt

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.