From: Maxime Coquelin Date: Thu, 20 Jun 2019 20:07:12 +0000 (+0200) Subject: vhost: log virtio and vhost-user negotiated features X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=906accb60bed5d9adc97bd07db8dce4ac0dc8df3;p=dpdk.git vhost: log virtio and vhost-user negotiated features Having this info logged by default when analysing bug reports has proved to be useful. Signed-off-by: Maxime Coquelin Reviewed-by: Tiwei Bie --- diff --git a/lib/librte_vhost/vhost_user.c b/lib/librte_vhost/vhost_user.c index c9e29ece8f..0b72648a5a 100644 --- a/lib/librte_vhost/vhost_user.c +++ b/lib/librte_vhost/vhost_user.c @@ -284,6 +284,8 @@ vhost_user_set_features(struct virtio_net **pdev, struct VhostUserMsg *msg, } else { dev->vhost_hlen = sizeof(struct virtio_net_hdr); } + RTE_LOG(INFO, VHOST_CONFIG, + "negotiated Virtio features: 0x%" PRIx64 "\n", dev->features); VHOST_LOG_DEBUG(VHOST_CONFIG, "(%d) mergeable RX buffers %s, virtio 1 %s\n", dev->vid, @@ -1406,6 +1408,9 @@ vhost_user_set_protocol_features(struct virtio_net **pdev, } dev->protocol_features = protocol_features; + RTE_LOG(INFO, VHOST_CONFIG, + "negotiated Vhost-user protocol features: 0x%" PRIx64 "\n", + dev->protocol_features); return RTE_VHOST_MSG_RESULT_OK; }