]> 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)
commit935336c191040809bf5739654ea337c13fe8f9af
treef24aa9981fd7e4a2f800a60023893127617c7f47
parentb968080808f7f28b89aa495b7402ba48eb17ee93
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