Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Vpp interface data structure

2025-02-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Dpdk_device_t field description

Lockp send queue lock. When the number of sending queues is less than the number of threads, sending packets to port needs to be locked. Lockp is an array, and each element corresponds to a sending queue, that is, one lock for each sending queue.

Index assigned to port by device_index, one for each port

Vlib_hw_if_index the index of the hw structure corresponding to the port

Vlib_sw_if_index the index of the sw structure corresponding to the port

Per_interface_next_index sets the index of the next node through the plug-in. If this field is not set, the next node is handoff by default.

Tx_vectors packet cache (array), one per thread, each array size is 4096

Rx_vectors packet receiving cache (array), one for each receive queue, each array size is 256,

D_trace_bufferstrace is used to store mbuf arrays

The array used by frames to distribute packages, one for each thread, which is not currently in use

Dev_type device type: ETH, KNI, VHOST_USER

Pmd driver types: THUNDERX, E1000EM, IGB, IGBVF, IXGBE, IXGBEVF, I40E, I40EVF, VIRTIO, VICE

Cpu_socket the numa where the port is located

Administrative status of admin_upport

Promisc hybrid mode

Number of tx_q_usedport send queues

Number of rx_q_usedport receive queues

Nb_rx_descport receive queue size (number of descriptors)

Nb_tx_descPort send queue size (number of descriptors)

Cpu_socket_id_by_queue receives the socket corresponding to the core of each receiving queue

Configuration of port_confport

Tx_conf send queue configuration

KniKni port

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 statu

When time_last_link_update last updated port status

Statistical count of statsport

Statistical techniques of port obtained last time by last_stats

Statistical count of port last cleared by last_cleared_stats

Xstatsport extended statistics

Extended statistical count of port last cleared by last_cleared_xstats

When time_last_stats_update last updated the port count

Types of port_typePort: 1G, 10G, 40G, BOND, SWITCH, NETMAP, AF_PACKET

Efd_agentefd function related

Whether the need_txlock package needs to be locked.

Ethernet_interface_t field description

Flag modification functions such as management status and mixed mode of flag_changePort

Driver_instance is not in use yet.

Mac address of address [6] Port

Vnet_hw_interface_t field description

Namehw API name

FlagsHw interface status:

VNET_HW_INTERFACE_FLAG_LINK_UP

Hw_addresshw interface mac address

Index of the output_node_indexOutput node

Index of the tx_node_indexTx node

Dev_class_index device Type Index: dpdk_device_class.index

Dev_instance device instance Index: index of dpdk_device_t structure

Hw_class_indexhw interface type index:

Ethernet_hw_interface_class.index

Hw_instancehw interface type instance index: index of ethernet_interface_t structure

Index of hw_if_indexhw structure

Index of sw_if_indexSw structure

Max_rate_bits_per_sec transmission rate per second, which is not in use

Minimum packet length supported by min_supported_packet_bytes API. Default: 64

Maximum packet length supported by max_supported_packet_bytes API. Default: 9216

Minimum packet length supported by min_packet_bytes API. Default: 64

Maximum packet length supported by max_packet_bytes API. Default: 9216

Per_packet_overhead_bytes extra node length: 20, not seen to be useful so far

Max_l3_packet_bytes [] MRU/ MTU value of layer 3. Default: 9000.

Sub_interface_sw_if_index_by_ id subinterface index hash table, with key as the tag value and value as the subinterface index

If l2_if_count is 1, all bags go ethernet-input?

Bond_infobond oral use

Vnet_sw_interface_t field description

Typesw API type: HARDWARE,

SUB

Flags markers: ADMIN_UP, PUNT, PROXY_ARP, UNNUMBERED, BOND_SLAVE

Sw_if_indexsw interface index

Sup_sw_if_index parent interface index

Unnumbered_sw_if_index unnumbered interface index:

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

Ip-unnumbered/ip-unnumbered_chs.html

Link_speed link rate, not currently in use

Output_feature_bitmapOutput feature, only ipsec-output for the time being.

Hw_if_index/ sub consortium. The hw_if_index points to the index of the hw when the parent interface is used, and the sub is used to store the information related to the subinterface when the child interface is a child interface.

Vnet_sub_interface_t field description

Id label id

Eth .outer _ vlan_id outer label id

Eth .inner _ vlan_id memory label id

Eth .raw _ flags/eth .flags

Flag bit:

No_tags: no tag

One_tag: there is a tag

Two_tags: there are two tag

Dot1ad:0 = dot1q, 1=dot1ad

Exact_match:

Default_sub: default subinterface?

Outer_vlan_id_any: matches any outer tag, not implemented

Inner_vlan_id_any: matches any inner tag, not implemented

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report