summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-05-29 13:08:40 +0200
committerThomas Haller <thaller@redhat.com>2014-05-30 18:39:08 +0200
commitcffca6a1c27db06edd1c077887b3d1757797b7fa (patch)
tree4a44c1f39de8316b136ad9d1d557b9dc845c1425
parent90ab7e83ffae999eb811013e63cb7ef0afc012e4 (diff)
downloadNetworkManager-cffca6a1c27db06edd1c077887b3d1757797b7fa.tar.gz
platform/trivial: add fixme code comment
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r--src/platform/nm-linux-platform.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c
index a051d23570..f3464fcbce 100644
--- a/src/platform/nm-linux-platform.c
+++ b/src/platform/nm-linux-platform.c
@@ -386,6 +386,9 @@ get_kernel_object (struct nl_sock *sock, struct nl_object *needle)
struct nl_cache *cache;
int nle;
+ /* FIXME: every time we refresh *one* object, we request an
+ * entire dump. E.g. check_cache_items() gets O(n2) complexitly. */
+
nle = nl_cache_alloc_and_fill (
nl_cache_ops_lookup (nl_object_get_type (needle)),
sock, &cache);