qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1/5] net: extend NetClientInfo for offloading ma


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

Ok.
I did not include those modifications into the patch in order to avoid modifications to the TAP netdev.


2014/1/13 Stefan Hajnoczi <address@hidden>
On Fri, Dec 13, 2013 at 01:04:59PM +0100, Vincenzo Maffione wrote:
> 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 *);

Please change the return type to bool.  bool is easier to understand
since the reader can be sure the variable only takes true/false values.

> +typedef int (HasVnetHdrLen)(NetClientState *, int);

Please change the return type to bool.



--
Vincenzo Maffione

reply via email to

[Prev in Thread] Current Thread [Next in Thread]