proc-info -- 0x10 --xstats do not show the correct statistics
https://bugs.dpdk.org/show_bug.cgi?id=1059
Bug ID: 1059
Summary: proc-info -- 0x10 --xstats do not show the correct
statistics
Product: DPDK
Version: 21.11
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: other
Assignee: [email protected]
Reporter: [email protected]Target Milestone: ---
when call dpdk-proc-info -- 0x10 --xstats it show the following message
###### NIC extended statistics for port 4 #########
####################################################rx_good_packets: 0tx_good_packets: 0rx_good_bytes: 0tx_good_bytes: 0rx_missed_errors: 0rx_errors: 0tx_errors: 0rx_mbuf_allocation_errors: 0rx_crc_errors: 0rx_align_errors: 0rx_symbol_errors: 0rx_missed_packets: 0 tx_single_collision_packets: 0 tx_multiple_collision_packets: 0 tx_excessive_collision_packets: 0tx_late_collisions: 0tx_total_collisions: 0tx_deferred_packets: 0 tx_no_carrier_sense_packets: 0rx_carrier_ext_errors: 0rx_length_errors: 0rx_xon_packets: 0tx_xon_packets: 0rx_xoff_packets: 0tx_xoff_packets: 0 rx_flow_control_unsupported_packets: 0rx_size_64_packets: 0rx_size_65_to_127_packets: 0 rx_size_128_to_255_packets: 0 rx_size_256_to_511_packets: 0 rx_size_512_to_1023_packets: 0 rx_size_1024_to_max_packets: 0rx_broadcast_packets: 0rx_multicast_packets: 0rx_undersize_errors: 0rx_fragment_errors: 0rx_oversize_errors: 0rx_jabber_errors: 0rx_management_packets: 0rx_management_dropped: 0tx_management_packets: 0rx_total_packets: 0tx_total_packets: 0rx_total_bytes: 0tx_total_bytes: 0tx_size_64_packets: 0tx_size_65_to_127_packets: 0 tx_size_128_to_255_packets: 0 tx_size_256_to_511_packets: 0 tx_size_512_to_1023_packets: 0 tx_size_1023_to_max_packets: 0tx_multicast_packets: 0tx_broadcast_packets: 0tx_tso_packets: 0tx_tso_errors: 0rx_sent_to_host_packets: 0tx_sent_by_host_packets: 0rx_code_violation_packets: 0interrupt_assert_count: 0
####################################################
Cannot close started device (port 0)
Cannot close started device (port 1)
Cannot close started device (port 2)
Cannot close started device (port 3)
Cannot close started device (port 4)
while my realy active port is port 0,and when i use the 18.05 static linked dpdk-procinfo,it perfomance like this:
EAL: Detected CPU lcores: 4
EAL: Detected NUMA nodes: 1
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket_18418_1ca2b26784c9a
EAL: Selected IOVA mode 'PA'
EAL: Probe PCI driver: net_e1000_igb (8086:1539) device: 0000:01:00.0 (socket
0)
EAL: Probe PCI driver: net_e1000_igb (8086:1539) device: 0000:02:00.0 (socket
0)
EAL: Probe PCI driver: net_e1000_igb (8086:1539) device: 0000:03:00.0 (socket
0)
EAL: Probe PCI driver: net_e1000_igb (8086:1539) device: 0000:04:00.0 (socket
0)
EAL: Probe PCI driver: net_e1000_igb (8086:1539) device: 0000:05:00.0 (socket
0)
###### NIC extended statistics for port 0 #########
####################################################rx_good_packets: 575003997tx_good_packets: 0rx_good_bytes: 167108158830tx_good_bytes: 0rx_missed_errors: 1053260836rx_errors: 0tx_errors: 0rx_mbuf_allocation_errors: 1007413345rx_crc_errors: 0rx_align_errors: 0rx_symbol_errors: 0rx_missed_packets: 1053260536tx_single_collision_packets: 0tx_multiple_collision_packets: 0tx_excessive_collision_packets: 0tx_late_collisions: 0tx_total_collisions: 0tx_deferred_packets: 0tx_no_carrier_sense_packets: 0rx_carrier_ext_errors: 0rx_length_errors: 0rx_xon_packets: 0tx_xon_packets: 892174rx_xoff_packets: 0tx_xoff_packets: 1054152715rx_flow_control_unsupported_packets: 0rx_size_64_packets: 70505511rx_size_65_to_127_packets: 369577561rx_size_128_to_255_packets: 36315460rx_size_256_to_511_packets: 11032467rx_size_512_to_1023_packets: 12071014 rx_size_1024_to_max_packets: 75501984rx_broadcast_packets: 33533668rx_multicast_packets: 6365832rx_undersize_errors: 0rx_fragment_errors: 0rx_oversize_errors: 0rx_jabber_errors: 0rx_management_packets: 0rx_management_dropped: 0tx_management_packets: 0rx_total_packets: 1628264571tx_total_packets: 1055044925rx_total_bytes: 283445230373tx_total_bytes: 63302695756tx_size_64_packets: 0tx_size_65_to_127_packets: 0tx_size_128_to_255_packets: 0tx_size_256_to_511_packets: 0tx_size_512_to_1023_packets: 0tx_size_1023_to_max_packets: 0tx_multicast_packets: 0tx_broadcast_packets: 0tx_tso_packets: 0tx_tso_errors: 0rx_sent_to_host_packets: 31492tx_sent_by_host_packets: 0rx_code_violation_packets: 0interrupt_assert_count: 1
..........
####################################################
###### NIC extended statistics for port 4 #########
####################################################rx_good_packets: 0tx_good_packets: 0rx_good_bytes: 0tx_good_bytes: 0rx_missed_errors: 0rx_errors: 0tx_errors: 0rx_mbuf_allocation_errors: 0rx_crc_errors: 0rx_align_errors: 0rx_symbol_errors: 0rx_missed_packets: 0tx_single_collision_packets: 0tx_multiple_collision_packets: 0tx_excessive_collision_packets: 0tx_late_collisions: 0tx_total_collisions: 0tx_deferred_packets: 0tx_no_carrier_sense_packets: 0rx_carrier_ext_errors: 0rx_length_errors: 0rx_xon_packets: 0tx_xon_packets: 0rx_xoff_packets: 0tx_xoff_packets: 0rx_flow_control_unsupported_packets: 0rx_size_64_packets: 0rx_size_65_to_127_packets: 0rx_size_128_to_255_packets: 0rx_size_256_to_511_packets: 0rx_size_512_to_1023_packets: 0rx_size_1024_to_max_packets: 0rx_broadcast_packets: 0rx_multicast_packets: 0rx_undersize_errors: 0rx_fragment_errors: 0rx_oversize_errors: 0rx_jabber_errors: 0rx_management_packets: 0rx_management_dropped: 0tx_management_packets: 0rx_total_packets: 0tx_total_packets: 0rx_total_bytes: 0tx_total_bytes: 0tx_size_64_packets: 0tx_size_65_to_127_packets: 0tx_size_128_to_255_packets: 0tx_size_256_to_511_packets: 0tx_size_512_to_1023_packets: 0tx_size_1023_to_max_packets: 0tx_multicast_packets: 0tx_broadcast_packets: 0tx_tso_packets: 0tx_tso_errors: 0rx_sent_to_host_packets: 0tx_sent_by_host_packets: 0rx_code_violation_packets: 0interrupt_assert_count: 0
####################################################
by reading the code ,there just need to change one symbol here is the solution:
in app/proc-info/main.c
- enabled_port_mask = 1ul << i;
+ enabled_port_mask += 1ul << i;
the same problem found in 22.03
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.