[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTim5zUD18vmMeNSzo2o8UGg8pr8l1uPbSYmHamq8@mail.gmail.com>
Date: Mon, 31 May 2010 07:44:52 +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: About offload function of Virtio Nic
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
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
--
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