From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Heffner Subject: Re: [PATCH net-next] tcp: provide SYN headers for passive connections Date: Mon, 4 May 2015 23:07:07 -0400 Message-ID: References: <1430502237-5619-1-git-send-email-emunson@akamai.com> <1430505777.3711.135.camel@edumazet-glaptop2.roam.corp.google.com> <20150501201417.GB6113@akamai.com> <1430511800.3711.138.camel@edumazet-glaptop2.roam.corp.google.com> <20150501202908.GC6113@akamai.com> <1430512894.3711.140.camel@edumazet-glaptop2.roam.corp.google.com> <1430714086.3711.165.camel@edumazet-glaptop2.roam.corp.google.com> <1430752330.3711.180.camel@edumazet-glaptop2.roam.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <1430752330.3711.180.camel-XN9IlZ5yJG9HTL0Zs8A6p/gx64E7kk8eUsxypvmhUTTZJqsBc5GL+g@public.gmane.org> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Eric Dumazet Cc: Eric B Munson , Tom Herbert , "David S. Miller" , linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, netdev List-Id: linux-api@vger.kernel.org On Mon, May 4, 2015 at 11:12 AM, Eric Dumazet wrote: > On Mon, 2015-05-04 at 10:41 -0400, John Heffner wrote: > >> Nice idea, seems handy. But a couple (somewhat related) questions: >> >> * Other than convenience, are there reasons not use an existing, more >> general-purpose and portable mechanism like pcap? (Permissions, I >> guess?) > > Very hard to synchronize when say you have 32 listeners sharing a single > port (SO_REUSEPORT), and receive one million SYN per second (when my TCP > listener scaling work is finished). > > libpcap here would be a serious bottleneck, even with a clever FANIN > support on the af_packet sockets, considering use of multiqueue NIC. > >> * Are there conditions where, for security purposes, you don't want an >> application to have access to the raw SYNs? > > Not that we are aware of : We restrict the access to IP + TCP headers, > for the passive part. All information that is available there was > provided by the remote peer on a 'open way' anyway. Makes sense, thanks. -John