From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH v2 15/15] net: invoke qemu_can_send_packet only before net queue sending function Date: Thu, 24 May 2012 14:02:26 +0200 Message-ID: <4FBE2352.7090401@redhat.com> References: <1337786045-2277-1-git-send-email-zwu.kernel@gmail.com> <1337786045-2277-16-git-send-email-zwu.kernel@gmail.com> <4FBD0995.8030907@redhat.com> <4FBE085E.3060104@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, stefanha@linux.vnet.ibm.com, linuxram@us.ibm.com, wuzhy@linux.vnet.ibm.com To: Zhi Yong Wu Return-path: Received: from mx1.redhat.com ([209.132.183.28]:53588 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756453Ab2EXMCe (ORCPT ); Thu, 24 May 2012 08:02:34 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Il 24/05/2012 13:58, Zhi Yong Wu ha scritto: >> > But you will copy packets uselessly. The code before the patch simply >> > left them on the tap file descriptor. This is better because it >> > involves the kernel in flow control. You are introducing "bufferbloat". > You are correct, but can_send_packet will be invoked twice for one > packet delivery. Doesn't matter, it's cheap. Paolo