[PATCH char-misc 1/1] Drivers: hv: vmbus: Fix ring buffer signaling
Stephen Hemminger
stephen at networkplumber.org
Sun Feb 11 23:50:47 UTC 2018
On Sat, 10 Feb 2018 20:48:49 +0000
Michael Kelley <mhkelley at outlook.com> 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?
More information about the devel
mailing list