diff options
author | Alex Ng <alexng@messages.microsoft.com> | 2017-01-28 20:37:18 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-31 11:05:59 +0100 |
commit | 1274a690f6b2bd2b37447c47e3062afa8aa43f93 (patch) | |
tree | c001936cee73557c365622d2595922703f1acf6d /drivers/hv/hv_kvp.c | |
parent | Drivers: hv: vmbus: Use all supported IC versions to negotiate (diff) | |
download | linux-1274a690f6b2bd2b37447c47e3062afa8aa43f93.tar.xz linux-1274a690f6b2bd2b37447c47e3062afa8aa43f93.zip |
Drivers: hv: Log the negotiated IC versions.
Log the negotiated IC versions.
Signed-off-by: Alex Ng <alexng@messages.microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/hv_kvp.c')
-rw-r--r-- | drivers/hv/hv_kvp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/hv/hv_kvp.c b/drivers/hv/hv_kvp.c index 2cc670442f6c..de263712e247 100644 --- a/drivers/hv/hv_kvp.c +++ b/drivers/hv/hv_kvp.c @@ -651,10 +651,14 @@ void hv_kvp_onchannelcallback(void *context) sizeof(struct vmbuspipe_hdr)]; if (icmsghdrp->icmsgtype == ICMSGTYPE_NEGOTIATE) { - vmbus_prep_negotiate_resp(icmsghdrp, + if (vmbus_prep_negotiate_resp(icmsghdrp, recv_buffer, fw_versions, FW_VER_COUNT, kvp_versions, KVP_VER_COUNT, - NULL, &kvp_srv_version); + NULL, &kvp_srv_version)) { + pr_info("KVP IC version %d.%d\n", + kvp_srv_version >> 16, + kvp_srv_version & 0xFFFF); + } } else { kvp_msg = (struct hv_kvp_msg *)&recv_buffer[ sizeof(struct vmbuspipe_hdr) + |