problem with netback netif copying_receiver flag
hi,
I'm confused with !! when setting netback rx_copy flag. be->netif->copying_receiver = !!rx_copy
here why use !! ?
why not justbe->netif->copying_receiver = rx_copy
thanks in advance!
Zang Hongyong
[email protected]
2008-06-02
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
Quoted 19 lines · Zang Hongyong
hi,
I'm confused with !! when setting netbackrx_copyflag.be->netif->copying_receiver= !!rx_copy
here why use !! ?why not just
be->netif->copying_receiver=rx_copythanks in advance!
Zang Hongyong
[email protected]
2008-06-02_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel