vhost: rename structs for enabling client mode
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Fri, 6 May 2016 20:13:22 +0000 (04:13 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 22 Jun 2016 07:44:21 +0000 (09:44 +0200)
commit9ebcd4f9c74ed5d873932be0e29590b9a13e48c7
tree5e216a0d507b616ce9cedf1bb28224d96b8be369
parent7fd5dde987cf1ffa709516a405ff4e7db13053fa
vhost: rename structs for enabling client mode

DPDK vhost-user just acts as server so far, so, using a struct named
as "vhost_server" is okay. However, if we add client mode, it doesn't
make sense any more. Here renames it to "vhost_user_socket".

There was no obvious wrong about "connfd_ctx", but I think it's obviously
better to rename it to "vhost_user_connection", as it does represent
a connection, a connection between the backend (DPDK) and the frontend
(QEMU).

Similarly, few more renames are taken, such as "vserver_new_vq_conn"
to "vhost_user_new_connection".

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
lib/librte_vhost/vhost_user/vhost-net-user.c
lib/librte_vhost/vhost_user/vhost-net-user.h