From mboxrd@z Thu Jan 1 00:00:00 1970 From: Willem de Bruijn Subject: Re: [RFC PATCH v2 07/10] selftests: add GRO support to udp bench rx program Date: Sun, 21 Oct 2018 16:08:40 -0400 Message-ID: References: <883aae234bed25efdef98907507aa73b26054a38.1539957909.git.pabeni@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: Network Development , Willem de Bruijn , steffen.klassert@secunet.com To: Paolo Abeni Return-path: Received: from mail-ed1-f65.google.com ([209.85.208.65]:38943 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725723AbeJVEYt (ORCPT ); Mon, 22 Oct 2018 00:24:49 -0400 Received: by mail-ed1-f65.google.com with SMTP id e5-v6so1246261eds.6 for ; Sun, 21 Oct 2018 13:09:19 -0700 (PDT) In-Reply-To: <883aae234bed25efdef98907507aa73b26054a38.1539957909.git.pabeni@redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, Oct 19, 2018 at 10:31 AM Paolo Abeni wrote: > > And fix a couple of buglets (port option processing, > clean termination on SIGINT). This is preparatory work > for GRO tests. > > Signed-off-by: Paolo Abeni > --- > tools/testing/selftests/net/udpgso_bench_rx.c | 37 +++++++++++++++---- > 1 file changed, 30 insertions(+), 7 deletions(-) > > diff --git a/tools/testing/selftests/net/udpgso_bench_rx.c b/tools/testing/selftests/net/udpgso_bench_rx.c > @@ -167,10 +177,10 @@ static void do_verify_udp(const char *data, int len) > /* Flush all outstanding datagrams. Verify first few bytes of each. */ > static void do_flush_udp(int fd) > { > - static char rbuf[ETH_DATA_LEN]; > + static char rbuf[65535]; we can use ETH_MAX_MTU.