Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp589191imm; Fri, 28 Sep 2018 03:40:55 -0700 (PDT) X-Google-Smtp-Source: ACcGV62/z4QyK2wB33Ta8KyPGhxZyhFwpr8HUUtlz20412LDf0OZ8pDElRdtkwAcbMK1LqWSkAD7 X-Received: by 2002:a17:902:b612:: with SMTP id b18-v6mr15793476pls.92.1538131255330; Fri, 28 Sep 2018 03:40:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538131255; cv=none; d=google.com; s=arc-20160816; b=GdMjS8+X74hPzZfRDnT2Pi2TcsNIUlfLd8qd1KHZirUj5+wpLkpggXzewwwl7yGezw 5lSFbriY9LkYtJOuQlgJtkMdbWDEfPWSeBIkNiVtjnJmKeg5mCNk6XQtyoZ5B4chWwCB YZm3jVXhTldMFJ14EnOVm+S4O23GD8s6wPbOtqBN7Xjp96qYMymB7KzE9qNeQGr26KLC kEfOCcGE9GReInR7HNVn32MtNZpVS6o7D2uTPIjWAwhzLHpWM/2wg3s0Lp/am4tpQFDa PiG6TYsVjo72N3lf9R7DISo4R6wtO8geXSW142IsCmq31CDc/BZKy15exFQRZGkncy6H Kr5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Z8YzNTWiLYPYiPw3s1OfD/yz6IlyUQ2GW/SWdFqwyzI=; b=f9yVMJBih36wVV98HFQQqPCnjW7+8JYRFUEKaSTQzZ6GY89uycj9F8WgumXyDhM0BP FAiFrkppycZZP+8CFCozi/GuHGoK1CQwMdZQRK0NaOnGZ6MQamuESgJ1GnuoTv4SesmX 3KpHizKxOLSR3VUEK8LhOClmOZIw5Bznf4fpzePFq1MCq+gh/JKwUHlNTNRVGbqASApN JXI8JO99+r4OMaPpcG/jNG3MJZzygDt9Mm8s31+lpyCIIEilyHaTm8mYQLR0YvBmscpV kiVlRzaEUxcnELpGUt719j4Yz0mU5cpytwW+dhAfkan4vM9gZC5lDaIOds7ae16kvvT2 daCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VhrKChJJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2-v6si4087855pgr.97.2018.09.28.03.40.39; Fri, 28 Sep 2018 03:40:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VhrKChJJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729427AbeI1RDi (ORCPT + 99 others); Fri, 28 Sep 2018 13:03:38 -0400 Received: from mail-pf1-f178.google.com ([209.85.210.178]:42134 "EHLO mail-pf1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729008AbeI1RDi (ORCPT ); Fri, 28 Sep 2018 13:03:38 -0400 Received: by mail-pf1-f178.google.com with SMTP id l9-v6so4039255pff.9; Fri, 28 Sep 2018 03:40:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Z8YzNTWiLYPYiPw3s1OfD/yz6IlyUQ2GW/SWdFqwyzI=; b=VhrKChJJVKtSriC7KUsgyJF97nmghMQrgarhRc4HblnN9rYKsLg9ARfmkVpqkl/lN/ LT/aIIOUlZgJG294a+LL1NjbzVbOAn2s2+KPtZxV9xT1v+5e2EoFK7OramijXsaabbLP jBFpTZNP24w4LKrLbIKL3dmHN+Ktc+LbwXRWGwUv6tJtIVQPrCuTGLgqZM0dul5Kj81c pkpom1PLy67K/dmtmyBuogbcj2He9nk9wT28FRc1HlRKXn676k0PIo7+yCen28/TvvD0 /Dmy/2EEppEo5G97h+nq1g7cwIOB9rJ1GJAc26cgh3gZ4QBu18r0++Nq7Slvf7rx4lK5 wOSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Z8YzNTWiLYPYiPw3s1OfD/yz6IlyUQ2GW/SWdFqwyzI=; b=fCv3NOkktPuQWRrC9YJ6ca1Onoa1n9x5k8M9Tws1oazkoGV6tGwqlIVPPy0ca8eNMW NVsqKPCmiZ/Q6lwBMNwIA1IgxwjYpP3GNLmLYgzrOJ4IIJdM7kKUx7TNumO+jfMPR5Vt /9/po9KY43nn25BoB4lmROH403FS0J+TMcAi+kRHo2LGq40R57e6UocQc7ayxiKTwJsr LplNTiRTfUh5VoPVeCT1yynUHa0nEZiy1RxxLJZA/Vqum5Q3KJRQmiFUzU9z7m1PiOh5 of+L5zQ/dg1mQK8G1nG7k4fIrLs5UplwmdsWyHGFl9oRjUmzWmsyv+6ZUdWUC4axYdaM a2ZA== X-Gm-Message-State: ABuFfohg4hgum+bk0YP+Ex8shGkeLZ79FsOk6q93Oz22Batrhl82QHbh /OTYcpTIYlpqL2v+rraA9dM= X-Received: by 2002:a17:902:bcc3:: with SMTP id o3-v6mr15925039pls.202.1538131228645; Fri, 28 Sep 2018 03:40:28 -0700 (PDT) Received: from ast-mbp.dhcp.thefacebook.com ([2620:10d:c090:180::1:5ff1]) by smtp.gmail.com with ESMTPSA id y19-v6sm10325060pff.14.2018.09.28.03.40.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Sep 2018 03:40:27 -0700 (PDT) Date: Fri, 28 Sep 2018 12:40:17 +0200 From: Alexei Starovoitov To: Roman Gushchin Cc: netdev@vger.kernel.org, Song Liu , linux-kernel@vger.kernel.org, kernel-team@fb.com, Daniel Borkmann , Alexei Starovoitov Subject: Re: [PATCH v3 bpf-next 10/10] selftests/bpf: cgroup local storage-based network counters Message-ID: <20180928104014.mhq7kgyle53wqgao@ast-mbp.dhcp.thefacebook.com> References: <20180926113326.29069-1-guro@fb.com> <20180926113326.29069-11-guro@fb.com> <20180928085356.56xe7javtd6cdfz6@ast-mbp.dhcp.thefacebook.com> <20180928100817.GC9018@castle.DHCP.thefacebook.com> <20180928102814.voj6bsuslxh6ms37@ast-mbp.dhcp.thefacebook.com> <20180928103717.GA12917@castle.DHCP.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180928103717.GA12917@castle.DHCP.thefacebook.com> User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 28, 2018 at 11:37:26AM +0100, Roman Gushchin wrote: > > > > > + > > > > > + /* Let's check that bytes counter value is reasonable */ > > > > > + if (netcnt.bytes < packets * 500 || netcnt.bytes > packets * 1500) { > > > > > > > > since packet count is accurate why byte count would vary ? > > > > > > Tbh I'm not sure if the size of the packet here can vary depending > > > on the environment. Is there a nice way to get the expected size? > > > > ping packets should be fixed size depending on v4 vs v6. > > If 'ping -6' is used, it will force ipv6. > > > > Are we ok to screw up kselftests on v4-only machines? we already did. Some of the selftests/bpf use ping -6 already.