]> git.itanic.dy.fi Git - linux-stable/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)
commitfa32ff6576623616c1751562edaed8c164ca5199
tree4a088be049aeeb9b58a915f05584ca63894a6be8
parentf2303f709fda0f3c212272195519a447a59af675
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 (65a532f3d50a) 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