net/virtio: remove duplicated port ID from virtio-user
authorDavid Marchand <david.marchand@redhat.com>
Mon, 1 Feb 2021 17:46:01 +0000 (18:46 +0100)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 31 Mar 2021 08:30:17 +0000 (10:30 +0200)
commit6564ddcd0cbfcc3bb0acacbbc0f1247eb52ad218
tree6fdf38c26362510fe4bc04c9b097eb7f9a28e6fb
parentdd0946f975bac65ab680adcd389295cc56ad78e1
net/virtio: remove duplicated port ID from virtio-user

The private virtio_user_dev structure embeds a virtio_hw which itself
contains the ethdev port_id.
Make use of it and remove the duplicate port_id field.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_user/vhost_user.c
drivers/net/virtio/virtio_user/virtio_user_dev.c
drivers/net/virtio/virtio_user/virtio_user_dev.h
drivers/net/virtio/virtio_user_ethdev.c