]> git.proxmox.com Git - mirror_kronosnet.git/commitdiff
Revert "[global] reduce memory footprint by a long shot"
authorFabio M. Di Nitto <fdinitto@redhat.com>
Wed, 21 Oct 2015 13:48:37 +0000 (15:48 +0200)
committerFabio M. Di Nitto <fdinitto@redhat.com>
Wed, 21 Oct 2015 13:48:37 +0000 (15:48 +0200)
This reverts commit 4b4290a2fafbeb4d08bf489caa35ea4c205b18b9.

TODO
libknet/internals.h

diff --git a/TODO b/TODO
index fa501784c9f93a95f8d7389cf8cc32ca241ccd2a..fad09cdbf5317cb80d3d8ca355a72889fc4589f2 100644 (file)
--- a/TODO
+++ b/TODO
@@ -7,6 +7,9 @@ link/host level:
  - (issue) implement packet fragmentation?, is the only
            solution to avoid conflicts with tun/tap mtu setting and various
            others buffer sizes.
+ - (issue) sort out read buf from recv_from_links since it might be too small vs
+           sending out 128k (+header+encryption+....). this is also related
+           to max PMTU
  - (rfe)   compress: should only compress user data, we will add a bit in the data
                      header to indicate if the pckt is compressed or not (save time).
                      this approach allow runtime change of compress.
index b56f8a140f4ac134c66a7e5e8ce4012c593c5094..fdb30b5d9cdcc59a1da49dbbfa9f37fb94482a82 100644 (file)
@@ -17,7 +17,7 @@
 #include "libknet.h"
 #include "onwire.h"
 
-#define KNET_DATABUFSIZE KNET_MAX_PACKET_SIZE + KNET_HEADER_ALL_SIZE
+#define KNET_DATABUFSIZE (KNET_MAX_PACKET_SIZE * 2) + KNET_HEADER_DATA_SIZE
 #define KNET_DATABUFSIZE_CRYPT KNET_DATABUFSIZE * 2
 
 struct knet_listener {