-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add context create/delete functions #425
Add context create/delete functions #425
Conversation
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.
LGTM, just a couple minor nits.
* @retval STATUS_NO_MEMORY Failed to allocate resources for this operation. | ||
*/ | ||
static ebpf_result_t | ||
XdpCreateContext( |
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.
These routines need spin/fuzz testing via bpf_prog_test_run - please add some randomized input cases to spinxsk.c.
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.
Fixed.
Fixes #401
This PR:
add_context
anddelete_context
functions for XDP eBPF extension. These functions allowbpf_prog_test_run
to be used with XDP extension.bpf_prog_test_run
flow.