github.com/networkservicemesh/govpp@v0.0.0-20240328101142-8a444680fbba/binapi/rdma/rdma.ba.go (about)

     1  // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
     2  // versions:
     3  //  binapi-generator: v0.10.0-dev
     4  //  VPP:              23.10-rc0~170-g6f1548434
     5  // source: plugins/rdma.api.json
     6  
     7  // Package rdma contains generated bindings for API file rdma.api.
     8  //
     9  // Contents:
    10  // -  3 enums
    11  // -  8 messages
    12  package rdma
    13  
    14  import (
    15  	"strconv"
    16  
    17  	interface_types "github.com/networkservicemesh/govpp/binapi/interface_types"
    18  	api "go.fd.io/govpp/api"
    19  	codec "go.fd.io/govpp/codec"
    20  )
    21  
    22  // This is a compile-time assertion to ensure that this generated file
    23  // is compatible with the GoVPP api package it is being compiled against.
    24  // A compilation error at this line likely means your copy of the
    25  // GoVPP api package needs to be updated.
    26  const _ = api.GoVppAPIPackageIsVersion2
    27  
    28  const (
    29  	APIFile    = "rdma"
    30  	APIVersion = "3.0.0"
    31  	VersionCrc = 0xdab70fa9
    32  )
    33  
    34  // RdmaMode defines enum 'rdma_mode'.
    35  type RdmaMode uint32
    36  
    37  const (
    38  	RDMA_API_MODE_AUTO RdmaMode = 0
    39  	RDMA_API_MODE_IBV  RdmaMode = 1
    40  	RDMA_API_MODE_DV   RdmaMode = 2
    41  )
    42  
    43  var (
    44  	RdmaMode_name = map[uint32]string{
    45  		0: "RDMA_API_MODE_AUTO",
    46  		1: "RDMA_API_MODE_IBV",
    47  		2: "RDMA_API_MODE_DV",
    48  	}
    49  	RdmaMode_value = map[string]uint32{
    50  		"RDMA_API_MODE_AUTO": 0,
    51  		"RDMA_API_MODE_IBV":  1,
    52  		"RDMA_API_MODE_DV":   2,
    53  	}
    54  )
    55  
    56  func (x RdmaMode) String() string {
    57  	s, ok := RdmaMode_name[uint32(x)]
    58  	if ok {
    59  		return s
    60  	}
    61  	return "RdmaMode(" + strconv.Itoa(int(x)) + ")"
    62  }
    63  
    64  // RdmaRss4 defines enum 'rdma_rss4'.
    65  type RdmaRss4 uint32
    66  
    67  const (
    68  	RDMA_API_RSS4_AUTO   RdmaRss4 = 0
    69  	RDMA_API_RSS4_IP     RdmaRss4 = 1
    70  	RDMA_API_RSS4_IP_UDP RdmaRss4 = 2
    71  	RDMA_API_RSS4_IP_TCP RdmaRss4 = 3
    72  )
    73  
    74  var (
    75  	RdmaRss4_name = map[uint32]string{
    76  		0: "RDMA_API_RSS4_AUTO",
    77  		1: "RDMA_API_RSS4_IP",
    78  		2: "RDMA_API_RSS4_IP_UDP",
    79  		3: "RDMA_API_RSS4_IP_TCP",
    80  	}
    81  	RdmaRss4_value = map[string]uint32{
    82  		"RDMA_API_RSS4_AUTO":   0,
    83  		"RDMA_API_RSS4_IP":     1,
    84  		"RDMA_API_RSS4_IP_UDP": 2,
    85  		"RDMA_API_RSS4_IP_TCP": 3,
    86  	}
    87  )
    88  
    89  func (x RdmaRss4) String() string {
    90  	s, ok := RdmaRss4_name[uint32(x)]
    91  	if ok {
    92  		return s
    93  	}
    94  	return "RdmaRss4(" + strconv.Itoa(int(x)) + ")"
    95  }
    96  
    97  // RdmaRss6 defines enum 'rdma_rss6'.
    98  type RdmaRss6 uint32
    99  
   100  const (
   101  	RDMA_API_RSS6_AUTO   RdmaRss6 = 0
   102  	RDMA_API_RSS6_IP     RdmaRss6 = 1
   103  	RDMA_API_RSS6_IP_UDP RdmaRss6 = 2
   104  	RDMA_API_RSS6_IP_TCP RdmaRss6 = 3
   105  )
   106  
   107  var (
   108  	RdmaRss6_name = map[uint32]string{
   109  		0: "RDMA_API_RSS6_AUTO",
   110  		1: "RDMA_API_RSS6_IP",
   111  		2: "RDMA_API_RSS6_IP_UDP",
   112  		3: "RDMA_API_RSS6_IP_TCP",
   113  	}
   114  	RdmaRss6_value = map[string]uint32{
   115  		"RDMA_API_RSS6_AUTO":   0,
   116  		"RDMA_API_RSS6_IP":     1,
   117  		"RDMA_API_RSS6_IP_UDP": 2,
   118  		"RDMA_API_RSS6_IP_TCP": 3,
   119  	}
   120  )
   121  
   122  func (x RdmaRss6) String() string {
   123  	s, ok := RdmaRss6_name[uint32(x)]
   124  	if ok {
   125  		return s
   126  	}
   127  	return "RdmaRss6(" + strconv.Itoa(int(x)) + ")"
   128  }
   129  
   130  // - client_index - opaque cookie to identify the sender
   131  //   - host_if - Linux netdev interface name
   132  //   - name - new rdma interface name
   133  //   - rxq_num - number of receive queues (optional)
   134  //   - rxq_size - receive queue size (optional)
   135  //   - txq_size - transmit queue size (optional)
   136  //   - mode - operation mode (optional)
   137  //
   138  // RdmaCreate defines message 'rdma_create'.
   139  // Deprecated: 21.01
   140  type RdmaCreate struct {
   141  	HostIf  string   `binapi:"string[64],name=host_if" json:"host_if,omitempty"`
   142  	Name    string   `binapi:"string[64],name=name" json:"name,omitempty"`
   143  	RxqNum  uint16   `binapi:"u16,name=rxq_num,default=1" json:"rxq_num,omitempty"`
   144  	RxqSize uint16   `binapi:"u16,name=rxq_size,default=1024" json:"rxq_size,omitempty"`
   145  	TxqSize uint16   `binapi:"u16,name=txq_size,default=1024" json:"txq_size,omitempty"`
   146  	Mode    RdmaMode `binapi:"rdma_mode,name=mode,default=0" json:"mode,omitempty"`
   147  }
   148  
   149  func (m *RdmaCreate) Reset()               { *m = RdmaCreate{} }
   150  func (*RdmaCreate) GetMessageName() string { return "rdma_create" }
   151  func (*RdmaCreate) GetCrcString() string   { return "076fe418" }
   152  func (*RdmaCreate) GetMessageType() api.MessageType {
   153  	return api.RequestMessage
   154  }
   155  
   156  func (m *RdmaCreate) Size() (size int) {
   157  	if m == nil {
   158  		return 0
   159  	}
   160  	size += 64 // m.HostIf
   161  	size += 64 // m.Name
   162  	size += 2  // m.RxqNum
   163  	size += 2  // m.RxqSize
   164  	size += 2  // m.TxqSize
   165  	size += 4  // m.Mode
   166  	return size
   167  }
   168  func (m *RdmaCreate) Marshal(b []byte) ([]byte, error) {
   169  	if b == nil {
   170  		b = make([]byte, m.Size())
   171  	}
   172  	buf := codec.NewBuffer(b)
   173  	buf.EncodeString(m.HostIf, 64)
   174  	buf.EncodeString(m.Name, 64)
   175  	buf.EncodeUint16(m.RxqNum)
   176  	buf.EncodeUint16(m.RxqSize)
   177  	buf.EncodeUint16(m.TxqSize)
   178  	buf.EncodeUint32(uint32(m.Mode))
   179  	return buf.Bytes(), nil
   180  }
   181  func (m *RdmaCreate) Unmarshal(b []byte) error {
   182  	buf := codec.NewBuffer(b)
   183  	m.HostIf = buf.DecodeString(64)
   184  	m.Name = buf.DecodeString(64)
   185  	m.RxqNum = buf.DecodeUint16()
   186  	m.RxqSize = buf.DecodeUint16()
   187  	m.TxqSize = buf.DecodeUint16()
   188  	m.Mode = RdmaMode(buf.DecodeUint32())
   189  	return nil
   190  }
   191  
   192  // - context - sender context, to match reply w/ request
   193  //   - retval - return value for request
   194  //   - sw_if_index - software index for the new rdma interface
   195  //
   196  // RdmaCreateReply defines message 'rdma_create_reply'.
   197  // Deprecated: the message will be removed in the future versions
   198  type RdmaCreateReply struct {
   199  	Retval    int32                          `binapi:"i32,name=retval" json:"retval,omitempty"`
   200  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
   201  }
   202  
   203  func (m *RdmaCreateReply) Reset()               { *m = RdmaCreateReply{} }
   204  func (*RdmaCreateReply) GetMessageName() string { return "rdma_create_reply" }
   205  func (*RdmaCreateReply) GetCrcString() string   { return "5383d31f" }
   206  func (*RdmaCreateReply) GetMessageType() api.MessageType {
   207  	return api.ReplyMessage
   208  }
   209  
   210  func (m *RdmaCreateReply) Size() (size int) {
   211  	if m == nil {
   212  		return 0
   213  	}
   214  	size += 4 // m.Retval
   215  	size += 4 // m.SwIfIndex
   216  	return size
   217  }
   218  func (m *RdmaCreateReply) Marshal(b []byte) ([]byte, error) {
   219  	if b == nil {
   220  		b = make([]byte, m.Size())
   221  	}
   222  	buf := codec.NewBuffer(b)
   223  	buf.EncodeInt32(m.Retval)
   224  	buf.EncodeUint32(uint32(m.SwIfIndex))
   225  	return buf.Bytes(), nil
   226  }
   227  func (m *RdmaCreateReply) Unmarshal(b []byte) error {
   228  	buf := codec.NewBuffer(b)
   229  	m.Retval = buf.DecodeInt32()
   230  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   231  	return nil
   232  }
   233  
   234  // - client_index - opaque cookie to identify the sender
   235  //   - host_if - Linux netdev interface name
   236  //   - name - new rdma interface name
   237  //   - rxq_num - number of receive queues (optional)
   238  //   - rxq_size - receive queue size (optional)
   239  //   - txq_size - transmit queue size (optional)
   240  //   - mode - operation mode (optional)
   241  //   - no_multi_seg (optional) - disable chained buffer RX
   242  //   - max_pktlen (optional) - maximal RX packet size.
   243  //
   244  // RdmaCreateV2 defines message 'rdma_create_v2'.
   245  // Deprecated: the message will be removed in the future versions
   246  type RdmaCreateV2 struct {
   247  	HostIf     string   `binapi:"string[64],name=host_if" json:"host_if,omitempty"`
   248  	Name       string   `binapi:"string[64],name=name" json:"name,omitempty"`
   249  	RxqNum     uint16   `binapi:"u16,name=rxq_num,default=1" json:"rxq_num,omitempty"`
   250  	RxqSize    uint16   `binapi:"u16,name=rxq_size,default=1024" json:"rxq_size,omitempty"`
   251  	TxqSize    uint16   `binapi:"u16,name=txq_size,default=1024" json:"txq_size,omitempty"`
   252  	Mode       RdmaMode `binapi:"rdma_mode,name=mode,default=0" json:"mode,omitempty"`
   253  	NoMultiSeg bool     `binapi:"bool,name=no_multi_seg,default=0" json:"no_multi_seg,omitempty"`
   254  	MaxPktlen  uint16   `binapi:"u16,name=max_pktlen,default=0" json:"max_pktlen,omitempty"`
   255  }
   256  
   257  func (m *RdmaCreateV2) Reset()               { *m = RdmaCreateV2{} }
   258  func (*RdmaCreateV2) GetMessageName() string { return "rdma_create_v2" }
   259  func (*RdmaCreateV2) GetCrcString() string   { return "5826a4f3" }
   260  func (*RdmaCreateV2) GetMessageType() api.MessageType {
   261  	return api.RequestMessage
   262  }
   263  
   264  func (m *RdmaCreateV2) Size() (size int) {
   265  	if m == nil {
   266  		return 0
   267  	}
   268  	size += 64 // m.HostIf
   269  	size += 64 // m.Name
   270  	size += 2  // m.RxqNum
   271  	size += 2  // m.RxqSize
   272  	size += 2  // m.TxqSize
   273  	size += 4  // m.Mode
   274  	size += 1  // m.NoMultiSeg
   275  	size += 2  // m.MaxPktlen
   276  	return size
   277  }
   278  func (m *RdmaCreateV2) Marshal(b []byte) ([]byte, error) {
   279  	if b == nil {
   280  		b = make([]byte, m.Size())
   281  	}
   282  	buf := codec.NewBuffer(b)
   283  	buf.EncodeString(m.HostIf, 64)
   284  	buf.EncodeString(m.Name, 64)
   285  	buf.EncodeUint16(m.RxqNum)
   286  	buf.EncodeUint16(m.RxqSize)
   287  	buf.EncodeUint16(m.TxqSize)
   288  	buf.EncodeUint32(uint32(m.Mode))
   289  	buf.EncodeBool(m.NoMultiSeg)
   290  	buf.EncodeUint16(m.MaxPktlen)
   291  	return buf.Bytes(), nil
   292  }
   293  func (m *RdmaCreateV2) Unmarshal(b []byte) error {
   294  	buf := codec.NewBuffer(b)
   295  	m.HostIf = buf.DecodeString(64)
   296  	m.Name = buf.DecodeString(64)
   297  	m.RxqNum = buf.DecodeUint16()
   298  	m.RxqSize = buf.DecodeUint16()
   299  	m.TxqSize = buf.DecodeUint16()
   300  	m.Mode = RdmaMode(buf.DecodeUint32())
   301  	m.NoMultiSeg = buf.DecodeBool()
   302  	m.MaxPktlen = buf.DecodeUint16()
   303  	return nil
   304  }
   305  
   306  // - context - sender context, to match reply w/ request
   307  //   - retval - return value for request
   308  //   - sw_if_index - software index for the new rdma interface
   309  //
   310  // RdmaCreateV2Reply defines message 'rdma_create_v2_reply'.
   311  // Deprecated: the message will be removed in the future versions
   312  type RdmaCreateV2Reply struct {
   313  	Retval    int32                          `binapi:"i32,name=retval" json:"retval,omitempty"`
   314  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
   315  }
   316  
   317  func (m *RdmaCreateV2Reply) Reset()               { *m = RdmaCreateV2Reply{} }
   318  func (*RdmaCreateV2Reply) GetMessageName() string { return "rdma_create_v2_reply" }
   319  func (*RdmaCreateV2Reply) GetCrcString() string   { return "5383d31f" }
   320  func (*RdmaCreateV2Reply) GetMessageType() api.MessageType {
   321  	return api.ReplyMessage
   322  }
   323  
   324  func (m *RdmaCreateV2Reply) Size() (size int) {
   325  	if m == nil {
   326  		return 0
   327  	}
   328  	size += 4 // m.Retval
   329  	size += 4 // m.SwIfIndex
   330  	return size
   331  }
   332  func (m *RdmaCreateV2Reply) Marshal(b []byte) ([]byte, error) {
   333  	if b == nil {
   334  		b = make([]byte, m.Size())
   335  	}
   336  	buf := codec.NewBuffer(b)
   337  	buf.EncodeInt32(m.Retval)
   338  	buf.EncodeUint32(uint32(m.SwIfIndex))
   339  	return buf.Bytes(), nil
   340  }
   341  func (m *RdmaCreateV2Reply) Unmarshal(b []byte) error {
   342  	buf := codec.NewBuffer(b)
   343  	m.Retval = buf.DecodeInt32()
   344  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   345  	return nil
   346  }
   347  
   348  // - client_index - opaque cookie to identify the sender
   349  //   - host_if - Linux netdev interface name
   350  //   - name - new rdma interface name
   351  //   - rxq_num - number of receive queues (optional)
   352  //   - rxq_size - receive queue size (optional)
   353  //   - txq_size - transmit queue size (optional)
   354  //   - mode - operation mode (optional)
   355  //   - no_multi_seg (optional) - disable chained buffer RX
   356  //   - max_pktlen (optional) - maximal RX packet size.
   357  //   - rss4 (optional) - IPv4 RSS
   358  //   - rss6 (optional) - IPv6 RSS
   359  //
   360  // RdmaCreateV3 defines message 'rdma_create_v3'.
   361  type RdmaCreateV3 struct {
   362  	HostIf     string   `binapi:"string[64],name=host_if" json:"host_if,omitempty"`
   363  	Name       string   `binapi:"string[64],name=name" json:"name,omitempty"`
   364  	RxqNum     uint16   `binapi:"u16,name=rxq_num,default=1" json:"rxq_num,omitempty"`
   365  	RxqSize    uint16   `binapi:"u16,name=rxq_size,default=1024" json:"rxq_size,omitempty"`
   366  	TxqSize    uint16   `binapi:"u16,name=txq_size,default=1024" json:"txq_size,omitempty"`
   367  	Mode       RdmaMode `binapi:"rdma_mode,name=mode,default=0" json:"mode,omitempty"`
   368  	NoMultiSeg bool     `binapi:"bool,name=no_multi_seg,default=0" json:"no_multi_seg,omitempty"`
   369  	MaxPktlen  uint16   `binapi:"u16,name=max_pktlen,default=0" json:"max_pktlen,omitempty"`
   370  	Rss4       RdmaRss4 `binapi:"rdma_rss4,name=rss4,default=0" json:"rss4,omitempty"`
   371  	Rss6       RdmaRss6 `binapi:"rdma_rss6,name=rss6,default=0" json:"rss6,omitempty"`
   372  }
   373  
   374  func (m *RdmaCreateV3) Reset()               { *m = RdmaCreateV3{} }
   375  func (*RdmaCreateV3) GetMessageName() string { return "rdma_create_v3" }
   376  func (*RdmaCreateV3) GetCrcString() string   { return "c6287ea8" }
   377  func (*RdmaCreateV3) GetMessageType() api.MessageType {
   378  	return api.RequestMessage
   379  }
   380  
   381  func (m *RdmaCreateV3) Size() (size int) {
   382  	if m == nil {
   383  		return 0
   384  	}
   385  	size += 64 // m.HostIf
   386  	size += 64 // m.Name
   387  	size += 2  // m.RxqNum
   388  	size += 2  // m.RxqSize
   389  	size += 2  // m.TxqSize
   390  	size += 4  // m.Mode
   391  	size += 1  // m.NoMultiSeg
   392  	size += 2  // m.MaxPktlen
   393  	size += 4  // m.Rss4
   394  	size += 4  // m.Rss6
   395  	return size
   396  }
   397  func (m *RdmaCreateV3) Marshal(b []byte) ([]byte, error) {
   398  	if b == nil {
   399  		b = make([]byte, m.Size())
   400  	}
   401  	buf := codec.NewBuffer(b)
   402  	buf.EncodeString(m.HostIf, 64)
   403  	buf.EncodeString(m.Name, 64)
   404  	buf.EncodeUint16(m.RxqNum)
   405  	buf.EncodeUint16(m.RxqSize)
   406  	buf.EncodeUint16(m.TxqSize)
   407  	buf.EncodeUint32(uint32(m.Mode))
   408  	buf.EncodeBool(m.NoMultiSeg)
   409  	buf.EncodeUint16(m.MaxPktlen)
   410  	buf.EncodeUint32(uint32(m.Rss4))
   411  	buf.EncodeUint32(uint32(m.Rss6))
   412  	return buf.Bytes(), nil
   413  }
   414  func (m *RdmaCreateV3) Unmarshal(b []byte) error {
   415  	buf := codec.NewBuffer(b)
   416  	m.HostIf = buf.DecodeString(64)
   417  	m.Name = buf.DecodeString(64)
   418  	m.RxqNum = buf.DecodeUint16()
   419  	m.RxqSize = buf.DecodeUint16()
   420  	m.TxqSize = buf.DecodeUint16()
   421  	m.Mode = RdmaMode(buf.DecodeUint32())
   422  	m.NoMultiSeg = buf.DecodeBool()
   423  	m.MaxPktlen = buf.DecodeUint16()
   424  	m.Rss4 = RdmaRss4(buf.DecodeUint32())
   425  	m.Rss6 = RdmaRss6(buf.DecodeUint32())
   426  	return nil
   427  }
   428  
   429  // - client_index - opaque cookie to identify the sender
   430  //   - sw_if_index - interface index
   431  //
   432  // RdmaCreateV3Reply defines message 'rdma_create_v3_reply'.
   433  type RdmaCreateV3Reply struct {
   434  	Retval    int32                          `binapi:"i32,name=retval" json:"retval,omitempty"`
   435  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
   436  }
   437  
   438  func (m *RdmaCreateV3Reply) Reset()               { *m = RdmaCreateV3Reply{} }
   439  func (*RdmaCreateV3Reply) GetMessageName() string { return "rdma_create_v3_reply" }
   440  func (*RdmaCreateV3Reply) GetCrcString() string   { return "5383d31f" }
   441  func (*RdmaCreateV3Reply) GetMessageType() api.MessageType {
   442  	return api.ReplyMessage
   443  }
   444  
   445  func (m *RdmaCreateV3Reply) Size() (size int) {
   446  	if m == nil {
   447  		return 0
   448  	}
   449  	size += 4 // m.Retval
   450  	size += 4 // m.SwIfIndex
   451  	return size
   452  }
   453  func (m *RdmaCreateV3Reply) Marshal(b []byte) ([]byte, error) {
   454  	if b == nil {
   455  		b = make([]byte, m.Size())
   456  	}
   457  	buf := codec.NewBuffer(b)
   458  	buf.EncodeInt32(m.Retval)
   459  	buf.EncodeUint32(uint32(m.SwIfIndex))
   460  	return buf.Bytes(), nil
   461  }
   462  func (m *RdmaCreateV3Reply) Unmarshal(b []byte) error {
   463  	buf := codec.NewBuffer(b)
   464  	m.Retval = buf.DecodeInt32()
   465  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   466  	return nil
   467  }
   468  
   469  // - client_index - opaque cookie to identify the sender
   470  //   - sw_if_index - interface index
   471  //
   472  // RdmaDelete defines message 'rdma_delete'.
   473  type RdmaDelete struct {
   474  	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
   475  }
   476  
   477  func (m *RdmaDelete) Reset()               { *m = RdmaDelete{} }
   478  func (*RdmaDelete) GetMessageName() string { return "rdma_delete" }
   479  func (*RdmaDelete) GetCrcString() string   { return "f9e6675e" }
   480  func (*RdmaDelete) GetMessageType() api.MessageType {
   481  	return api.RequestMessage
   482  }
   483  
   484  func (m *RdmaDelete) Size() (size int) {
   485  	if m == nil {
   486  		return 0
   487  	}
   488  	size += 4 // m.SwIfIndex
   489  	return size
   490  }
   491  func (m *RdmaDelete) Marshal(b []byte) ([]byte, error) {
   492  	if b == nil {
   493  		b = make([]byte, m.Size())
   494  	}
   495  	buf := codec.NewBuffer(b)
   496  	buf.EncodeUint32(uint32(m.SwIfIndex))
   497  	return buf.Bytes(), nil
   498  }
   499  func (m *RdmaDelete) Unmarshal(b []byte) error {
   500  	buf := codec.NewBuffer(b)
   501  	m.SwIfIndex = interface_types.InterfaceIndex(buf.DecodeUint32())
   502  	return nil
   503  }
   504  
   505  // RdmaDeleteReply defines message 'rdma_delete_reply'.
   506  type RdmaDeleteReply struct {
   507  	Retval int32 `binapi:"i32,name=retval" json:"retval,omitempty"`
   508  }
   509  
   510  func (m *RdmaDeleteReply) Reset()               { *m = RdmaDeleteReply{} }
   511  func (*RdmaDeleteReply) GetMessageName() string { return "rdma_delete_reply" }
   512  func (*RdmaDeleteReply) GetCrcString() string   { return "e8d4e804" }
   513  func (*RdmaDeleteReply) GetMessageType() api.MessageType {
   514  	return api.ReplyMessage
   515  }
   516  
   517  func (m *RdmaDeleteReply) Size() (size int) {
   518  	if m == nil {
   519  		return 0
   520  	}
   521  	size += 4 // m.Retval
   522  	return size
   523  }
   524  func (m *RdmaDeleteReply) Marshal(b []byte) ([]byte, error) {
   525  	if b == nil {
   526  		b = make([]byte, m.Size())
   527  	}
   528  	buf := codec.NewBuffer(b)
   529  	buf.EncodeInt32(m.Retval)
   530  	return buf.Bytes(), nil
   531  }
   532  func (m *RdmaDeleteReply) Unmarshal(b []byte) error {
   533  	buf := codec.NewBuffer(b)
   534  	m.Retval = buf.DecodeInt32()
   535  	return nil
   536  }
   537  
   538  func init() { file_rdma_binapi_init() }
   539  func file_rdma_binapi_init() {
   540  	api.RegisterMessage((*RdmaCreate)(nil), "rdma_create_076fe418")
   541  	api.RegisterMessage((*RdmaCreateReply)(nil), "rdma_create_reply_5383d31f")
   542  	api.RegisterMessage((*RdmaCreateV2)(nil), "rdma_create_v2_5826a4f3")
   543  	api.RegisterMessage((*RdmaCreateV2Reply)(nil), "rdma_create_v2_reply_5383d31f")
   544  	api.RegisterMessage((*RdmaCreateV3)(nil), "rdma_create_v3_c6287ea8")
   545  	api.RegisterMessage((*RdmaCreateV3Reply)(nil), "rdma_create_v3_reply_5383d31f")
   546  	api.RegisterMessage((*RdmaDelete)(nil), "rdma_delete_f9e6675e")
   547  	api.RegisterMessage((*RdmaDeleteReply)(nil), "rdma_delete_reply_e8d4e804")
   548  }
   549  
   550  // Messages returns list of all messages in this module.
   551  func AllMessages() []api.Message {
   552  	return []api.Message{
   553  		(*RdmaCreate)(nil),
   554  		(*RdmaCreateReply)(nil),
   555  		(*RdmaCreateV2)(nil),
   556  		(*RdmaCreateV2Reply)(nil),
   557  		(*RdmaCreateV3)(nil),
   558  		(*RdmaCreateV3Reply)(nil),
   559  		(*RdmaDelete)(nil),
   560  		(*RdmaDeleteReply)(nil),
   561  	}
   562  }