API Reference Manual
1.46.0
|
Packet input queue parameters. More...
#include <packet_io_types.h>
Data Fields | |
odp_pktio_op_mode_t | op_mode |
Operation mode. More... | |
odp_bool_t | classifier_enable |
Enable classifier. More... | |
odp_bool_t | hash_enable |
Enable flow hashing. More... | |
odp_pktin_hash_proto_t | hash_proto |
Protocol field selection for hashing. More... | |
uint32_t | num_queues |
Number of input queues to be created. More... | |
uint32_t | queue_size [ODP_PKTIN_MAX_QUEUES] |
Input queue size array. More... | |
odp_queue_param_t | queue_param |
Queue parameters. More... | |
odp_pktin_queue_param_ovr_t * | queue_param_ovr |
Queue parameters override. More... | |
odp_pktin_vector_config_t | vector |
Packet input vector configuration. | |
Packet input queue parameters.
Definition at line 230 of file api/spec/packet_io_types.h.
odp_pktio_op_mode_t odp_pktin_queue_param_t::op_mode |
Operation mode.
The default value is ODP_PKTIO_OP_MT. Application may enable performance optimization by defining ODP_PKTIO_OP_MT_UNSAFE when applicable.
Definition at line 236 of file api/spec/packet_io_types.h.
odp_bool_t odp_pktin_queue_param_t::classifier_enable |
Enable classifier.
Definition at line 246 of file api/spec/packet_io_types.h.
odp_bool_t odp_pktin_queue_param_t::hash_enable |
Enable flow hashing.
Definition at line 255 of file api/spec/packet_io_types.h.
odp_pktin_hash_proto_t odp_pktin_queue_param_t::hash_proto |
Protocol field selection for hashing.
Multiple protocols can be selected. Ignored when 'hash_enable' is zero. The default value is all bits zero.
Definition at line 261 of file api/spec/packet_io_types.h.
uint32_t odp_pktin_queue_param_t::num_queues |
Number of input queues to be created.
When classifier is enabled in odp_pktin_queue_config() this value is ignored, otherwise at least one queue is required. More than one input queues require flow hashing configured. The maximum value is defined by pktio capability 'max_input_queues'. Queue type is defined by the input mode. The default value is 1.
Definition at line 270 of file api/spec/packet_io_types.h.
uint32_t odp_pktin_queue_param_t::queue_size[ODP_PKTIN_MAX_QUEUES] |
Input queue size array.
An array containing queue sizes for each 'num_queues' input queues in ODP_PKTIN_MODE_DIRECT mode. The value of zero means implementation specific default size. Nonzero values must be between 'min_input_queue_size' and 'max_input_queue_size' capabilities. The implementation may round-up given values. The default value is zero.
Definition at line 280 of file api/spec/packet_io_types.h.
odp_queue_param_t odp_pktin_queue_param_t::queue_param |
Queue parameters.
These are used for input queue creation in ODP_PKTIN_MODE_QUEUE or ODP_PKTIN_MODE_SCHED modes. Scheduler parameters are considered only in ODP_PKTIN_MODE_SCHED mode. Default values are defined in odp_queue_param_t documentation. The type field is ignored and the queue type is deduced from the pktio input mode. When classifier is enabled in odp_pktin_queue_config() this value is ignored.
Definition at line 291 of file api/spec/packet_io_types.h.
odp_pktin_queue_param_ovr_t* odp_pktin_queue_param_t::queue_param_ovr |
Queue parameters override.
When the override array is defined, the same parameter value in 'queue_param' is ignored and these per queue parameter values are used instead. Array elements are used in order (i.e. the first queue gets parameters from the first array element, etc). Must point to an array of num_queues elements or NULL to disable queue parameters override. The default value is NULL.
Definition at line 304 of file api/spec/packet_io_types.h.