diff options
-rw-r--r-- | README | 39 |
1 files changed, 39 insertions, 0 deletions
@@ -15,6 +15,45 @@ Download ODP (Version 1.3 or 1.4) and latest OFP code. Have these compiled and installed in some out directory +Below patch shall be applied to OFP code, to have the huge no. of conns per sec. +----- + +diff --git a/include/api/ofp_config.h b/include/api/ofp_config.h +index 163280a..4a842d9 100644 +--- a/include/api/ofp_config.h ++++ b/include/api/ofp_config.h +@@ -59,14 +59,16 @@ + /* Configure values */ + + /** Packet pool size. */ +-#define SHM_PKT_POOL_SIZE (512*2048) ++#define SHM_PKT_POOL_SIZE (512*2048*8) + /** Packet pool buffer size. */ + #define SHM_PKT_POOL_BUFFER_SIZE 1856 + /** Packet pool user area size. */ + #define SHM_PKT_POOL_USER_AREA_SIZE 16 + + /**Maximum number of sockets. */ +-#define OFP_NUM_SOCKETS_MAX 1024 ++#define OFP_NUM_SOCKETS_MAX 60000 + + /**Maximum number of fastpath interfaces used. + * For each fastpath interface a PKTIO in opened by OFP.*/ +diff --git a/src/ofp_tcp_timewait.c b/src/ofp_tcp_timewait.c +index caf3d33..0ecd632 100644 +--- a/src/ofp_tcp_timewait.c ++++ b/src/ofp_tcp_timewait.c +@@ -78,6 +78,7 @@ tcptw_auto_size(void) + { + int halfrange; + ++ return OFP_NUM_SOCKETS_MAX; + /* + * Max out at half the ephemeral port range so that TIME_WAIT + * sockets don't tie up too many ephemeral ports. +----- + + 1. Preparing build ================== |