CNDP  22.08.0
__cne_packed Struct Reference

#include <memif.h>

Data Fields

uint8_t name [CNE_MEMIF_NAME_SZ]
 
cne_memif_version_t min_version
 
cne_memif_version_t max_version
 
cne_memif_region_index_t max_region
 
cne_memif_ring_index_t max_s2c_ring
 
cne_memif_ring_index_t max_c2s_ring
 
cne_memif_log2_ring_size_t max_log2_ring_size
 
cne_memif_version_t version
 
cne_memif_interface_id_t id
 
cne_memif_interface_mode_t mode: 8
 
uint8_t secret [24]
 
cne_memif_region_index_t index
 
cne_memif_region_size_t size
 
uint16_t flags
 
cne_memif_ring_index_t index
 
cne_memif_region_index_t region
 
cne_memif_region_offset_t offset
 
cne_memif_log2_ring_size_t log2_ring_size
 
uint16_t private_hdr_size
 
uint8_t if_name [CNE_MEMIF_NAME_SZ]
 
uint32_t code
 
uint8_t string [96]
 
uint32_t length
 

Detailed Description

S2C Contains server interfaces configuration.

C2S Contains information required to identify interface to which the client wants to connect.

C2S Request server to add new shared memory region to server interface. Shared files file descriptor is passed in cmsghdr.

C2S Request server to add new ring to server interface.

C2S Finalize connection establishment.

S2C Finalize connection establishment.

C2S & S2C Disconnect interfaces.

Buffer descriptor.

Definition at line 62 of file memif.h.

Field Documentation

◆ name

uint8_t name

Client app name

Definition at line 63 of file memif.h.

◆ min_version

cne_memif_version_t min_version

lowest supported memif version

Definition at line 64 of file memif.h.

◆ max_version

cne_memif_version_t max_version

highest supported memif version

Definition at line 65 of file memif.h.

◆ max_region

cne_memif_region_index_t max_region

maximum num of regions

Definition at line 66 of file memif.h.

◆ max_s2c_ring

cne_memif_ring_index_t max_s2c_ring

maximum num of S2C ring

Definition at line 67 of file memif.h.

◆ max_c2s_ring

cne_memif_ring_index_t max_c2s_ring

maximum num of C2S rings

Definition at line 68 of file memif.h.

◆ max_log2_ring_size

cne_memif_log2_ring_size_t max_log2_ring_size

maximum ring size (as log2)

Definition at line 69 of file memif.h.

◆ version

cne_memif_version_t version

memif version

Definition at line 78 of file memif.h.

◆ id

cne_memif_interface_id_t id

interface id

Definition at line 79 of file memif.h.

◆ mode

cne_memif_interface_mode_t mode

interface mode

Definition at line 80 of file memif.h.

◆ secret

uint8_t secret[24]

optional security parameter

Definition at line 81 of file memif.h.

◆ index [1/2]

cne_memif_region_index_t index

shm regions index

Definition at line 91 of file memif.h.

◆ size

cne_memif_region_size_t size

shm region size

Definition at line 92 of file memif.h.

◆ flags

uint16_t flags

flags

Definition at line 100 of file memif.h.

◆ index [2/2]

cne_memif_ring_index_t index

ring index

Definition at line 102 of file memif.h.

◆ region

cne_memif_region_index_t region

region index on which this ring is located

region index on which the buffer is located

Definition at line 103 of file memif.h.

◆ offset

cne_memif_region_offset_t offset

buffer start offset

buffer offset

Definition at line 104 of file memif.h.

◆ log2_ring_size

cne_memif_log2_ring_size_t log2_ring_size

ring size (log2)

Definition at line 105 of file memif.h.

◆ private_hdr_size

uint16_t private_hdr_size

used for private metadata

Definition at line 106 of file memif.h.

◆ if_name

uint8_t if_name

client interface name

server interface name

Definition at line 114 of file memif.h.

◆ code

uint32_t code

error code

Definition at line 130 of file memif.h.

◆ string

uint8_t string[96]

disconnect reason

Definition at line 131 of file memif.h.

◆ length

uint32_t length

buffer length

Definition at line 160 of file memif.h.


The documentation for this struct was generated from the following file: