Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libbpf: Add helper macro to clear opts structs
Add a small and generic LIBBPF_OPTS_CLEAR() helper macros which clears an opts structure and reinitializes its .sz member to place the structure size. I found this very useful when developing selftests, but it is also generic enough as a macro next to the existing LIBBPF_OPTS() which hides the .sz initialization, too. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
- Loading branch information