On 03/03, Bastien Curutchet (eBPF Foundation) wrote:
A fair amount of code duplication is present among tests to attach BPF programs.
Create generic_attach* helpers that attach BPF programs to a given interface. Use ASSERT_OK_FD() instead of ASSERT_GE() to check fd's validity. Use these helpers in all the available tests.
Signed-off-by: Bastien Curutchet (eBPF Foundation) bastien.curutchet@bootlin.com
Acked-by: Stanislav Fomichev sdf@fomichev.me