]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Drivers: hv: ring_buffer: count on wrap around mappings in get_next_pkt_raw()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 2 Sep 2016 12:58:22 +0000 (05:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Sep 2016 15:22:51 +0000 (17:22 +0200)
commitbb08d431a914984dee278e0e0482a2e6d620a482
tree9cfeaa3cc1b66b26ba273c8c9f63039bd9b4578b
parentf24f0b495b17df33c03f3b758b1461385e9f0e50
Drivers: hv: ring_buffer: count on wrap around mappings in get_next_pkt_raw()

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()

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