aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib
diff options
context:
space:
mode:
authorGeliang Tang <[email protected]>2021-01-08 16:47:55 -0800
committerJakub Kicinski <[email protected]>2021-01-09 18:18:43 -0800
commitefd5a4c04e1835acc64eb44818247ca88e80b294 (patch)
tree88df5aa2525bea2408b680aef3998f85ed879439 /tools/perf/scripts/python/Perf-Trace-Util/lib
parent43b3983437ed4a3458591daf7777529cd72c8fd0 (diff)
mptcp: add the address ID assignment bitmap
Currently the address ID set by the netlink PM from user-space is overridden by the kernel. This patch added the address ID assignment bitmap to allow user-space to set the address ID. Use a per netns bitmask id_bitmap (256 bits) to keep track of in-use IDs. And use next_id to keep track of the highest ID currently in use. If the user-space provides an ID at endpoint creation time, try to use it. If already in use, endpoint creation fails. Otherwise pick the first ID available after the highest currently in use, with wrap-around. Signed-off-by: Geliang Tang <[email protected]> Signed-off-by: Mat Martineau <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions