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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to