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

Fix port_quota app usage #1184

Merged
merged 3 commits into from
Jun 9, 2022
Merged

Fix port_quota app usage #1184

merged 3 commits into from
Jun 9, 2022

Conversation

dthaler
Copy link
Collaborator

@dthaler dthaler commented Jun 8, 2022

Description

PR #1132 introduced a regression whereby resolving maps fails. It wasn't caught since the tests used separate buffers for input vs output for ioctls, whereas the real KM path shares the same memory.

This PR fixes the issue and also updates the tests to share the same memory to catch similar issues in the future.

Fixes #1165

Testing

This PR updates tests

Documentation

No changes needed. This makes the flow already documented work again.

Alan-Jowett
Alan-Jowett previously approved these changes Jun 8, 2022
@codecov
Copy link

codecov bot commented Jun 8, 2022

Codecov Report

Merging #1184 (311543c) into main (e870a29) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1184   +/-   ##
=======================================
  Coverage   88.13%   88.14%           
=======================================
  Files          99       99           
  Lines       17252    17255    +3     
=======================================
+ Hits        15205    15209    +4     
+ Misses       2047     2046    -1     
Impacted Files Coverage Δ
libs/execution_context/ebpf_core.c 91.97% <100.00%> (-0.01%) ⬇️
tests/end_to_end/test_helper.cpp 88.65% <100.00%> (+0.50%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e870a29...311543c. Read the comment docs.

saxena-anurag
saxena-anurag previously approved these changes Jun 9, 2022
dthaler added 2 commits June 9, 2022 12:03
Signed-off-by: Dave Thaler <[email protected]>
Signed-off-by: Dave Thaler <[email protected]>
@dthaler dthaler merged commit 25abe8f into main Jun 9, 2022
@dthaler dthaler deleted the port_quota branch June 9, 2022 23:17
Alan-Jowett added a commit to Alan-Jowett/ebpf-for-windows that referenced this pull request Jun 10, 2022
* port quota

Signed-off-by: Dave Thaler <[email protected]>

* Fix port_quota load

Signed-off-by: Dave Thaler <[email protected]>

Co-authored-by: Alan Jowett <[email protected]>
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.

port_quota is unable to load successfully
4 participants