Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp85480rdh; Mon, 30 Oct 2023 14:52:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/JO01R+hB1QCht7hu9HiXO2FCU9ZTXdzf8uRVXskzI5ScsvT5Yu1zFDnoLNj0c5CG+aPb X-Received: by 2002:a17:902:ec83:b0:1cc:54fb:610a with SMTP id x3-20020a170902ec8300b001cc54fb610amr2828033plg.12.1698702721743; Mon, 30 Oct 2023 14:52:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698702721; cv=none; d=google.com; s=arc-20160816; b=Fwg8a4LMqv8MaWz6xWEGp4utcFV/rDZhGMVV+UPn9jmmBKQQ102wz4i/lUXAZES/ps 9OsMQLBscNmXrPyWCrmRvesPIuyD18LKTKV2ZSJ7/qumIl+Pu4C/fdZ7TsgujFPM502r skhiaS6wVie7BU/81nUBCGRIft+yS1EQUGIJpQ8ShQT/T7JbpJN5nG6bfQKZDurGnLtp oZ4IM8C0OJoL8hKSMYldxPvpKIt8ThpwC0S6GM0htPPLOkPxzOyjCbZU3UBDaEaaxzBq Gz3pIolZ8FD+xTlIj8DLB6G2JK2AKg2W8JCLfyBy25oSdblAdS5BCOL1KrsRFIMmUKMV KJ6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=XU6YDGeI4+wBW6QcdXCx4BV1CZFjMKR0ks808HcPwwQ=; fh=UseyeKzOtTZlTl7C2uD2BZIaUlrAqP4fFCE6K8IHY7Y=; b=i0Uki0G7nwV0yrT6vZJ5K9lvXksyj89owp/OPoTT++bvxq0pxzBiJEIoXi6rAwctr6 OBowKJEAHoH5Mibs5m31Yuklo92mOut0gylEOg1qAqZpEOlBQe90HOUOvU7DHk1nZ4zq TDxQeiVgZhhnZUG3Tuu4OZjq1fYKMgRHhQIgTLe0VnarbSr9+RWVtJxaaPOYaxgD6h1x wFiZ800iV1k0UBWZlRtwQuHBG3u4OjublpSIJ6YWvLJBwY7VYEOxIzYZx2r3Pa8HDpM2 C8n54GIqFr25BoU+qc9g308MbjAwYqOCDPZw3E3GlOTnn5+YhoxH/AClnBvzbT7tKH7+ 5SPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MNqtA8OL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id ix19-20020a170902f81300b001c724cd1128si4273plb.276.2023.10.30.14.52.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 14:52:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MNqtA8OL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 1E4078041C26; Mon, 30 Oct 2023 14:51:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232031AbjJ3Vvm (ORCPT + 99 others); Mon, 30 Oct 2023 17:51:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232128AbjJ3Vvj (ORCPT ); Mon, 30 Oct 2023 17:51:39 -0400 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D5E1119; Mon, 30 Oct 2023 14:51:30 -0700 (PDT) Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-6ce2cf67be2so3211791a34.2; Mon, 30 Oct 2023 14:51:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698702690; x=1699307490; darn=vger.kernel.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=XU6YDGeI4+wBW6QcdXCx4BV1CZFjMKR0ks808HcPwwQ=; b=MNqtA8OLfMT9W2eDB5mBNGV5spw19L7tc9YBCjNFkxJJJTTkt8B1hGUzu/AY3HL85A bZl+Fwb5mbIL+Uo/J9OzzNcDwtrFBEDA0TPqyNZyZXmY/eT0clhulJaTT3XXFsaeAbMD 6B87tLX3LtWItTyqFm2J9MppBERAqOfNvs8Dymvoh/z0vwto/G5Ye8NyPzmIuRug0A/2 tv6zlF3i3ttP1gMBjESolPuGDZW1v8g3ajl6tHo8edRKO7hVuc+eti1PwfDnRE6hXUvJ Yfvm1Qu1vlm6TVhs3exPyzfUDWiA+oUnPD1fe+0wW3CpbxRF/ZV32fe9JPP5lwFUy/V1 Mvkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698702690; x=1699307490; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XU6YDGeI4+wBW6QcdXCx4BV1CZFjMKR0ks808HcPwwQ=; b=M3jFnBEbxpnd28zuEnkfRcWKwG2GI99kyRjP1+C/G/ezSwOR/43YaYs9Cdwn2LLxTK LYNYHBXOU6TMiesobj/lkMGfsFSf6nflc7ASwkPb/Apd6DaYMOLPeb2HXX/RweM6xXAB JGyllcM55GB5/14aQQ3+ArZYM7wjQgiUF6iA2/ggv7hkYp+VRperYq6nU2Zw+1vUyEMv rJ+k1hFurEPuQ1tlifu249EtW98WY/lshcAuS+O9HKTaZz1wIESowiACBmKQAD+MFaVS y7V1z8wmbrkiRmeu/ZLegzhUDBT/meVvVMcyu514vjFPLx8uDBlS7xrkeYDdx6zzSZNT fiHA== X-Gm-Message-State: AOJu0YzARsveJSmcUeuYR3Mspcvb43yuLVTAVEHJ266TUwZemWjH8HmE Lb5qCkO4NkpsF03skQTZzQ== X-Received: by 2002:a05:6359:2c44:b0:168:e9e5:b407 with SMTP id qv4-20020a0563592c4400b00168e9e5b407mr9778121rwb.10.1698702689775; Mon, 30 Oct 2023 14:51:29 -0700 (PDT) Received: from n191-129-154.byted.org ([130.44.212.103]) by smtp.gmail.com with ESMTPSA id o14-20020a05620a22ce00b007776c520488sm3692396qki.9.2023.10.30.14.51.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 14:51:29 -0700 (PDT) Date: Mon, 30 Oct 2023 21:51:27 +0000 From: Peilin Ye To: Daniel Borkmann Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Jesper Dangaard Brouer , Peilin Ye , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Cong Wang , Jiang Wang , Youlun Zhang Subject: Re: [PATCH net] veth: Fix RX stats for bpf_redirect_peer() traffic Message-ID: <20231030215124.GA1626574@n191-129-154.byted.org> References: <20231027184657.83978-1-yepeilin.cs@gmail.com> <20231027190254.GA88444@n191-129-154.byted.org> <59be18ff-dabc-2a07-3d78-039461b0f3f7@iogearbox.net> <20231028231135.GA2236124@n191-129-154.byted.org> <94c88020-5282-c82b-8f88-a2d012444699@iogearbox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <94c88020-5282-c82b-8f88-a2d012444699@iogearbox.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 30 Oct 2023 14:51:59 -0700 (PDT) On Mon, Oct 30, 2023 at 03:19:26PM +0100, Daniel Borkmann wrote: > OT: does cadvisor run inside the Pod to collect the device stats? Just > curious how it gathers them. Seems like it reads from /proc/$PID/net/dev: https://github.com/google/cadvisor/blob/d19df4f3b8e73c7e807d4b9894c252b54852fa8a/container/libcontainer/handler.go#L461 Thanks, Peilin Ye