diff options
author | Geliang Tang <tanggeliang@kylinos.cn> | 2025-02-28 18:01:33 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-03-03 17:16:34 -0800 |
commit | 52f83c0b5f857dbe24f66fc9a7f035523e9ffbc9 (patch) | |
tree | bc7ebde7bfb68c09ac86dc6de1a44cb448afec90 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 483cec55c1ccb9deeefb515fbeb181f736c41736 (diff) |
mptcp: use sock_kmemdup for address entry
Instead of using sock_kmalloc() to allocate an address
entry "e" and then immediately duplicate the input "entry"
to it, the newly added sock_kmemdup() helper can be used in
mptcp_userspace_pm_append_new_local_addr() to simplify the code.
More importantly, the code "*e = *entry;" that assigns "entry"
to "e" is not easy to implemented in BPF if we use the same code
to implement an append_new_local_addr() helper of a BFP path
manager. This patch avoids this type of memory assignment
operation.
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Acked-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/3e5a307aed213038a87e44ff93b5793229b16279.1740735165.git.tanggeliang@kylinos.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions