]> 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)
commit06ba0a0c970370afef6ddcf168d2c78d2e295411
tree1c095a49d00f84de4e3184ddb896de36bcb92ef3
parent0593adab18695558df57af7c434d66a328d18146
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