]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'Sockmap copying'
authorAlexei Starovoitov <ast@kernel.org>
Mon, 28 Sep 2020 23:40:47 +0000 (16:40 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 28 Sep 2020 23:48:02 +0000 (16:48 -0700)
commit3984e4601d73662b9d215b4a03ef74d11ebb2b83
treeae664a475c782e9d22991f2672eef4b56e4fd72f
parent08ccccb4b7aff8d805b96bfc9217c1949df5a39b
parent0f2ede3da821fbb1c6110d847b6fd4834f3c9339
Merge branch 'Sockmap copying'

Lorenz Bauer says:

====================
Changes in v2:
- Check sk_fullsock in map_update_elem (Martin)

Enable calling map_update_elem on sockmaps from bpf_iter context. This
in turn allows us to copy a sockmap by iterating its elements.

The change itself is tiny, all thanks to the ground work from Martin,
whose series [1] this patch is based on. I updated the tests to do some
copying, and also included two cleanups.

I'm sending this out now rather than when Martin's series has landed
because I hope this can get in before the merge window (potentially)
closes this weekend.

1: https://lore.kernel.org/bpf/20200925000337.3853598-1-kafai@fb.com/
====================

Signed-off-by: Alexei Starovoitov <ast@kernel.org>