Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140882008
D6914.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D6914.diff
View Options
Index: head/sys/dev/hyperv/vmbus/hv_channel_mgmt.c
===================================================================
--- head/sys/dev/hyperv/vmbus/hv_channel_mgmt.c
+++ head/sys/dev/hyperv/vmbus/hv_channel_mgmt.c
@@ -46,18 +46,10 @@
static void vmbus_channel_on_offer(struct vmbus_softc *,
const struct vmbus_message *);
-static void vmbus_channel_on_open_result(struct vmbus_softc *,
- const struct vmbus_message *);
static void vmbus_channel_on_offer_rescind(struct vmbus_softc *,
const struct vmbus_message *);
-static void vmbus_channel_on_gpadl_created(struct vmbus_softc *,
- const struct vmbus_message *);
-static void vmbus_channel_on_gpadl_torndown(struct vmbus_softc *,
- const struct vmbus_message *);
static void vmbus_channel_on_offers_delivered(struct vmbus_softc *,
const struct vmbus_message *);
-static void vmbus_channel_on_version_response(struct vmbus_softc *,
- const struct vmbus_message *);
/**
* Channel message dispatch table
@@ -71,13 +63,13 @@
[HV_CHANNEL_MESSAGE_ALL_OFFERS_DELIVERED] =
vmbus_channel_on_offers_delivered,
[HV_CHANNEL_MESSAGE_OPEN_CHANNEL_RESULT] =
- vmbus_channel_on_open_result,
+ vmbus_msghc_wakeup,
[HV_CHANNEL_MESSAGE_GPADL_CREATED] =
- vmbus_channel_on_gpadl_created,
+ vmbus_msghc_wakeup,
[HV_CHANNEL_MESSAGE_GPADL_TORNDOWN] =
- vmbus_channel_on_gpadl_torndown,
+ vmbus_msghc_wakeup,
[HV_CHANNEL_MESSAGE_VERSION_RESPONSE] =
- vmbus_channel_on_version_response
+ vmbus_msghc_wakeup
};
/**
@@ -415,54 +407,6 @@
}
/**
- * @brief Open result handler.
- *
- * This is invoked when we received a response
- * to our channel open request.
- */
-static void
-vmbus_channel_on_open_result(struct vmbus_softc *sc,
- const struct vmbus_message *msg)
-{
- vmbus_msghc_wakeup(sc, msg);
-}
-
-/**
- * @brief GPADL created handler.
- *
- * This is invoked when we received a response
- * to our gpadl create request. Find the matching request, copy the
- * response and signal the requesting thread.
- */
-static void
-vmbus_channel_on_gpadl_created(struct vmbus_softc *sc,
- const struct vmbus_message *msg)
-{
- vmbus_msghc_wakeup(sc, msg);
-}
-
-/**
- * @brief GPADL torndown handler.
- *
- * This is invoked when we received a respons
- * to our gpadl teardown request. Find the matching request, copy the
- * response and signal the requesting thread
- */
-static void
-vmbus_channel_on_gpadl_torndown(struct vmbus_softc *sc,
- const struct vmbus_message *msg)
-{
- vmbus_msghc_wakeup(sc, msg);
-}
-
-static void
-vmbus_channel_on_version_response(struct vmbus_softc *sc,
- const struct vmbus_message *msg)
-{
- vmbus_msghc_wakeup(sc, msg);
-}
-
-/**
* @brief Release channels that are unattached/unconnected (i.e., no drivers associated)
*/
void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 30, 5:30 AM (13 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27376695
Default Alt Text
D6914.diff (2 KB)
Attached To
Mode
D6914: hyperv/vmbus: Flatten channel message response processing.
Attached
Detach File
Event Timeline
Log In to Comment