From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Borkmann Subject: Re: [bpf-next PATCH 3/7] bpf: sockmap sample, use fork() for send and recv Date: Wed, 10 Jan 2018 00:54:26 +0100 Message-ID: References: <20180108180302.13647.13866.stgit@john-Precision-Tower-5810> <20180108180541.13647.11500.stgit@john-Precision-Tower-5810> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: John Fastabend , ast@kernel.org Return-path: Received: from www62.your-server.de ([213.133.104.62]:45686 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756153AbeAIXya (ORCPT ); Tue, 9 Jan 2018 18:54:30 -0500 In-Reply-To: <20180108180541.13647.11500.stgit@john-Precision-Tower-5810> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 01/08/2018 07:05 PM, John Fastabend wrote: > Currently for SENDMSG tests first send completes then recv runs. This > does not work well for large data sizes and/or many iterations. So > fork the recv and send handler so that we run both send and recv. In > the future we can add a parameter to do more than a single fork of > tx/rx. > > With this we can get many GBps of data which helps exercise the > sockmap code. > > Signed-off-by: John Fastabend > --- > samples/sockmap/sockmap_user. | 0 ^ This one slipped in by accident? > samples/sockmap/sockmap_user.c | 55 ++++++++++++++++++++++++++++------------ > 2 files changed, 39 insertions(+), 16 deletions(-) > create mode 100644 samples/sockmap/sockmap_user.