Hi Lukas, On Tue, Apr 02, 2013 at 03:14:12PM +0200, Lukas Tribus wrote: > > > So do you think it would make sense to introduce a new build flag for TFO > > > and define TCP_FASTOPEN? > > > > > > This would be similar to USE_TPROXY, USE_LINUX_SPLICE or USE_ACCEPT4 I > > > guess. > > > > > > That way, users have a documented way to enable TFO with current libc's? > > > > Yes, that's an idea indeed. And we would fall back to the default > > value for TCP_FASTOPEN when not defined. > > > > Willy > > > Hi Willy, > > please review the attached patch, it does what we discussed by introducing > a new USE flag "USE_TFO".
I would do it slightly differently so that the same build options continue to work when newer libc finally declare TCP_FASTOPEN : 1) in the makefile : OPTIONS += -DUSE_TFO 2) in include/common/compat.h : #ifdef USE_TFO #ifndef TCP_FASTOPEN #define TCP_FASTOPEN 23 #endif #endif What do you think ? Willy

