[source] libnl-tiny: use fixed message size instead of using the page size

LEDE Commits lede-commits at lists.infradead.org
Thu Dec 14 09:45:39 PST 2017


jow pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/50147d41b971f20043f1641fa02eb06cf751ff2c

commit 50147d41b971f20043f1641fa02eb06cf751ff2c
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Thu Nov 9 14:39:48 2017 +0100

    libnl-tiny: use fixed message size instead of using the page size
    
    Simplifies the code and reduces size
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
    (cherry picked from commit d5bcd0240a8f42a05ef31005a9a9dea848d3f7a8)
---
 package/libs/libnl-tiny/src/msg.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/package/libs/libnl-tiny/src/msg.c b/package/libs/libnl-tiny/src/msg.c
index e84c281..b502047 100644
--- a/package/libs/libnl-tiny/src/msg.c
+++ b/package/libs/libnl-tiny/src/msg.c
@@ -166,12 +166,7 @@
 #include <netlink/msg.h>
 #include <linux/socket.h>
 
-static size_t default_msg_size;
-
-static void __init init_msg_size(void)
-{
-	default_msg_size = getpagesize();
-}
+static size_t default_msg_size = 4096;
 
 /**
  * @name Attribute Access



More information about the lede-commits mailing list