net/ifc: fix build with Linux < 3.19
authorXiao Wang <xiao.w.wang@intel.com>
Mon, 8 Oct 2018 04:32:04 +0000 (12:32 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 8 Oct 2018 23:58:56 +0000 (01:58 +0200)
commit5f73c2670f1ea210ac536bb22422136030b86f37
tree19029aad35a63984c49de9ee8a40bdbe8af7e3d9
parent77b5311d0ece90b1c197c1dc0f38bc6dbdcc28a8
net/ifc: fix build with Linux < 3.19

The typedef of "__virtio16" is introduced into Linux kernel in v3.19.
To prevent build error on old kernel, this patch replaces the
"__virtio" usage with "uint16_t".

Fixes: d7fe5a2861e7 ("net/ifc: support live migration")

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/ifc/ifcvf_vdpa.c