summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2021-01-08 16:47:55 -0800
committerJakub Kicinski <kuba@kernel.org>2021-01-09 18:18:43 -0800
commitefd5a4c04e1835acc64eb44818247ca88e80b294 (patch)
tree88df5aa2525bea2408b680aef3998f85ed879439 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
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 <geliangtang@gmail.com> Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions