|
From: | Vincenzo Maffione |
Subject: | Re: [Qemu-devel] [PATCH 1/5] net: extend NetClientInfo for offloading manipulations |
Date: | Mon, 13 Jan 2014 15:07:56 +0100 |
On Fri, Dec 13, 2013 at 01:04:59PM +0100, Vincenzo Maffione wrote:Please change the return type to bool. bool is easier to understand
> diff --git a/include/net/net.h b/include/net/net.h
> index 11e1468..f5b5bae 100644
> --- a/include/net/net.h
> +++ b/include/net/net.h
> @@ -50,6 +50,12 @@ typedef void (NetCleanup) (NetClientState *);
> typedef void (LinkStatusChanged)(NetClientState *);
> typedef void (NetClientDestructor)(NetClientState *);
> typedef RxFilterInfo *(QueryRxFilter)(NetClientState *);
> +typedef bool (HasUfo)(NetClientState *);
> +typedef int (HasVnetHdr)(NetClientState *);
since the reader can be sure the variable only takes true/false values.
Please change the return type to bool.
> +typedef int (HasVnetHdrLen)(NetClientState *, int);
[Prev in Thread] | Current Thread | [Next in Thread] |