]> git.baikalelectronics.ru Git - kernel.git/commit
Drivers: hv: ring_buffer: count on wrap around mappings in get_next_pkt_raw() (v2)
authorVitaly Kuznetsov <vkuznets@redhat.com>
Sun, 6 Nov 2016 21:14:05 +0000 (13:14 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Nov 2016 09:01:16 +0000 (10:01 +0100)
commitf21862cb9ea9806680441c1a0d9b22d7613d7ca5
tree4a088be049aeeb9b58a915f05584ca63894a6be8
parent9360030c772c0cd7564eaee851338828db3c9b82
Drivers: hv: ring_buffer: count on wrap around mappings in get_next_pkt_raw() (v2)

With wrap around mappings in place we can always provide drivers with
direct links to packets on the ring buffer, even when they wrap around.
Do the required updates to get_next_pkt_raw()/put_pkt_raw()

The first version of this commit was reverted (f07a1b657885) to deal with
cross-tree merge issues which are (hopefully) resolved now.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Tested-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/hyperv.h