@@ -77,20 +77,20 @@ struct hvs_send_buf {
77
77
VMBUS_PKT_TRAILER_SIZE)
78
78
79
79
union hvs_service_id {
80
- uuid_le srv_id ;
80
+ guid_t srv_id ;
81
81
82
82
struct {
83
83
unsigned int svm_port ;
84
- unsigned char b [sizeof (uuid_le ) - sizeof (unsigned int )];
84
+ unsigned char b [sizeof (guid_t ) - sizeof (unsigned int )];
85
85
};
86
86
};
87
87
88
88
/* Per-socket state (accessed via vsk->trans) */
89
89
struct hvsock {
90
90
struct vsock_sock * vsk ;
91
91
92
- uuid_le vm_srv_id ;
93
- uuid_le host_srv_id ;
92
+ guid_t vm_srv_id ;
93
+ guid_t host_srv_id ;
94
94
95
95
struct vmbus_channel * chan ;
96
96
struct vmpacket_descriptor * recv_desc ;
@@ -159,21 +159,21 @@ struct hvsock {
159
159
#define MIN_HOST_EPHEMERAL_PORT (MAX_HOST_LISTEN_PORT + 1)
160
160
161
161
/* 00000000-facb-11e6-bd58-64006a7986d3 */
162
- static const uuid_le srv_id_template =
163
- UUID_LE (0x00000000 , 0xfacb , 0x11e6 , 0xbd , 0x58 ,
164
- 0x64 , 0x00 , 0x6a , 0x79 , 0x86 , 0xd3 );
162
+ static const guid_t srv_id_template =
163
+ GUID_INIT (0x00000000 , 0xfacb , 0x11e6 , 0xbd , 0x58 ,
164
+ 0x64 , 0x00 , 0x6a , 0x79 , 0x86 , 0xd3 );
165
165
166
- static bool is_valid_srv_id (const uuid_le * id )
166
+ static bool is_valid_srv_id (const guid_t * id )
167
167
{
168
- return !memcmp (& id -> b [4 ], & srv_id_template .b [4 ], sizeof (uuid_le ) - 4 );
168
+ return !memcmp (& id -> b [4 ], & srv_id_template .b [4 ], sizeof (guid_t ) - 4 );
169
169
}
170
170
171
- static unsigned int get_port_by_srv_id (const uuid_le * svr_id )
171
+ static unsigned int get_port_by_srv_id (const guid_t * svr_id )
172
172
{
173
173
return * ((unsigned int * )svr_id );
174
174
}
175
175
176
- static void hvs_addr_init (struct sockaddr_vm * addr , const uuid_le * svr_id )
176
+ static void hvs_addr_init (struct sockaddr_vm * addr , const guid_t * svr_id )
177
177
{
178
178
unsigned int port = get_port_by_srv_id (svr_id );
179
179
@@ -316,7 +316,7 @@ static void hvs_close_connection(struct vmbus_channel *chan)
316
316
317
317
static void hvs_open_connection (struct vmbus_channel * chan )
318
318
{
319
- uuid_le * if_instance , * if_type ;
319
+ guid_t * if_instance , * if_type ;
320
320
unsigned char conn_from_host ;
321
321
322
322
struct sockaddr_vm addr ;
0 commit comments