]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Test sockmap update when socket has ULP
authorJakub Sitnicki <jakub@cloudflare.com>
Thu, 23 Jun 2022 09:12:31 +0000 (11:12 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 24 Jun 2022 18:21:50 +0000 (11:21 -0700)
commite15f3fc7fcc4140219ff7d2738b5e086fb35933d
treef24aa9981fd7e4a2f800a60023893127617c7f47
parent98aae7f83c840ceb12ae2b4a043ce6a54d77a2f7
selftests/bpf: Test sockmap update when socket has ULP

Cover the scenario when we cannot insert a socket into the sockmap, because
it has it is using ULP. Failed insert should not have any effect on the ULP
state. This is a regression test.

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Link: https://lore.kernel.org/r/20220623091231.417138-1-jakub@cloudflare.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/bpf/prog_tests/sockmap_ktls.c