Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1356041pxb; Tue, 8 Feb 2022 15:36:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5oDlY5Hex9mZpF9uNpLaNXk1W/NeKj8hSmy4qLZL3gFTcX0ooHudb+0+qdvOUzKEdwGAU X-Received: by 2002:a17:90b:4c04:: with SMTP id na4mr394930pjb.62.1644363406216; Tue, 08 Feb 2022 15:36:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644363406; cv=none; d=google.com; s=arc-20160816; b=RhoBP/1F6gdhU4chDnsCcOT+AiyWPVEX8lF4/1MPzxvS5dGihUExP/j0zOj5Vk/maO q3UXvoXWwjAhL0wLbyRN8bIU3LWLBC/79QcjCcyVpci/eJXhcVwAGFn/gsNOOOuQapFQ 83V2fBbYBbKgfuDD0ac/ko0n6U5fvrmxFYO4PHc9N1zC4axXl4vywBpsGdCy97OOZ5wO Eoc5Pk/FkYDLQSkxhTsTMo8TJkhKZJpdKDCTfKNsX9WgD8S1puTJC58okk3T+0TiP3hR +L5BEUWkJMXa7RNHB13jsZfgnp5m97ih3ihQW6yLtCsTeN6aUObt2r6MU//38DO/jnau VctQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=oR+dxVTxpDp07p4USGPfDWLK09lLGzqNl5uey4ftUPE=; b=YHKPLmAVngyl6jtl5TH8pny+QcgguFlmf9IhsZQLQnyVImLle+y5ZvGlYgwBviJWVa 0uuhfJqin+wSY3Mu8CnC+7l+tTaA2S4g2315a+G4tkpEzLQo//BD/oAjb3BenBq9tYUS MwkerOP08zAqkdXHjKlDEUuFNGRYS1pdjMlBQ0yDYg2AnHfzgcps677Gb6dahW4/bS6d G7ECi3sjnDLtQ0VDyYV/lNahhlL/Qf2cV1ka69rwr2o0lM1UcxEGrEzNYkPQBpDnOgaE gEoZwrNHmCrz5bdWAf3Nd87X0A/7uPreLf1BvqttGWgskWFopdDO+U9ykhwpOmrrFOal VUXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="IBYF/lrl"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c15si6009502pls.306.2022.02.08.15.36.33; Tue, 08 Feb 2022 15:36:46 -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=@kernel.org header.s=k20201202 header.b="IBYF/lrl"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346478AbiBHDvn (ORCPT + 99 others); Mon, 7 Feb 2022 22:51:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238983AbiBHDvm (ORCPT ); Mon, 7 Feb 2022 22:51:42 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8854EC0401DC; Mon, 7 Feb 2022 19:51:41 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1C6BF61529; Tue, 8 Feb 2022 03:51:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36DBAC004E1; Tue, 8 Feb 2022 03:51:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644292300; bh=ABaVsbOIb3+OcYn2+ylzu6Byh3EUHq/wPhjW1EhoBIs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=IBYF/lrlFyeSuS2oqOc/d9fIcdy7zrA4gRdFau3P52O1c7B+0o3KhDqmNTPlsH/0i sunvseBZ+AZWK+CfmcUkUJEE3Mv+4xW8md3dh+Q0vo+eYssqxMSr661akKap8ptas6 B8ugcNMyduW8TdDMPVYV7p4dTFqIJtzEWrHJOuLkz4hW4hzSuywV6C/pP61M1ziHtX 6QYbo+UbjMctfN34OuqMJGraQLIv0l9DSW8q96rWUEDU6eq0Pe63zjwDNorG/uHRIj JTrCuucSraQq+eWphiznzSzOEKFNpL5uyVRyk9jkPbrH0TE8vhkSnWB/uWc9hzJpMM Reo9UYUvAUa2w== Date: Mon, 7 Feb 2022 19:51:39 -0800 From: Jakub Kicinski To: Jeffrey Ji Cc: Eric Dumazet , "David S . Miller" , Brian Vazquez , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, jeffreyji Subject: Re: [PATCH v7 net-next] net-core: add InDropOtherhost counter Message-ID: <20220207195139.77d860cc@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20220207235714.1050160-1-jeffreyji@google.com> References: <20220207235714.1050160-1-jeffreyji@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 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.