1/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7    http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15
16syntax = "proto3";
17
18package tensorflow;
19option java_outer_classname = "VerbsServiceProtos";
20option java_multiple_files = true;
21option java_package = "org.tensorflow.contrib.verbs";
22
23////////////////////////////////////////////////////////////////////////////////
24//
25// GRPC Helper messages used to exchange RDMA information.
26//
27////////////////////////////////////////////////////////////////////////////////
28
29message Channel {
30  int32 lid = 1;
31  int32 qpn = 2;
32  int32 psn = 3;
33  uint64 snp = 4;
34  uint64 iid = 5;
35}
36
37message MemoryRegion {
38  uint64 remote_addr = 1;
39  uint32 rkey = 2;
40}
41message GetRemoteAddressRequest {
42  string host_name = 1;
43  Channel channel = 2;
44  repeated MemoryRegion mr = 3;
45}
46
47message GetRemoteAddressResponse {
48  string host_name = 1;
49  Channel channel = 2;
50  repeated MemoryRegion mr = 3;
51}
52
53message ErrorStatusProto {
54  int32 error_code = 1;
55  string error_message = 2;
56  string error_details = 3;
57}
58
59////////////////////////////////////////////////////////////////////////////////
60//
61// VerbsService
62//
63////////////////////////////////////////////////////////////////////////////////
64
65service VerbsService {
66  rpc GetRemoteAddress(GetRemoteAddressRequest)
67      returns (GetRemoteAddressResponse);
68}
69