Skip to contentSkip to conversation

jumbo frames

DISCUSSION Kip Macy 4 participants 7 messages May 11, 2005

lore
Share & tools
lore

Kip Macy

author
#0 lore raw

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

#1 lore raw
Quoted 3 lines · Kip Macy

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

#2 lore raw
Quoted 7 lines · Keir Fraser
Quoted 3 lines · Kip Macy

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?

Quoted 6 lines

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

#3 lore raw
Quoted 4 lines · Kip Macy
Quoted 4 lines
Quoted 3 lines

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?

Quoted 8 lines
Quoted 6 lines

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

author
#4 lore raw
Quoted 8 lines
Quoted 2 lines

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

#5 lore raw
In reply to Keir Fraser
Quoted 10 lines · Keir Fraser
Quoted 3 lines · Kip Macy

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

author
#6 lore raw
Quoted 5 lines

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