aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorAlex Elder <[email protected]>2022-10-27 07:26:31 -0500
committerJakub Kicinski <[email protected]>2022-10-28 22:06:47 -0700
commit5274c7158b2b6661f43883617ce638200312412b (patch)
tree72c934cd0b6c61f7c32c9e38c603d7bc08973bfa /net/unix/sysctl_net_unix.c
parente359ba89a4aae690fb51d19fc68f23f38435ae39 (diff)
net: ipa: determine the maximum endpoint ID
Each endpoint ID has an entry in the IPA endpoint array. But the size of that array is defined at compile time. Instead, rename ipa_endpoint_data_valid() to be ipa_endpoint_max() and have it return the maximum endpoint ID defined in configuration data. That function will still validate configuration data. Zero is returned on error; it's a valid endpoint ID, but we need more than one, so it can't be the maximum. The next patch makes use of the returned maximum value. Finally, rename the "initialized" mask of endpoints defined by configuration data to be "defined". Signed-off-by: Alex Elder <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions