hyperv/channel: Git rid of the sub-channel creation callback
It is no longer used. MFC after: 1 week Sponsored by: Microsoft OSTC
This commit is contained in:
parent
99b476b1e8
commit
96a8c456f1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298617
@ -691,7 +691,6 @@ typedef struct {
|
||||
} hv_vmbus_ring_buffer_info;
|
||||
|
||||
typedef void (*hv_vmbus_pfn_channel_callback)(void *context);
|
||||
typedef void (*hv_vmbus_sc_creation_callback)(void *context);
|
||||
|
||||
typedef enum {
|
||||
HV_CHANNEL_OFFER_STATE,
|
||||
@ -804,13 +803,6 @@ typedef struct hv_vmbus_channel {
|
||||
* response on the same channel.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Multi-channel creation callback. This callback will be called in
|
||||
* process context when a Multi-channel offer is received from the host.
|
||||
* The guest can open the Multi-channel in the context of this callback.
|
||||
*/
|
||||
hv_vmbus_sc_creation_callback sc_creation_callback;
|
||||
|
||||
struct mtx sc_lock;
|
||||
|
||||
/*
|
||||
|
@ -618,7 +618,6 @@ hv_vmbus_channel_close_internal(hv_vmbus_channel *channel)
|
||||
hv_vmbus_channel_msg_info* info;
|
||||
|
||||
channel->state = HV_CHANNEL_OPEN_STATE;
|
||||
channel->sc_creation_callback = NULL;
|
||||
|
||||
/*
|
||||
* set rxq to NULL to avoid more requests be scheduled
|
||||
|
@ -237,8 +237,6 @@ vmbus_channel_process_offer(hv_vmbus_channel *new_channel)
|
||||
new_channel, new_channel->primary_channel);
|
||||
|
||||
new_channel->state = HV_CHANNEL_OPEN_STATE;
|
||||
if (channel->sc_creation_callback != NULL)
|
||||
channel->sc_creation_callback(new_channel);
|
||||
|
||||
/*
|
||||
* Bump up sub-channel count and notify anyone that is
|
||||
|
Loading…
Reference in New Issue
Block a user