diff options
author | Amit Cohen <amcohen@nvidia.com> | 2022-06-27 10:06:17 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-06-28 14:31:36 +0200 |
commit | d7a7b69787091b7ed78399dc40e8c6c9759b9b90 (patch) | |
tree | 0cab3a7ca577124aadf10b52a50a0b97507031d4 /net/unix/sysctl_net_unix.c | |
parent | a1697d11c945d7c3d46e22fca02299c9cb4b465f (diff) | |
download | linux-d7a7b69787091b7ed78399dc40e8c6c9759b9b90.tar.gz linux-d7a7b69787091b7ed78399dc40e8c6c9759b9b90.tar.bz2 linux-d7a7b69787091b7ed78399dc40e8c6c9759b9b90.zip |
mlxsw: Add a dedicated structure for bitmap of ports
Currently when bitmap of ports is needed, 'unsigned long *' type is
used. The functions which use the bitmap assume its length according to
its name, i.e., each function which gets a bitmap of ports queries the
maximum number of ports and uses it as the size.
As preparation for the next patch which will use bitmap of ports, add a
dedicated structure for it. Refactor the existing code to use the new
structure.
Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions