From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161804AbcA1EzJ (ORCPT ); Wed, 27 Jan 2016 23:55:09 -0500 Received: from p3plsmtps2ded04.prod.phx3.secureserver.net ([208.109.80.198]:39572 "EHLO p3plsmtps2ded04.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161567AbcA1ExV (ORCPT ); Wed, 27 Jan 2016 23:53:21 -0500 x-originating-ip: 72.167.245.219 From: "K. Y. Srinivasan" To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com Cc: Dexuan Cui , "K. Y. Srinivasan" Subject: [PATCH V2 06/13] Drivers: hv: vmbus: define the new offer type for Hyper-V socket (hvsock) Date: Wed, 27 Jan 2016 22:29:38 -0800 Message-Id: <1453962585-32069-6-git-send-email-kys@microsoft.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1453962585-32069-1-git-send-email-kys@microsoft.com> References: <1453962559-32028-1-git-send-email-kys@microsoft.com> <1453962585-32069-1-git-send-email-kys@microsoft.com> X-CMAE-Envelope: MS4wfPkj92qegPvWL87g9KE57urpYp4DHUyShOiBtDB4IlWF0gL7pjBrZQ33saaJPRk+mIuIrx3YnY11omrkQDBzRQ8dDeN5i5JT/wZWYHaDLW3pSiDEGUNJ rjICCtTAlgR5n/QQBqIFk8caCGmWENezFMZ8vN0BSe8Z6uwa8V2Oc1ZXP2vibt9ky5yoHSh8SDlkfNkKsXzjh8sw6nTn96xatx8DT8XPA+UJjs/2MogTmsx/ 1/mXuYFkMp5MMYGa7vqe1l/4E3ZCzASunmsgem18fyLKSe+CcYoKIHpLXJfFDCABKpOkpgkvGpFZH6V238dTdv14y521/iazARZ9H9L5Rhvs2YPmSClTOyjX mHqTslF4f6qAwTDx/bQxeAJYGs83fYV96WkfKvQnwPkgnkl7JCr9WYOcoMEbW4DFI2KPzAC/MUrGP67w+8pqzoOx+l7ExQ== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dexuan Cui A helper function is also added. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- include/linux/hyperv.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 4af51a3..79c4aa7 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h @@ -235,6 +235,7 @@ struct vmbus_channel_offer { #define VMBUS_CHANNEL_LOOPBACK_OFFER 0x100 #define VMBUS_CHANNEL_PARENT_OFFER 0x200 #define VMBUS_CHANNEL_REQUEST_MONITORED_NOTIFICATION 0x400 +#define VMBUS_CHANNEL_TLNPI_PROVIDER_OFFER 0x2000 struct vmpacket_descriptor { u16 type; @@ -795,6 +796,12 @@ struct vmbus_channel { enum hv_signal_policy signal_policy; }; +static inline bool is_hvsock_channel(const struct vmbus_channel *c) +{ + return !!(c->offermsg.offer.chn_flags & + VMBUS_CHANNEL_TLNPI_PROVIDER_OFFER); +} + static inline void set_channel_signal_state(struct vmbus_channel *c, enum hv_signal_policy policy) { -- 1.7.4.1