net/virtio-user: fix port id type
authorZhiyong Yang <zhiyong.yang@intel.com>
Fri, 30 Mar 2018 08:31:50 +0000 (16:31 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Apr 2018 22:40:21 +0000 (00:40 +0200)
virtio-user port_id range should be increased from 8 bits to 16 bits.

Fixes: f8244c6399d9 ("ethdev: increase port id range")
Cc: stable@dpdk.org
Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_user/virtio_user_dev.h

index 64467b4..5f87557 100644 (file)
@@ -31,7 +31,7 @@ struct virtio_user_dev {
                                   */
        uint64_t        device_features; /* supported features by device */
        uint8_t         status;
-       uint8_t         port_id;
+       uint16_t        port_id;
        uint8_t         mac_addr[ETHER_ADDR_LEN];
        char            path[PATH_MAX];
        struct vring    vrings[VIRTIO_MAX_VIRTQUEUES];