[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: Zang Hongyong <zanghongyong@xxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcjEjmptqMSfYzCBEd2v7AAX8io7RQ==
  • Thread-topic: [Xen-devel] problem with netback netif copying_receiver flag

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.