[PATCH 2/2] vhost: refactor to follow new naming convention
Xia, Chenbo
chenbo.xia at intel.com
Thu Mar 9 04:03:41 CET 2023
Hi Nobuhiro,
Thanks for the work, check comments inline.
> -----Original Message-----
> From: Nobuhiro MIKI <nmiki at yahoo-corp.jp>
> Sent: Thursday, March 9, 2023 10:07 AM
> To: maxime.coquelin at redhat.com; Xia, Chenbo <chenbo.xia at intel.com>
> Cc: dev at dpdk.org; Nobuhiro MIKI <nmiki at yahoo-corp.jp>
> Subject: [PATCH 2/2] vhost: refactor to follow new naming convention
>
> Simply replace '_slave_' with '_backend_'.
>
> Signed-off-by: Nobuhiro MIKI <nmiki at yahoo-corp.jp>
> ---
> drivers/vdpa/ifc/ifcvf_vdpa.c | 2 +-
> lib/vhost/rte_vhost.h | 2 +-
> lib/vhost/version.map | 2 +-
> lib/vhost/vhost.c | 4 +--
> lib/vhost/vhost.h | 4 +--
> lib/vhost/vhost_user.c | 62 +++++++++++++++++------------------
> lib/vhost/vhost_user.h | 6 ++--
> 7 files changed, 41 insertions(+), 41 deletions(-)
>
> diff --git a/drivers/vdpa/ifc/ifcvf_vdpa.c b/drivers/vdpa/ifc/ifcvf_vdpa.c
> index fe4d278c5380..e4133568c1aa 100644
> --- a/drivers/vdpa/ifc/ifcvf_vdpa.c
> +++ b/drivers/vdpa/ifc/ifcvf_vdpa.c
> @@ -605,7 +605,7 @@ virtio_interrupt_handler(struct ifcvf_internal
> *internal)
...
>
> typedef struct VhostUserMemoryRegion {
> uint64_t guest_phys_addr;
> @@ -137,7 +137,7 @@ struct vhost_user_config {
> typedef struct VhostUserMsg {
> union {
> uint32_t master; /* a VhostUserRequest value */
> - uint32_t slave; /* a VhostUserSlaveRequest value*/
> + uint32_t backend; /* a VhostUserBackendRequest value*/
I think we should rename the master to front-end too (as QEMU spec says)
If you can also replace all the 'masters' with front-end too, we will appreciate
that much..
BTW, I guess this is your first patch, you need to update .mailmap file with your
name and email address.
Thanks,
Chenbo
> } request;
>
> #define VHOST_USER_VERSION_MASK 0x3
> --
> 2.31.1
More information about the dev
mailing list