Skip to content
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

Code cleanup. #4184

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Code cleanup. #4184

wants to merge 1 commit into from

Conversation

shankarseal
Copy link
Collaborator

Description

Describe the purpose of and changes within this Pull Request.
A couple of code cleanups.

  1. Per MSDN, the Version fields of the NPI client and provider characteristics structure should be set to 0. In a few places in the code this was not followed.

  2. Per the ebpfExtensions.md

    The `bpf_attach_type` field should contain the equivalent bpf attach type integer. If there is no equivalent bpf
    attach type, this field should be set to `0 (BPF_ATTACH_TYPE_UNSPEC)`.
    

    Yet the unit test had a test case that expected the opposite. I have removed the test case.

Testing

Do any existing tests cover this change? Are new tests needed?
Existing tests are sufficient.

Documentation

Is there any documentation impact for this change?
No.

Installation

Is there any installer impact for this change?
No.

@dthaler dthaler added the cleanup Affects API usability or code maintainability but not correctness or applicability label Feb 10, 2025
dthaler
dthaler previously approved these changes Feb 10, 2025
Alan-Jowett
Alan-Jowett previously approved these changes Feb 10, 2025
@shankarseal shankarseal dismissed stale reviews from Alan-Jowett and dthaler via f60af82 February 11, 2025 03:13
@shankarseal shankarseal added this pull request to the merge queue Feb 12, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Affects API usability or code maintainability but not correctness or applicability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants