VPP Interface Data structure

Source: Internet
Author: User

dpdk_device_t Field Description

LOCKP Send queue lock, when the number of send queue is less than the number of threads to the port to need to lock the packet, LOCKP is an array, each element corresponds to a send queue, that is, each send queue a lock

Device_index The index assigned to port, one per port

Vlib_hw_if_index Index of the HW structure corresponding to the port

Vlib_sw_if_index Index of the SW structure corresponding to the port

Per_interface_next_index The index of the next node set by the plug-in, if the field is not set, the default next node is handoff

Tx_vectors Packet Cache (array), one per thread, each array size is 4096

Rx_vectors Packet Cache (array), one per receive queue, 256 per array size

D_trace_buffersTrace for storing mbuf arrays

An array of frames used for distributing packets, one per thread, currently unused

Dev_type Device types: ETH, KNI, Vhost_user

PMD Drive types: ThunderX, E1000em, IGB, IGBVF, IXGBE, IXGBEVF, i40e, I40EVF, VIRTIO, VICE

Cpu_socket The NUMA where the port resides

ADMIN_UPPort management status

Promisc Promiscuous mode

tx_q_usedport number of Send queues

rx_q_usedPort number of Receive queues

Nb_rx_descPort receive Queue size (descriptor number)

Nb_tx_descPort send Queue Size (descriptor number)

Cpu_socket_id_by_queue The socket for each receive queue's core

Configurationof the port_conf port

tx_conf Send queue configuration

Knikni Mouth

kni_port_idkni Port ID

vu_if_id

Vhost-user related fields

Vu_vhost_dev

Vu_is_running

vu_intf

af_packet_port_idaf_packet Port ID

LinkPort status

Time_last_link_update The last time the port status was updated

StatisticalCount of stats port

Last_stats Statistics techniques for the last acquired port

Last_cleared_stats Statistics Count of the last purged port

XstatsPort Extension statistics

Last_cleared_xstats The extended statistics count of the last purged port

Time_last_stats_update last update port statistics count time

Port_typePort types: 1G, 10G, 40G, BOND, SWITCH, Netmap, Af_packet

Efd_agentEFD Function-related

Need_txlock Whether the contract needs to be locked


ethernet_interface_t Field Description

Flag_changeport management status, mixed mode, and other flag modification functions

Driver_instance not used

ADDRESS[6]Port's MAC address


vnet_hw_interface_t Field Description

NameHW interface Names

FlagsHW Interface State:

Vnet_hw_interface_flag_link_up

Hw_addressHW Interface MAC address

Output_node_indexThe index of the output node

Indexof the Tx_node_index TX node

Dev_class_index Device type index: Dpdk_device_class.index

Dev_instance Device Instance index: Index of the dpdk_device_t structure

Hw_class_indexHW Interface Type index:

Ethernet_hw_interface_class.index

Hw_instanceHW Interface Type Instance index: Index of the ethernet_interface_t structure

Indexof the HW_IF_INDEX HW structure

Indexof the SW_IF_INDEX SW structure

Max_rate_bits_per_sec per second transfer rate, not currently used

Minimum Packet length supported by the Min_supported_packet_bytes interface, default: 64

Maximum packet length supported by the Max_supported_packet_bytes interface, default: 9216

Minimum Packet length supported by the Min_packet_bytes interface, default: 64

Maximum packet length supported by the Max_packet_bytes interface, default: 9216

Per_packet_overhead_bytes Extra node Length: 20, not currently seen useful

Max_l3_packet_bytes[] The MRU/MTU value of layer three, default: 9000

sub_interface_sw_if_index_by_id Sub-interface index hash table, key is tag value, value is sub-interface index

L2_if_count If 1, all the bags go ethernet-input?

Bond_infobond mouth with


vnet_sw_interface_t Field Description

TypeSW interface types: HARDWARE,

SUB

Flags Flags: admin_up, PUNT, Proxy_arp, unnumbered, Bond_slave

Sw_if_indexSW interface Index

Sup_sw_if_index Parent Interface Index

Unnumbered_sw_if_index No numbered interface index:

http://www.china-ccie.com/doc/

Ip-unnumbered/ip-unnumbered_chs.html

Link_speed link rate, not currently used

Output_feature_bitmapOutput feature, temporarily only ipsec-output

Hw_if_index/sub Union, parent interface when Hw_if_index points to the HW index, sub-interface when sub is used to hold sub-interface related information



vnet_sub_interface_t Field Description

ID Tag ID

ETH. outer_vlan_id outer tag ID

ETH. inner_vlan_id memory Tag ID

ETH Raw_flags/eth. Flags

Flag bit:

No_tags: No Tag

One_tag: There is a tag

Two_tags: There are two tags

dot1ad:0 = dot1q, 1=dot1ad

Exact_match:

Default_sub: Default sub-interface?

Outer_vlan_id_any: Matches any outer tag, not implemented

Inner_vlan_id_any: Match any inner tag, not implemented



This article is from "Chen Yu blog" blog, please be sure to keep this source http://chenpiaoping.blog.51cto.com/5631143/1792697

VPP Interface Data structure

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.