mirror of https://github.com/aya-rs/aya
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7eebdcbdeb
This commit cleans up the recently refactored aya-bpf-macros to be a little easier to maintain: Cosmetic changes: 1. The flow of the parse function is the same in each file 2. Useless if !attrs.is_empty() guards were removed 3. The compile error when cgroup_sock programs have an invalid attach_type was in the wrong location Functional changes: 1. Remove pop_required_arg. All args are optional and making them required was a mistake on my part. We may revisit this later. 2. Rename pop_arg to pop_string_arg 3. Implement pop_bool_arg to allow for single idents to be mixed with our key/value pair syntax in macro attributes. This is used for `sleepable` and `frags` in XDP programs. Signed-off-by: Dave Tucker <dave@dtucker.co.uk> |
1 year ago | |
---|---|---|
.. | ||
src | 1 year ago | |
Cargo.toml | 1 year ago |