spdk_sock_impl_opts Struct Reference

SPDK socket implementation options. More...

Data Fields

uint32_t recv_buf_size
 Size of sock receive buffer. More...
 
uint32_t send_buf_size
 Size of sock send buffer. More...
 
bool enable_recv_pipe
 Enable or disable receive pipe. More...
 
bool enable_zerocopy_send
 Deprecated, please use enable_zerocopy_send_server or enable_zerocopy_send_client instead Enable or disable use of zero copy flow on send. More...
 
bool enable_quickack
 Enable or disable quick ACK. More...
 
uint32_t enable_placement_id
 Enable or disable placement_id. More...
 
bool enable_zerocopy_send_server
 Enable or disable use of zero copy flow on send for server sockets. More...
 
bool enable_zerocopy_send_client
 Enable or disable use of zero copy flow on send for client sockets. More...
 
uint32_t zerocopy_threshold
 Set zerocopy threshold in bytes. More...
 

Detailed Description

SPDK socket implementation options.

A pointer to this structure is used by spdk_sock_impl_get_opts() and spdk_sock_impl_set_opts() to allow the user to request options for the socket module implementation. Each socket module defines which options from this structure are applicable to the module.

Field Documentation

◆ enable_placement_id

uint32_t spdk_sock_impl_opts::enable_placement_id

Enable or disable placement_id.

Used by posix and uring socket modules. Valid values in the enum spdk_placement_mode.

◆ enable_quickack

bool spdk_sock_impl_opts::enable_quickack

Enable or disable quick ACK.

Used by posix and uring socket modules.

◆ enable_recv_pipe

bool spdk_sock_impl_opts::enable_recv_pipe

Enable or disable receive pipe.

Used by posix and uring socket modules.

◆ enable_zerocopy_send

bool spdk_sock_impl_opts::enable_zerocopy_send

Deprecated, please use enable_zerocopy_send_server or enable_zerocopy_send_client instead Enable or disable use of zero copy flow on send.

Used by posix socket module.

◆ enable_zerocopy_send_client

bool spdk_sock_impl_opts::enable_zerocopy_send_client

Enable or disable use of zero copy flow on send for client sockets.

Used by posix and uring socket modules.

◆ enable_zerocopy_send_server

bool spdk_sock_impl_opts::enable_zerocopy_send_server

Enable or disable use of zero copy flow on send for server sockets.

Used by posix and uring socket modules.

◆ recv_buf_size

uint32_t spdk_sock_impl_opts::recv_buf_size

Size of sock receive buffer.

Used by posix and uring socket modules.

◆ send_buf_size

uint32_t spdk_sock_impl_opts::send_buf_size

Size of sock send buffer.

Used by posix and uring socket modules.

◆ zerocopy_threshold

uint32_t spdk_sock_impl_opts::zerocopy_threshold

Set zerocopy threshold in bytes.

A consecutive sequence of requests' iovecs that fall below this threshold may be sent without zerocopy flag set.


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