lkml.org 
[lkml]   [2010]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: About offload function of Virtio Nic
From
On Mon, May 31, 2010 at 7:44 AM, Amos Kong <kongjianjun@gmail.com> wrote:
> Hello all,
>
> Can I ask some question of the offloading function with Virtio-NIC?
>
> I'm interested in KVM virtualization. The virtual NIC is different
> from real hardward. And there is also a big distance between
> Virtio-NIC and E1000-NIC.
> The offloading function of Virtio-NIC close related with the function
> of host's real hardware.
> Associate Feature bits:
> VIRTIO_NET_F_GUEST_...
> VIRTIO_NET_F_HOST_...
>
> ---------------------------------------------------
> command:
> enable rx: guest) # ethtool -K eth0
> enable tx: guest) # ethtool -K eth0
> enable gs: guest) # ethtool -K eth0
> enable tso: guest) # ethtool -K eth0
> enable gso: guest) # ethtool -K eth0
> enable lro: guest) # ethtool -K eth0
> enable gro: guest) # ethtool -K eth0

sorry , it should be

enable rx: guest) # ethtool -K eth0 rx on
enable tx: guest) # ethtool -K eth0 tx on
enable gs: guest) # ethtool -K eth0 gs on
enable tso: guest) # ethtool -K eth0 tso on
enable gso: guest) # ethtool -K eth0 gso on
enable lro: guest) # ethtool -K eth0 lro on
enable gro: guest) # ethtool -K eth0 gro on

It also works with my real hardware.

> Those steps work well with Virtual E1000-NIC, but it always fail when
> using Virtio-NIC.
>
> ---------------------------------------------------
> After setup, I have two check method. For example:
> 1. enable tso
> 2. check the output of 'ethtool -k eth0'
> 3. send large file from guest to host by scp, listen by tcpdump during
> transferring file. and check if there contains some large
> packet($length > 1514).
>
> The check method works with Virtual E1000-NIC, but it always fail when
> using Virtio-NIC.
>
> ---------------------------------------------------
> My question:
> 1. How to setup offloading function of Virtio-NIC?
> 2. How about my check method of offloading function(transferring file,
> check packet length by tcpdump)?
> 3. Is there some detail user guide for Virtio-NIC?
>
>
>
> Best Regards,
> Amos
>



--
个人主页搬家了,欢迎来串门 ;)
http://kongove.whostas.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2010-05-31 02:21    [W:0.289 / U:0.636 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site