lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 31 May 2010 08:19:39 +0800
From:	Amos Kong <kongjianjun@...il.com>
To:	linux-kernel@...r.kernel.org
Cc:	rusty@...tcorp.com.au, davem@...emloft.net, kvm@...r.kernel.org
Subject: Re: About offload function of Virtio Nic

On Mon, May 31, 2010 at 7:44 AM, Amos Kong <kongjianjun@...il.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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists