Date: Tue, 28 Jan 2020 13:57:25 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r357203 - head/sys/compat/linux Message-ID: <202001281357.00SDvPZC055856@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Tue Jan 28 13:57:24 2020 New Revision: 357203 URL: https://svnweb.freebsd.org/changeset/base/357203 Log: Add TCP_CORK support to linux(4). This fixes one of the things Nginx trips over. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D23171 Modified: head/sys/compat/linux/linux_socket.c head/sys/compat/linux/linux_socket.h Modified: head/sys/compat/linux/linux_socket.c ============================================================================== --- head/sys/compat/linux/linux_socket.c Tue Jan 28 13:51:53 2020 (r357202) +++ head/sys/compat/linux/linux_socket.c Tue Jan 28 13:57:24 2020 (r357203) @@ -244,6 +244,8 @@ linux_to_bsd_tcp_sockopt(int opt) return (TCP_NODELAY); case LINUX_TCP_MAXSEG: return (TCP_MAXSEG); + case LINUX_TCP_CORK: + return (TCP_NOPUSH); case LINUX_TCP_KEEPIDLE: return (TCP_KEEPIDLE); case LINUX_TCP_KEEPINTVL: Modified: head/sys/compat/linux/linux_socket.h ============================================================================== --- head/sys/compat/linux/linux_socket.h Tue Jan 28 13:51:53 2020 (r357202) +++ head/sys/compat/linux/linux_socket.h Tue Jan 28 13:57:24 2020 (r357203) @@ -237,6 +237,7 @@ int linux_accept(struct thread *td, struct linux_accep #define LINUX_TCP_NODELAY 1 #define LINUX_TCP_MAXSEG 2 +#define LINUX_TCP_CORK 3 #define LINUX_TCP_KEEPIDLE 4 #define LINUX_TCP_KEEPINTVL 5 #define LINUX_TCP_KEEPCNT 6
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001281357.00SDvPZC055856>