mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-10 12:40:46 +02:00
NMPCacheId is a union with fields for all known NMPCacheIdTypes. Up to now, we always cloned the entire union, computed the hash over all (possibly unset) fields and used memcmp() unanimously. That was ok, because NMPCacheId was 16 bytes in total and cache-id types that consumed less bytes didn't have a large overhead. Next, we will add a new cache id type which increases the size of NMPCacheId to 24 bytes. So, while possibly only a fraction of the instances is that large, they would all have to pay that price. Change that to consider and clone only those parts of the id that are actually used. |
||
|---|---|---|
| .. | ||
| tests | ||
| wifi | ||
| Makefile.am | ||
| nm-fake-platform.c | ||
| nm-fake-platform.h | ||
| nm-linux-platform.c | ||
| nm-linux-platform.h | ||
| nm-platform-utils.c | ||
| nm-platform-utils.h | ||
| nm-platform.c | ||
| nm-platform.h | ||
| nmp-netns.c | ||
| nmp-netns.h | ||
| nmp-object.c | ||
| nmp-object.h | ||