net/virtio: use memseg contig walk instead of iteration
authorAnatoly Burakov <anatoly.burakov@intel.com>
Wed, 11 Apr 2018 12:30:10 +0000 (13:30 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 11 Apr 2018 17:53:57 +0000 (19:53 +0200)
commit746c346d76c47c47346e7a1168a2097fe6e77e80
tree4312aeb49d29c6e3bb04206d9cbc8f2b67108448
parent552afc420a676cea75118d9cc6aae9f1a0749b67
net/virtio: use memseg contig walk instead of iteration

Reduce dependency on internal details of EAL memory subsystem, and
simplify code.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Tested-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Tested-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Tested-by: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
drivers/net/virtio/virtio_user/vhost_kernel.c