diff options
author | 2025-05-11 19:53:10 +0300 | |
---|---|---|
committer | 2025-05-13 13:13:56 +0300 | |
commit | ee92656eba26d1b8b52704d32280b4de59b7f069 (patch) | |
tree | e6fb626c978724ad18d183452660e3af9f8768fe /scripts/gdb/linux/utils.py | |
parent | wifi: iwlwifi: cfg: clean up dr/br configs (diff) | |
download | wireguard-linux-ee92656eba26d1b8b52704d32280b4de59b7f069.tar.xz wireguard-linux-ee92656eba26d1b8b52704d32280b4de59b7f069.zip |
wifi: iwlwifi: cfg: reduce configuration struct size
We don't need the CORES() match nor jacket (which really doesn't
even make sense to match to the RF anyway), and since the subdevice
masks we care about are contiguous, we can encode them as highest
and lowest bit set (automatically.) By encoding whether to match or
not as separate flags and taking advantage of the limited range of
the RF type, step and ID we can reduce the amount of memory needed
for the table, while also making the logic (apart perhaps from the
subdevice mask) easier to understand.
This reduces the size of the module by about 1.5KiB on x86-64.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250511195137.38a805a7c96f.Ieece00476cea6054b0827cd075eb8ba5943373df@changeid
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions