Skip to content

Add num_pkts_coalesced counter to track when packets are coalesced#2011

Merged
yuqiong6 merged 10 commits intomicrosoft:mainfrom
yuqiong6:user/yuqliu/coalescedpkts
Sep 19, 2025
Merged

Add num_pkts_coalesced counter to track when packets are coalesced#2011
yuqiong6 merged 10 commits intomicrosoft:mainfrom
yuqiong6:user/yuqliu/coalescedpkts

Conversation

@yuqiong6
Copy link
Contributor

@yuqiong6 yuqiong6 commented Sep 16, 2025

Code Change Summary:

  • Added a packet coalescing counter to the MANA device (net_mana)
  • Incremented the counter when segments are coalesced in the MANA transmit path

Validation
The test was performed in the lab environment using the following command on the host:
basicnictool.exe --mac_address AA-BB-CC-DD-EE-FF --send_packet --num_mdl 32 --payload_size 65000

Each time this command is executed, the value of queue_tx_packets_coalesced increments by one. In this case, the command was run five times, resulting in queue_tx_packets_coalesced = 5 by running following command on the host:
uhdiag-dev uhvm inspect uhdiag/net/{net}/queues/{queue number}

Result:
{
......
queue_tx_packets: 45,
queue_tx_packets_coalesced: 5,
queue_tx_queued: 0,
......
}

@yuqiong6 yuqiong6 requested a review from a team as a code owner September 16, 2025 16:23
Copilot AI review requested due to automatic review settings September 16, 2025 16:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds packet coalescing tracking functionality to the network device implementation by introducing a new counter to monitor when packets are coalesced during transmission.

  • Added a packet coalescing counter to the MANA device (net_mana)
  • Incremented the counter when segments are coalesced in the MANA transmit path

@github-actions
Copy link

@yuqiong6 yuqiong6 requested a review from a team as a code owner September 16, 2025 18:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

@github-actions
Copy link

@github-actions
Copy link

@github-actions
Copy link

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

@github-actions
Copy link

@yuqiong6 yuqiong6 merged commit 6a8b486 into microsoft:main Sep 19, 2025
52 checks passed
andyplank-msft pushed a commit to andyplank-msft/openvmm that referenced this pull request Nov 4, 2025
…icrosoft#2011)

Code Change Summary:
- Added a packet coalescing counter to the MANA device (net_mana)
- Incremented the counter when segments are coalesced in the MANA
transmit path

Validation
The test was performed in the lab environment using the following
command on the host:
basicnictool.exe --mac_address AA-BB-CC-DD-EE-FF --send_packet --num_mdl
32 --payload_size 65000

Each time this command is executed, the value of
queue_tx_packets_coalesced increments by one. In this case, the command
was run five times, resulting in queue_tx_packets_coalesced = 5 by
running following command on the host:
    uhdiag-dev uhvm inspect uhdiag/net/{net}/queues/{queue number}

Result:
{
......
    queue_tx_packets: 45,
    queue_tx_packets_coalesced: 5,
    queue_tx_queued: 0,
......
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants