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)
commitfb3fba6b162aaa42aeba6e9034f3e92716c2a749
tree1c095a49d00f84de4e3184ddb896de36bcb92ef3
parentd79dca75c79680f52a27a7ee1b6ae75066f36b3e
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