Re: [PATCH char-misc 1/1] Drivers: hv: vmbus: Fix ring buffer signaling
From: Stephen Hemminger
Date: Sun Feb 11 2018 - 18:50:55 EST
On Sat, 10 Feb 2018 20:48:49 +0000
Michael Kelley <mhkelley@xxxxxxxxxxx> wrote:
> + u32 delta = rbi->ring_buffer->read_index < rbi->priv_read_index ?
> + (rbi->priv_read_index - rbi->ring_buffer->read_index) :
> + (rbi->ring_datasize - rbi->ring_buffer->read_index +
> + rbi->priv_read_index);
>
Would it would make sense for this to be a wrapper function like other ring operations?