DPDK  19.11.14
Data Fields
rte_eth_vmdq_rx_conf Struct Reference

#include <rte_ethdev.h>

Data Fields

enum rte_eth_nb_pools nb_queue_pools
 
uint8_t enable_default_pool
 
uint8_t default_pool
 
uint8_t enable_loop_back
 
uint8_t nb_pool_maps
 
uint32_t rx_mode
 
struct {
   uint16_t   vlan_id
 
   uint64_t   pools
 
pool_map [ETH_VMDQ_MAX_VLAN_FILTERS]
 

Detailed Description

A structure used to configure the VMDQ feature of an Ethernet port when not combined with the DCB feature.

Using this feature, packets are routed to a pool of queues. By default, the pool selection is based on the MAC address, the vlan id in the vlan tag as specified in the pool_map array. Passing the ETH_VMDQ_ACCEPT_UNTAG in the rx_mode field allows pool selection using only the MAC address. MAC address to pool mapping is done using the rte_eth_dev_mac_addr_add function, with the pool parameter corresponding to the pool id.

Queue selection within the selected pool will be done using RSS when it is enabled or revert to the first queue of the pool if not.

A default pool may be used, if desired, to route all traffic which does not match the vlan filter rules or any pool MAC address.

Examples:
examples/vhost/main.c, examples/vmdq/main.c, and examples/vmdq_dcb/main.c.

Definition at line 776 of file rte_ethdev.h.

Field Documentation

◆ nb_queue_pools

enum rte_eth_nb_pools nb_queue_pools

VMDq only mode, 8 or 64 pools

Examples:
examples/vhost/main.c, examples/vmdq/main.c, and examples/vmdq_dcb/main.c.

Definition at line 777 of file rte_ethdev.h.

◆ enable_default_pool

uint8_t enable_default_pool

If non-zero, use a default pool

Examples:
examples/vmdq/main.c, and examples/vmdq_dcb/main.c.

Definition at line 778 of file rte_ethdev.h.

◆ default_pool

uint8_t default_pool

The default pool, if applicable

Examples:
examples/vmdq/main.c, and examples/vmdq_dcb/main.c.

Definition at line 779 of file rte_ethdev.h.

◆ enable_loop_back

uint8_t enable_loop_back

Enable VT loop back

Examples:
examples/vhost/main.c.

Definition at line 780 of file rte_ethdev.h.

◆ nb_pool_maps

uint8_t nb_pool_maps

We can have up to 64 filters/mappings

Examples:
examples/vhost/main.c, examples/vmdq/main.c, and examples/vmdq_dcb/main.c.

Definition at line 781 of file rte_ethdev.h.

◆ rx_mode

uint32_t rx_mode

Flags from ETH_VMDQ_ACCEPT_*

Examples:
examples/vhost/main.c.

Definition at line 782 of file rte_ethdev.h.

◆ vlan_id

uint16_t vlan_id

The vlan id of the received frame

Examples:
examples/vhost/main.c, examples/vmdq/main.c, and examples/vmdq_dcb/main.c.

Definition at line 784 of file rte_ethdev.h.

◆ pools

uint64_t pools

Bitmask of pools for packet rx

Examples:
examples/vhost/main.c, examples/vmdq/main.c, and examples/vmdq_dcb/main.c.

Definition at line 785 of file rte_ethdev.h.

◆ pool_map

struct { ... } pool_map[ETH_VMDQ_MAX_VLAN_FILTERS]

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