-
Notifications
You must be signed in to change notification settings - Fork 4
Fix spelling errors and incorrect property assignments in SdnDiag.Server.psm1 #528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ver.psm1 Co-authored-by: arudell <18577812+arudell@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix spelling error in filename 'vfpctrl_list_unified_flow'
Fix spelling errors and incorrect property assignments in SdnDiag.Server.psm1
Dec 31, 2025
andrwli
reviewed
Jan 14, 2026
Contributor
There was a problem hiding this 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 corrects spelling errors and property assignment bugs in the SdnDiag.Server.psm1 module that prevented VM NIC statistics and VFP port state data from being correctly populated during diagnostic data collection.
Changes:
- Fixed spelling error in VFP output filename from 'unifiied' to 'unified'
- Corrected property assignments to match class definitions for VM NIC statistics
- Fixed OffloadState property assignment for LSO V2 support flag
Comments suppressed due to low confidence (1)
src/modules/SdnDiag.Server.psm1:2241
- These property assignments reference $object.PortState but should reference $object.OffloadState. Based on the VfpPortState class definition (line 164), OffloadState is the property that contains the OffLoadStateDetails instance. The properties RssSupported, TransmitChecksumOffloadSupported, ReceiveChecksumOffloadSupported, VmqSupported, LsoV2SupportedVxlan, RssSupportedVxlan, TransmitChecksumOffloadSupportedVxlan, ReceiveChecksumOffloadSupportedVxlan, VmqSupportedVxlan, and InnerMacVmqEnabled are all defined in the OffLoadStateDetails class (lines 174-182), not as direct members of VfpPortState. Line 2231 correctly uses $object.OffloadState.LsoV2Supported, but these subsequent lines were not updated consistently.
'NVGRE RSS Enabled' { $object.PortState.RssSupported = $propertyValue }
'NVGRE Transmit Checksum Offload Enabled' { $object.PortState.TransmitChecksumOffloadSupported = $propertyValue }
'NVGRE Receive Checksum Offload Enabled' { $object.PortState.ReceiveChecksumOffloadSupported = $propertyValue }
'NVGRE VMQ Enabled' { $object.PortState.VmqSupported = $propertyValue }
'VXLAN LSO Offload Enabled' { $object.PortState.LsoV2SupportedVxlan = $propertyValue }
'VXLAN RSS Enabled' { $object.PortState.RssSupportedVxlan = $propertyValue }
'VXLAN Transmit Checksum Offload Enabled' { $object.PortState.TransmitChecksumOffloadSupportedVxlan = $propertyValue }
'VXLAN Receive Checksum Offload Enabled' { $object.PortState.ReceiveChecksumOffloadSupportedVxlan = $propertyValue }
'VXLAN VMQ Enabled' { $object.PortState.VmqSupportedVxlan = $propertyValue }
'Inner MAC VMQ Enabled' { $object.PortState.InnerMacVmqEnabled = $propertyValue }
Copilot stopped work on behalf of
arudell due to an error
January 26, 2026 18:30
Co-authored-by: arudell <18577812+arudell@users.noreply.github.com>
…to copilot/fix-filename-spelling-error
arudell
approved these changes
Jan 26, 2026
andrwli
approved these changes
Jan 26, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Corrects issues in
SdnDiag.Server.psm1where property assignments referenced non-existent class members or contained typos:vfpctrl_list_unifiied_flow→vfpctrl_list_unified_flow(line 408)SendBufferAllocationCountnow correctly assigned (wasSendBufferAllocationSize) for 'Send Buffer Allocation Count' metric (line 2421)InsufficientRndisOperations(wasInsufficientRndisOperationsBuffers) per class at line 234 (line 2430)QuotaExceeded(wasQuotaExceededErrors) per class at line 235 (line 2431)$object.OffloadState.*(was$object.PortState.*) per class at line 164 (lines 2231-2241):LsoV2SupportedRssSupportedTransmitChecksumOffloadSupportedReceiveChecksumOffloadSupportedVmqSupportedLsoV2SupportedVxlanRssSupportedVxlanTransmitChecksumOffloadSupportedVxlanReceiveChecksumOffloadSupportedVxlanVmqSupportedVxlanInnerMacVmqEnabledThese changes ensure VM NIC statistics and VFP port offload state are correctly populated when collected.
Change type
Checklist:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.