]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Set NLM_F_EXCL when creating qdisc
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Sat, 12 Jun 2021 02:35:01 +0000 (08:05 +0530)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 15 Jun 2021 12:00:30 +0000 (14:00 +0200)
commit72f3b93e458f291f7c8e90724d7c3299066c5aa3
treeb6957bf4b95e51a4272f83ce8987323dfb5cad49
parentff45320f8e836393db73fe2fc8bebcc60f946ff3
libbpf: Set NLM_F_EXCL when creating qdisc

This got lost during the refactoring across versions. We always use
NLM_F_EXCL when creating some TC object, so reflect what the function
says and set the flag.

Fixes: 2a0ea0af2114 ("libbpf: Add low level TC-BPF management API")
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210612023502.1283837-3-memxor@gmail.com
tools/lib/bpf/netlink.c