---
name: "packet.application.rpcordma"
section: "3"
platform: "linux"
package: "nfstest"
version: "3.2-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/packet.application.rpcordma"
---

# packet.application.rpcordma(3)

RPCORDMA decoding module

## NAME

packet.application.rpcordma - RPCORDMA decoding module

## CLASSES

### class RPCoRDMA(baseobj.BaseObj)

```
struct RPCoRDMA {
    uint32    xid;     /* Mirrors the RPC header xid */
    uint32    vers;    /* Version of this protocol */
    uint32    credit;  /* Buffers requested/granted */
    rdma_body body;
};
```

**Methods defined here:** ---------------------

**\_\_init\_\_(self, unpack)** Constructor

Initialize object's private data according to the arguments given. Arguments can be given as positional, named arguments or a combination of both.

### class rdma\_body(baseobj.BaseObj)

```
union switch rdma_body (rdma_proc proc) {
    case const.RDMA_MSG:
        rpc_rdma_header rdma_msg;
    case const.RDMA_NOMSG:
        rpc_rdma_header_nomsg rdma_nomsg;
    case const.RDMA_MSGP:                 /* Not to be used */
        rpc_rdma_header_padded rdma_msgp;
    case const.RDMA_DONE:                 /* Not to be used */
        void;
    case const.RDMA_ERROR:
        rpc_rdma_error rdma_error;
};
```

**Methods defined here:** ---------------------

**\_\_init\_\_(self, unpack)** Constructor

Initialize object's private data according to the arguments given. Arguments can be given as positional, named arguments or a combination of both.

### class rdma\_proc(packet.utils.Enum)

```
enum rdma_proc
```

### class rpc\_rdma\_errcode(packet.utils.Enum)

```
enum rpc_rdma_errcode
```

### class rpc\_rdma\_error(baseobj.BaseObj)

```
union switch rpc_rdma_error (rpc_rdma_errcode err) {
    case const.ERR_VERS:
        rpc_rdma_errvers range;
    case const.ERR_CHUNK:
        void;
};
```

**Methods defined here:** ---------------------

**\_\_init\_\_(self, unpack)** Constructor

Initialize object's private data according to the arguments given. Arguments can be given as positional, named arguments or a combination of both.

### class rpc\_rdma\_errvers(baseobj.BaseObj)

```
struct rpc_rdma_errvers {
    uint32 low;
    uint32 high;
};
```

**Methods defined here:** ---------------------

**\_\_init\_\_(self, unpack)** Constructor

Initialize object's private data according to the arguments given. Arguments can be given as positional, named arguments or a combination of both.

### class rpc\_rdma\_header(baseobj.BaseObj)

```
struct rpc_rdma_header {
    xdr_read_list   *reads;
    xdr_write_list  *writes;
    xdr_write_chunk *reply;
};
```

**Methods defined here:** ---------------------

**\_\_init\_\_(self, unpack)** Constructor

Initialize object's private data according to the arguments given. Arguments can be given as positional, named arguments or a combination of both.

### class rpc\_rdma\_header\_nomsg(baseobj.BaseObj)

```
struct rpc_rdma_header_nomsg {
    xdr_read_list   *reads;
    xdr_write_list  *writes;
    xdr_write_chunk *reply;
};
```

**Methods defined here:** ---------------------

**\_\_init\_\_(self, unpack)** Constructor

Initialize object's private data according to the arguments given. Arguments can be given as positional, named arguments or a combination of both.

### class rpc\_rdma\_header\_padded(baseobj.BaseObj)

```
struct rpc_rdma_header_padded {
    uint32          align;    /* Padding alignment */
    uint32          thresh;   /* Padding threshold */
    xdr_read_list   *reads;
    xdr_write_list  *writes;
    xdr_write_chunk *reply;
};
```

**Methods defined here:** ---------------------

**\_\_init\_\_(self, unpack)** Constructor

Initialize object's private data according to the arguments given. Arguments can be given as positional, named arguments or a combination of both.

### class xdr\_rdma\_segment(baseobj.BaseObj)

```
struct xdr_rdma_segment {
    uint32 handle;  /* Registered memory handle */
    uint32 length;  /* Length of the chunk in bytes */
    uint64 offset;  /* Chunk virtual address or offset */
};
```

**Methods defined here:** ---------------------

**\_\_init\_\_(self, unpack)** Constructor

Initialize object's private data according to the arguments given. Arguments can be given as positional, named arguments or a combination of both.

### class xdr\_read\_chunk(baseobj.BaseObj)

```
struct xdr_read_chunk {
    uint32           position;  /* Position in XDR stream */
    xdr_rdma_segment target;
};
```

**Methods defined here:** ---------------------

**\_\_init\_\_(self, unpack)** Constructor

Initialize object's private data according to the arguments given. Arguments can be given as positional, named arguments or a combination of both.

### class xdr\_read\_list(baseobj.BaseObj)

```
struct xdr_read_list {
    xdr_read_chunk entry;
    xdr_read_list  *next;
};
```

**Methods defined here:** ---------------------

**\_\_init\_\_(self, unpack)** Constructor

Initialize object's private data according to the arguments given. Arguments can be given as positional, named arguments or a combination of both.

### class xdr\_write\_chunk(baseobj.BaseObj)

```
struct xdr_write_chunk {
    xdr_rdma_segment target<>;
};
```

**Methods defined here:** ---------------------

**\_\_init\_\_(self, unpack)** Constructor

Initialize object's private data according to the arguments given. Arguments can be given as positional, named arguments or a combination of both.

### class xdr\_write\_list(baseobj.BaseObj)

```
struct xdr_write_list {
    xdr_write_chunk entry;
    xdr_write_list  *next;
};
```

**Methods defined here:** ---------------------

**\_\_init\_\_(self, unpack)** Constructor

Initialize object's private data according to the arguments given. Arguments can be given as positional, named arguments or a combination of both.

## SEE ALSO

**[baseobj(3)](/baseobj/3.md),** **[packet.application.rpcordma\_const(3)](/packet.application.rpcordma_const/3.md),** **[packet.unpack(3)](/packet.unpack/3.md),** **[packet.utils(3)](/packet.utils/3.md)**

## BUGS

No known bugs.

## AUTHOR

Jorge Mora (mora@netapp.com)
