Re: [PATCH V5 2/6 net-next] netdevice.h: Add zero-copy flag in netdevice
From: Michał Mirosław <hidden>
Date: 2011-05-17 22:58:22
Also in:
kvm, lkml
From: Michał Mirosław <hidden>
Date: 2011-05-17 22:58:22
Also in:
kvm, lkml
W dniu 18 maja 2011 00:28 użytkownik Shirley Ma [off-list ref] napisał:
On Tue, 2011-05-17 at 23:48 +0200, Michał Mirosław wrote:quoted
2011/5/17 Shirley Ma [off-list ref]:quoted
Looks like to use a new flag requires more time/work. I am thinking whether we can just use HIGHDMA flag to enable zero-copy in macvtaptoquoted
avoid the new flag for now since mavctap uses real NICs as lowerdevice? Is there any other restriction besides requiring driver to not recycle the skb? Are there any drivers that recycle TX skbs?Not more other restrictions, skb clone is OK. pskb_expand_head() looks OK to me from code review.
Currently there is no drivers recycle TX skbs.
So why do you require the target device to have some flags at all? Do I understand correctly, that this zero-copy feature is about packets received from VMs? Best Regards, Michał Mirosław