Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3184764pxb; Sun, 20 Feb 2022 11:50:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJystFz8fhyEHAdwhlIISYFTLvLBG6kvgIQ/kc/1teB3RCO4wXKVlnumG1+IdZx8xJVk6EjH X-Received: by 2002:a50:da47:0:b0:410:a39a:c43b with SMTP id a7-20020a50da47000000b00410a39ac43bmr18649238edk.33.1645386634858; Sun, 20 Feb 2022 11:50:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645386634; cv=none; d=google.com; s=arc-20160816; b=eYgQPQCdvzc3YXOjkRW9GD0QI4mprgHXkmU1Gkj6M8PcAjfFaiuHbPMMYJA6m9Adz+ 7LnqO6IEJRF3VhBXfMSKXRwFHfqzlJWfRDZ39qwYsDH5OS07cd+UmUNarEeGJ7/LR67m bHSndqCuSCW0bo4BOH9K3kXYoxmnGZ3ckLRMFoZeMO3TLJtbaoxf2GC3gH/x3cQeR1Lv hSxuskNFn+L8oYBMOEYFFCP3ehP9KZ3q24bs0Lp/7p0CiT+hWOpB/s6JAI681xiPgLgG T9U4UPmajP40tUeazqVgNA6V0C8ANC8sxYEwVUry4EzC0mhpmoHmLELK4qDu7bWyHcOj Gj8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=gOpAL1FPR1vBK++ssCUfqZ5qhe0h7v7ypcgYHRaBHRc=; b=thbaH6KU8dTFThDS1mvf8ykBQ+2mHBqIayKMInHdN1/p7v9hN8HXl385R7ApDHaNvK iBpBIiCvh6SpMBOaMyhsBWnK4U/2Va4BpfjgjADcLa3586CJ+WUpGUgmAJ42P/yK2VWD nWeK8HtlVLxuoidEkf9XWGt3gkEVavdwV2Dbu2xcrYgtBHpTzQriYlyR17FMJRzzECaj HHiaDhUwHIJqWm7CgSOkg9xpMcydi3sKgS1rBcsnuNBcg9PJFbtQsYcPgpTDMC2jyAy0 yJPm8NRMZZElomGq06/l7L2GfP1v5YPWHrV1rlYOtuIlphDIg42kLBYVKNtoHtOiWBU4 zsRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZgrfO5hI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p8si9920929edj.547.2022.02.20.11.50.11; Sun, 20 Feb 2022 11:50:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZgrfO5hI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S239961AbiBRVbf (ORCPT + 99 others); Fri, 18 Feb 2022 16:31:35 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:49816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239945AbiBRVbd (ORCPT ); Fri, 18 Feb 2022 16:31:33 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 500AB178958; Fri, 18 Feb 2022 13:31:16 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id c6so14872960edk.12; Fri, 18 Feb 2022 13:31:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gOpAL1FPR1vBK++ssCUfqZ5qhe0h7v7ypcgYHRaBHRc=; b=ZgrfO5hIj6k3fB/NvjiGwGJVqeHzU32gasUKL3vtw8WIfPrr50EdaVOnd9gnp/N0j2 YWS1WVywYtQFd45fzxxP9mZsMomcVx4I5pByUkcqJv85fbAXlXH6gDHahPyEveAVTyHl nzCfwtGgeeJwN9a6CA03aYzroH5Ij6N6Y/Bn6Ym/m9Whc77OCLxio9Gf42DUl9L/xp+k kcZn4JLsx1VibSqaWe63Bs3/abTFHBNsIzwBGkYem564HsRVvy3bCzajjRX50+9/MaJH 8XmQaT5RRTNB5a4014NoyjA37AxCf8G+5WO7hrKX6p16skAJgf285VQrGNxJ2qVRwgwx ITqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gOpAL1FPR1vBK++ssCUfqZ5qhe0h7v7ypcgYHRaBHRc=; b=gKikQBzwmr6wlq1/3LrJwE9/UZel1keLwuc3ewSDJbi4qs51skvo2N8I0V1YAaRwcy 8bUWwL78L5BJvdh18JeLqKq9OS727Ty/BUFKsTSyJjCskDQSsqAGLWlIY6uiQnKPwE1q jZYjoM33YCvAZfJpcq/Ren5vgNcvt61eaF8mEELD0hO/Dj4PNkYGhMSAffMdl+w7CnCf /1bWchmHRVbZ/iQ+zRvwbQxxqKRaNcqxW9+3UqXcOikB0JFteMSmyvkCe3yG/AY6opqM JB9bhItoqmkqcFC+rzubqgEFAWcc5rfFhPk9r9pvJASpKgXjoAavfb9ylabzyTIUGQNF 448w== X-Gm-Message-State: AOAM533PkbUEzbpnOaj14lf+st/x0FeWvlTboYIi3Qo+hfsamdBstw5v /jbwqZz4KSKX11ZMfrQXqJawKjPzv+twG7lbMYs= X-Received: by 2002:a50:becc:0:b0:410:a35f:c5a7 with SMTP id e12-20020a50becc000000b00410a35fc5a7mr10360733edk.170.1645219874884; Fri, 18 Feb 2022 13:31:14 -0800 (PST) MIME-Version: 1.0 References: <20220207235714.1050160-1-jeffreyji@google.com> <20220207195139.77d860cc@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20220207195139.77d860cc@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> From: Jeffrey Ji Date: Fri, 18 Feb 2022 13:31:03 -0800 Message-ID: Subject: Re: [PATCH v7 net-next] net-core: add InDropOtherhost counter To: Jakub Kicinski Cc: Eric Dumazet , "David S . Miller" , Brian Vazquez , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, jeffreyji Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jakub, I'll remove the MIB counters & instead add counters to rtnl_link_stats64 and rtnl_link_stats, does that sound right? But keep the sbk_free_drop_reason On Mon, Feb 7, 2022 at 7:51 PM Jakub Kicinski wrote: > > On Mon, 7 Feb 2022 23:57:14 +0000 Jeffrey Ji wrote: > > From: jeffreyji > > > > Increment InDropOtherhost counter when packet dropped due to incorrect dest > > MAC addr. > > > > An example when this drop can occur is when manually crafting raw > > packets that will be consumed by a user space application via a tap > > device. For testing purposes local traffic was generated using trafgen > > for the client and netcat to start a server > > > > example output from nstat: > > \~# nstat -a | grep InMac > > Ip6InDropOtherhost 0 0.0 > > IpExtInDropOtherhost 1 0.0 > > > > Tested: Created 2 netns, sent 1 packet using trafgen from 1 to the other > > with "{eth(daddr=$INCORRECT_MAC...}", verified that nstat showed the > > counter was incremented. > > As far as I can tell nobody objected to my suggestion of making this > a netdev counter, so please switch to working on that. Thanks.