vhost: declare device id as int
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Fri, 29 Apr 2016 20:45:51 +0000 (04:45 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 22 Jun 2016 06:59:54 +0000 (08:59 +0200)
commitc08a349006f7d26eb32152c34796532f5c7b046f
treebfb8fe74e29281cc6be15d593b75901ebfa87d58
parent550c9d27d1438c30a657016a0281fe8e7a133e53
vhost: declare device id as int

device_fh repsents the device id for a specific virtio net device.
Firstly, "int" would be big enough: we don't need 64 bit. Secondly,
this could let us avoid the ugly "%" PRIu64 ".." stuff.

And since ctx.fh is derived from device_fh, declare it as int, too.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Tested-by: Rich Lane <rich.lane@bigswitch.com>
Acked-by: Rich Lane <rich.lane@bigswitch.com>
examples/tep_termination/main.c
examples/tep_termination/vxlan_setup.c
examples/vhost/main.c
lib/librte_vhost/rte_virtio_net.h
lib/librte_vhost/vhost-net.h
lib/librte_vhost/vhost_cuse/vhost-net-cdev.c
lib/librte_vhost/vhost_cuse/virtio-net-cdev.c
lib/librte_vhost/vhost_rxtx.c
lib/librte_vhost/vhost_user/vhost-net-user.c
lib/librte_vhost/vhost_user/virtio-net-user.c
lib/librte_vhost/virtio-net.c