Commit 5dd0fb9b authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller

vmbus: remove unused vmbus_sendpacket_ctl

The only usage of vmbus_sendpacket_ctl was by vmbus_sendpacket.
Signed-off-by: default avatarStephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5a668d8c
...@@ -647,9 +647,23 @@ void vmbus_close(struct vmbus_channel *channel) ...@@ -647,9 +647,23 @@ void vmbus_close(struct vmbus_channel *channel)
} }
EXPORT_SYMBOL_GPL(vmbus_close); EXPORT_SYMBOL_GPL(vmbus_close);
int vmbus_sendpacket_ctl(struct vmbus_channel *channel, void *buffer, /**
u32 bufferlen, u64 requestid, * vmbus_sendpacket() - Send the specified buffer on the given channel
enum vmbus_packet_type type, u32 flags) * @channel: Pointer to vmbus_channel structure.
* @buffer: Pointer to the buffer you want to receive the data into.
* @bufferlen: Maximum size of what the the buffer will hold
* @requestid: Identifier of the request
* @type: Type of packet that is being send e.g. negotiate, time
* packet etc.
*
* Sends data in @buffer directly to hyper-v via the vmbus
* This will send the data unparsed to hyper-v.
*
* Mainly used by Hyper-V drivers.
*/
int vmbus_sendpacket(struct vmbus_channel *channel, void *buffer,
u32 bufferlen, u64 requestid,
enum vmbus_packet_type type, u32 flags)
{ {
struct vmpacket_descriptor desc; struct vmpacket_descriptor desc;
u32 packetlen = sizeof(struct vmpacket_descriptor) + bufferlen; u32 packetlen = sizeof(struct vmpacket_descriptor) + bufferlen;
...@@ -676,29 +690,6 @@ int vmbus_sendpacket_ctl(struct vmbus_channel *channel, void *buffer, ...@@ -676,29 +690,6 @@ int vmbus_sendpacket_ctl(struct vmbus_channel *channel, void *buffer,
return hv_ringbuffer_write(channel, bufferlist, num_vecs); return hv_ringbuffer_write(channel, bufferlist, num_vecs);
} }
EXPORT_SYMBOL(vmbus_sendpacket_ctl);
/**
* vmbus_sendpacket() - Send the specified buffer on the given channel
* @channel: Pointer to vmbus_channel structure.
* @buffer: Pointer to the buffer you want to receive the data into.
* @bufferlen: Maximum size of what the the buffer will hold
* @requestid: Identifier of the request
* @type: Type of packet that is being send e.g. negotiate, time
* packet etc.
*
* Sends data in @buffer directly to hyper-v via the vmbus
* This will send the data unparsed to hyper-v.
*
* Mainly used by Hyper-V drivers.
*/
int vmbus_sendpacket(struct vmbus_channel *channel, void *buffer,
u32 bufferlen, u64 requestid,
enum vmbus_packet_type type, u32 flags)
{
return vmbus_sendpacket_ctl(channel, buffer, bufferlen, requestid,
type, flags);
}
EXPORT_SYMBOL(vmbus_sendpacket); EXPORT_SYMBOL(vmbus_sendpacket);
/* /*
......
...@@ -780,11 +780,10 @@ static inline int netvsc_send_pkt( ...@@ -780,11 +780,10 @@ static inline int netvsc_send_pkt(
&nvmsg, sizeof(nvmsg), &nvmsg, sizeof(nvmsg),
req_id); req_id);
} else { } else {
ret = vmbus_sendpacket_ctl(out_channel, &nvmsg, ret = vmbus_sendpacket(out_channel,
sizeof(struct nvsp_message), &nvmsg, sizeof(nvmsg),
req_id, req_id, VM_PKT_DATA_INBAND,
VM_PKT_DATA_INBAND, VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED);
VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED);
} }
if (ret == 0) { if (ret == 0) {
......
...@@ -1030,13 +1030,6 @@ extern int vmbus_sendpacket(struct vmbus_channel *channel, ...@@ -1030,13 +1030,6 @@ extern int vmbus_sendpacket(struct vmbus_channel *channel,
enum vmbus_packet_type type, enum vmbus_packet_type type,
u32 flags); u32 flags);
extern int vmbus_sendpacket_ctl(struct vmbus_channel *channel,
void *buffer,
u32 bufferLen,
u64 requestid,
enum vmbus_packet_type type,
u32 flags);
extern int vmbus_sendpacket_pagebuffer(struct vmbus_channel *channel, extern int vmbus_sendpacket_pagebuffer(struct vmbus_channel *channel,
struct hv_page_buffer pagebuffers[], struct hv_page_buffer pagebuffers[],
u32 pagecount, u32 pagecount,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment