From: Rusty Russell Subject: Re: bug in virtio network driver? Date: Tue, 21 Aug 2007 19:09:37 +1000 Message-ID: <1187687377.19435.176.camel@localhost.localdomain> References: <200708211048.33534.borntraeger@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, virtualization To: Christian Borntraeger Return-path: In-Reply-To: <200708211048.33534.borntraeger-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org On Tue, 2007-08-21 at 10:48 +0200, Christian Borntraeger wrote: > Hello Rusty, > > I think I have found a problem in the virtio network driver. virtio_net > reclaims sent skbs on xmit. That means that there is always one skb > outstanding and the netdev packet statistic is always one packet to low. Hi Christian, Good catch! > One solution would be to use the xmit_done interrupt. Unfortunately this would > require additional locking as multiple interrupts can happen at two or more > cpus. Do you have any better ideas? The only reason that we don't do it in skb_xmit_done() is because kfree_skb() isn't supposed to be called from an interrupt. But there's dev_kfree_skb_any() which can be used. Cheers, Rusty. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/