virtio_ring: introduce debug helpers
authorTiwei Bie <tiwei.bie@intel.com>
Wed, 21 Nov 2018 10:03:22 +0000 (18:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Nov 2018 06:17:39 +0000 (22:17 -0800)
commit4d6a105eb534b8f1a5ef9215deb1932cd8abacc2
tree235ca0925d81e83dee4e0bbdcd6e3ebab4cfd336
parente593bf9751566e0ba5a055a976a4abd54101d572
virtio_ring: introduce debug helpers

Introduce debug helpers for last_add_time update, check and
invalid. They will be used by packed ring too.

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