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

Network: Record xdp data from ip link. #1730

Merged
merged 1 commit into from
Feb 8, 2022
Merged

Network: Record xdp data from ip link. #1730

merged 1 commit into from
Feb 8, 2022

Conversation

zalokhan
Copy link
Contributor

Recording the xdp data - mode, id and tag from the ip link output.
This data is recorded within the iface hash while gathering link statistics.
Added unit tests under network_spec.rb for all cases.

Signed-off-by: Zeeshan Lokhandwala zeeshanl@fb.com

Description

Currently we do not have access to the XDP information contained in the ip link output. This patch records the xdp mode, id and tag. This will allow chef to know whether xdp is enabled and in which mode allowing the user to define specific network settings.

Related Issue

#1729

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

Recording the xdp data - mode, id and tag from the ip link output.
This data is recorded within the iface hash while gathering link statistics.
Added unit tests under network_spec.rb for all cases.

Signed-off-by: Zeeshan Lokhandwala <zeeshanl@fb.com>
@zalokhan zalokhan requested review from a team as code owners January 20, 2022 02:04
@lamont-granquist
Copy link
Contributor

@tas50 you got any thoughts? i don't see anything wrong here but its well outside of my domain knowledge.

@jaymzh jaymzh merged commit 8b1857c into chef:main Feb 8, 2022
@zalokhan zalokhan deleted the main branch February 9, 2022 20:46
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.

3 participants