virtio_ring: allocate desc state for split ring separately
authorTiwei Bie <tiwei.bie@intel.com>
Wed, 21 Nov 2018 10:03:24 +0000 (18:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Nov 2018 06:17:39 +0000 (22:17 -0800)
commitcbeedb72b97ad826e31e68e0717b763e2db0806d
tree680a42c10a299903c6e5d3f5d9d43e8c6cd020cf
parent2f18c2d153fb6fc889665688f266c780353002ec
virtio_ring: allocate desc state for split ring separately

Put the split ring's desc state into the .split sub-structure,
and allocate desc state for split ring separately, this makes
the code more readable and more consistent with what we will
do for 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