WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] problem with netback netif copying_receiver flag

To: Zang Hongyong <zanghongyong@xxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] problem with netback netif copying_receiver flag
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Mon, 02 Jun 2008 09:55:33 +0100
Delivery-date: Mon, 02 Jun 2008 01:56:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080602084040.AE799136821@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcjEjmptqMSfYzCBEd2v7AAX8io7RQ==
Thread-topic: [Xen-devel] problem with netback netif copying_receiver flag
User-agent: Microsoft-Entourage/11.4.0.080122
Just in case rx_copy has a value other than 0 or 1. Since it's read from
xenstore it seemed worth sanitising it. It's not really very important or
strictly necessary.

 -- Keir

On 2/6/08 09:50, "Zang Hongyong" <zanghongyong@xxxxxxxxxx> wrote:

> hi,
> I'm confused with  !! when setting netback rx_copy flag.
> be->netif->copying_receiver = !!rx_copy
> here why use !! ?
> 
> why not just
> be->netif->copying_receiver = rx_copy
> 
> thanks in advance!
> 
> Zang Hongyong
> zanghongyong@xxxxxxxxxx
> 2008-06-02
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>