DPDK  19.08.2
Data Fields
rte_sched_port_params Struct Reference

#include <rte_sched.h>

Data Fields

const char * name
 
int socket
 
uint32_t rate
 
uint32_t mtu
 
uint32_t frame_overhead
 
uint32_t n_subports_per_port
 
uint32_t n_pipes_per_subport
 
uint16_t qsize [RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE]
 
struct rte_sched_pipe_params * pipe_profiles
 
uint32_t n_pipe_profiles
 
uint32_t n_max_pipe_profiles
 

Detailed Description

Port configuration parameters.

Examples:
examples/ip_pipeline/tmgr.c, examples/qos_sched/cfg_file.c, and examples/qos_sched/init.c.

Definition at line 206 of file rte_sched.h.

Field Documentation

const char* name

Name of the port to be associated

Examples:
examples/ip_pipeline/tmgr.c, and examples/qos_sched/init.c.

Definition at line 208 of file rte_sched.h.

int socket

CPU socket ID

Examples:
examples/qos_sched/init.c.

Definition at line 211 of file rte_sched.h.

uint32_t rate

Output port rate (measured in bytes per second)

Examples:
examples/qos_sched/init.c.

Definition at line 214 of file rte_sched.h.

uint32_t mtu

Maximum Ethernet frame size (measured in bytes). Should not include the framing overhead.

Definition at line 219 of file rte_sched.h.

uint32_t frame_overhead

Framing overhead per packet (measured in bytes)

Examples:
examples/qos_sched/cfg_file.c.

Definition at line 222 of file rte_sched.h.

uint32_t n_subports_per_port

Number of subports

Examples:
examples/qos_sched/cfg_file.c, and examples/qos_sched/init.c.

Definition at line 225 of file rte_sched.h.

uint32_t n_pipes_per_subport

Number of subport_pipes

Examples:
examples/qos_sched/cfg_file.c, and examples/qos_sched/init.c.

Definition at line 228 of file rte_sched.h.

Packet queue size for each traffic class. All the pipes within the same subport share the similar configuration for the queues.

Examples:
examples/qos_sched/cfg_file.c.

Definition at line 234 of file rte_sched.h.

struct rte_sched_pipe_params* pipe_profiles

Pipe profile table. Every pipe is configured using one of the profiles from this table.

Examples:
examples/qos_sched/init.c.

Definition at line 239 of file rte_sched.h.

uint32_t n_pipe_profiles

Profiles in the pipe profile table

Definition at line 242 of file rte_sched.h.

uint32_t n_max_pipe_profiles

Max profiles allowed in the pipe profile table

Definition at line 245 of file rte_sched.h.


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