[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
<BL1PR21MB31150AFC712FD1B83F41C207BF41A@BL1PR21MB3115.namprd21.prod.outlook.com>
Date: Tue, 1 Jul 2025 18:37:00 +0000
From: Dexuan Cui <decui@...rosoft.com>
To: Paolo Abeni <pabeni@...hat.com>, "niuxuewei97@...il.com"
<niuxuewei97@...il.com>, KY Srinivasan <kys@...rosoft.com>, Haiyang Zhang
<haiyangz@...rosoft.com>, "wei.liu@...nel.org" <wei.liu@...nel.org>,
"sgarzare@...hat.com" <sgarzare@...hat.com>, "davem@...emloft.net"
<davem@...emloft.net>, "edumazet@...gle.com" <edumazet@...gle.com>,
"kuba@...nel.org" <kuba@...nel.org>, "horms@...nel.org" <horms@...nel.org>,
"linux-hyperv@...r.kernel.org" <linux-hyperv@...r.kernel.org>,
"virtualization@...ts.linux.dev" <virtualization@...ts.linux.dev>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [EXTERNAL] Re: [PATCH] hv_sock: Return the readable bytes in
hvs_stream_has_data()
> From: Paolo Abeni <pabeni@...hat.com>
> Sent: Tuesday, July 1, 2025 6:05 AM
> ...
> > static s64 hvs_stream_has_data(struct vsock_sock *vsk)
> > {
> > struct hvsock *hvs = vsk->trans;
> > + bool need_refill = !hvs->recv_desc;
> > s64 ret;
>
> Minor nit: when reposting please respect the reverse christmas tree
> order above moving 'need_refill' initialization after the following 'if'
> statement.
>
> /P
Thanks! Will do.
Powered by blists - more mailing lists