kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* virtio-net: how to prevent receiving big packages?
@ 2013-11-03  8:07 wangsitan
  2013-11-04  4:35 ` Jason Wang
  0 siblings, 1 reply; 3+ messages in thread
From: wangsitan @ 2013-11-03  8:07 UTC (permalink / raw)
  To: kvm

Hi all,

A virtual net interface using virtio_net with TSO on may send big TCP packets (up to 64KB). The receiver will get big packets if it's virtio_net, too. But it will get common packets (according to MTU) if the receiver is e1000 (who re-packaged the data?). 

The transfer with big packets is more efficient. But there's something wrong with my "receiver" vm whose net-core has been modified. Strange behaviours came out when it received big packets.

I will look at problems on the modified kernel later. What I want to do now is turning off the feature "can receive big packets" of virtio_net in the guest vm (just like I'm using e1000). Is there an easy way to disable it? Or should I change some code in guest's virtio_net?


Thanks a lot.

--
Best Regards
Wangsitan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: virtio-net: how to prevent receiving big packages?
  2013-11-03  8:07 virtio-net: how to prevent receiving big packages? wangsitan
@ 2013-11-04  4:35 ` Jason Wang
  2013-11-04  5:05   ` Jason Wang
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Wang @ 2013-11-04  4:35 UTC (permalink / raw)
  To: wangsitan, kvm

On 11/03/2013 04:07 PM, wangsitan wrote:
> Hi all,
>
> A virtual net interface using virtio_net with TSO on may send big TCP packets (up to 64KB). The receiver will get big packets if it's virtio_net, too. But it will get common packets (according to MTU) if the receiver is e1000 (who re-packaged the data?). 
>
> The transfer with big packets is more efficient. But there's something wrong with my "receiver" vm whose net-core has been modified. Strange behaviours came out when it received big packets.
>
> I will look at problems on the modified kernel later. What I want to do now is turning off the feature "can receive big packets" of virtio_net in the guest vm (just like I'm using e1000). Is there an easy way to disable it? Or should I change some code in guest's virtio_net?

You can disable the feature of VIRTIO_NET_F_HOST_TSO4 and
VIRTIO_NET_F_HOST_TSO6 by specifying host_tso4=off,guest_tso6=off in
qemu command line.
>
> Thanks a lot.
>
> --
> Best Regards
> Wangsitan
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: virtio-net: how to prevent receiving big packages?
  2013-11-04  4:35 ` Jason Wang
@ 2013-11-04  5:05   ` Jason Wang
  0 siblings, 0 replies; 3+ messages in thread
From: Jason Wang @ 2013-11-04  5:05 UTC (permalink / raw)
  To: wangsitan, kvm

On 11/04/2013 12:35 PM, Jason Wang wrote:
> On 11/03/2013 04:07 PM, wangsitan wrote:
>> Hi all,
>>
>> A virtual net interface using virtio_net with TSO on may send big TCP packets (up to 64KB). The receiver will get big packets if it's virtio_net, too. But it will get common packets (according to MTU) if the receiver is e1000 (who re-packaged the data?). 
>>
>> The transfer with big packets is more efficient. But there's something wrong with my "receiver" vm whose net-core has been modified. Strange behaviours came out when it received big packets.
>>
>> I will look at problems on the modified kernel later. What I want to do now is turning off the feature "can receive big packets" of virtio_net in the guest vm (just like I'm using e1000). Is there an easy way to disable it? Or should I change some code in guest's virtio_net?
> You can disable the feature of VIRTIO_NET_F_HOST_TSO4 and
> VIRTIO_NET_F_HOST_TSO6 by specifying host_tso4=off,guest_tso6=off in
> qemu command line.

Speak too fast, this is for sender. For receiver, you can do it by
specifying guest_tso4=off,guest_tso6=off in qemu command line.
>> Thanks a lot.
>>
>> --
>> Best Regards
>> Wangsitan
>> --
>> To unsubscribe from this list: send the line "unsubscribe kvm" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-04  5:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-03  8:07 virtio-net: how to prevent receiving big packages? wangsitan
2013-11-04  4:35 ` Jason Wang
2013-11-04  5:05   ` Jason Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).