]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_ring: cache whether we will use DMA API
authorTiwei Bie <tiwei.bie@intel.com>
Wed, 21 Nov 2018 10:03:26 +0000 (18:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Nov 2018 06:17:39 +0000 (22:17 -0800)
commit0abfd9ee78d343b3b09101072364c230c1ca653e
tree1c095a49d00f84de4e3184ddb896de36bcb92ef3
parent881528d42865116e9e79fdaef52a5a3d2dc8ece3
virtio_ring: cache whether we will use DMA API

Cache whether we will use DMA API, instead of doing the
check every time. We are going to check whether DMA API
is used more often in packed ring.

Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/virtio/virtio_ring.c