RE: [PATCH 1/3] Vmbus: Add function to report available ring buffer to write in total ring size percentage

From: Haiyang Zhang
Date: Fri Mar 23 2018 - 11:10:25 EST




> -----Original Message-----
> From: Long Li <longli@xxxxxxxxxxxxxxxxx>
> Sent: Thursday, March 22, 2018 8:16 PM
> To: KY Srinivasan <kys@xxxxxxxxxxxxx>; Haiyang Zhang
> <haiyangz@xxxxxxxxxxxxx>; Stephen Hemminger <sthemmin@xxxxxxxxxxxxx>;
> James E . J . Bottomley <JBottomley@xxxxxxxx>; Martin K . Petersen
> <martin.petersen@xxxxxxxxxx>; devel@xxxxxxxxxxxxxxxxxxxxxx; linux-
> scsi@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Cc: Long Li <longli@xxxxxxxxxxxxx>
> Subject: [PATCH 1/3] Vmbus: Add function to report available ring buffer to
> write in total ring size percentage
>
> From: Long Li <longli@xxxxxxxxxxxxx>
>
> Netvsc has a similar function to calculate how much ring buffer in percentage
> is available to write. This function is useful for storvsc and other vmbus devices.
>
> Define a similar function in vmbus to be used by storvsc.
>
> Signed-off-by: Long Li <longli@xxxxxxxxxxxxx>
> ---

Reviewed-by: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>