Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp57994pxh; Thu, 7 Apr 2022 13:54:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzj3UjpO48M4RBN57hkdO7uFUls9ZLq5I2hqYiDDfdO/AGdqvdsIFZQK2WWYQ2bFfQltxuX X-Received: by 2002:a17:90b:4c08:b0:1c7:61ce:b707 with SMTP id na8-20020a17090b4c0800b001c761ceb707mr17838726pjb.16.1649364884762; Thu, 07 Apr 2022 13:54:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649364884; cv=none; d=google.com; s=arc-20160816; b=R2O81uNYvHaFOrybF1cstSkI2Whjl0GDVCZ4+QXqh3nfTV52KO9ifBdrMxCX4Pj880 9yQsGaKOFIPYfH4nyz9bkARZRyZgW8eq4BhE3uj/Xz/mvqHhw9Zs969WdVKFGIeNJc0A u7gbtwK41m9aOvWGjmpSAN8ZD+c/KQZO873WmhKQVK+BC4cvY5AAznT6lx24U2oW/64V /2q6h6MmOs2ZQj/3Sx744nL1R12qExxKJG9nCT33429Tx2oj6yDDJKtRqSxXJ/ZZIH/D L6vTzVYNN6SDzWbDsc4QGwHek6Ed9BGr83mfk2r0SIkb1X2AOt8GMGOTv6I7lDnFfUAy Edlg== 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=pnuMUPEbVjet+lFSG2AcBAs7iUWisKztMADa8lx2NWA=; b=Gl6MDAO2st24rlIfp69ny6DOcg2D7wwR5jEqxNngIFN+4PctNTj8YXJDfukqZ1kdS5 FzOw5y6H3XIiQ1/46otA1r+7SPk9AO22rJn2dQbx/+3O/HWe5Btnh4A56luO4fNKzfFy 4AyFzXq70HZMb8a6pHNLRS7vQvpEs2DWP7X4yCC8aR+U2kkPQIkwM4EAPyP3l41COBaY Yjsfs4d7UaCYo9zAGzMMYfYl9GTdGmVNPxqts+KfDEF3lIeL8BGvzEczjei2YgrJoutJ a4dhYegs+XDIXpWXooC6xi0ZZalA+Eu7rlAYTYTIEesdBLG9hXCRr3GVMaPig0y6iFgU piYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=NEOY9oER; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q4-20020a63cc44000000b003816043ee48si19154304pgi.61.2022.04.07.13.54.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:54:44 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=NEOY9oER; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D08D93FA067; Thu, 7 Apr 2022 12:58:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239723AbiDGPif (ORCPT + 99 others); Thu, 7 Apr 2022 11:38:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229640AbiDGPid (ORCPT ); Thu, 7 Apr 2022 11:38:33 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46AF6113C for ; Thu, 7 Apr 2022 08:36:32 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id p15so10302624lfk.8 for ; Thu, 07 Apr 2022 08:36:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pnuMUPEbVjet+lFSG2AcBAs7iUWisKztMADa8lx2NWA=; b=NEOY9oEROP7jpPOjBJg+zCvJ7gS9PfH2CL5RzbkqJjP6Q5ZAvRja7o6Aj1N3C/sgAN KfvszgsA4xHnNUWmyXnhMAnYFvI8Fa6oCevVlX6zHezs/qCi7WkYKvHp46XIbbXbDyE2 BqOqjRO51v+GF6frJ8buWEEb9yGpzXYdHlCJoUH1r42+IuKYgzCSiqhyzNNwwpGJrELg lDWqizOSM6/Jc3O8wAcT3QTqSNBmoDuxHoG5B8CDx+XeEef9IB2sUWJCOnTz1Jr3DAtg lhUp/TyI7aYny1g38SzSaaZjNuP2/8o+2na0s0sk/PSlrxC1Wzie/5rovJT1JdoGIK6T pIxg== 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=pnuMUPEbVjet+lFSG2AcBAs7iUWisKztMADa8lx2NWA=; b=791/yhbglRNC2IrpX4KLQwgdTrYbGxSSIJusQLXCGhpqmviNhR6FAFeN2AZwOKkjLq NZXOiAw78hFWDcZkQzbTxleFcM6VEnWxGzjUoZ8LxS0/V4K8RgpcouDVUtC7V66/vJeu ZOJxw0MyO+dqsoVif9kkYWWwOQbmzVji77H82hKEERyf6W2RqYhfL3LMJ1oNwuRmpbwH sWMFddv7YTV/oyBjWh9VkOVE87xk27OhuyhyUgVxK0X0GkYN+9IGyi23yiphzqzk0fHo Q0kfIM2UoNRHB6p66URczJm02RAQEOq9rQ6fSkM4E9rJA/Ln9ENMkBUGaWCepo8HQv6q l5zQ== X-Gm-Message-State: AOAM533AoYwtB4d+GmIDmwKtqq+A0zamHgNeK5CKdaJNo2CKJttfsZnx EEoG32VexGyXzo9NOhY3GKa//yOEroa6G6ZZdMiVRQ== X-Received: by 2002:a05:6512:1107:b0:44a:62dc:dd0f with SMTP id l7-20020a056512110700b0044a62dcdd0fmr9980262lfg.479.1649345790167; Thu, 07 Apr 2022 08:36:30 -0700 (PDT) MIME-Version: 1.0 References: <20220406172600.1141083-1-jeffreyjilinux@gmail.com> <20220406223141.51881854@kernel.org> In-Reply-To: <20220406223141.51881854@kernel.org> From: Brian Vazquez Date: Thu, 7 Apr 2022 08:36:18 -0700 Message-ID: Subject: Re: [PATCH net-next] net-core: rx_otherhost_dropped to core_stats To: Jakub Kicinski Cc: Jeffrey Ji , "David S . Miller" , Paolo Abeni , Hideaki YOSHIFUJI , David Ahern , Eric Dumazet , Sebastian Andrzej Siewior , =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= , Menglong Dong , Petr Machata , Kumar Kartikeya Dwivedi , Arnd Bergmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jeffrey Ji Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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 Looks good to me, thanks Jeffrey. Reviewed-by: Brian Vazquez On Wed, Apr 6, 2022 at 10:31 PM Jakub Kicinski wrote: > > On Wed, 6 Apr 2022 17:26:00 +0000 Jeffrey Ji wrote: > > From: Jeffrey Ji > > > > Increment rx_otherhost_dropped counter when packet dropped due to > > mismatched 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 > > > > Tested: Created 2 netns, sent 1 packet using trafgen from 1 to the other > > with "{eth(daddr=$INCORRECT_MAC...}", verified that iproute2 showed the > > counter was incremented. (Also had to modify iproute2 to show the stat, > > additional patch for that coming next.) > > > > Signed-off-by: Jeffrey Ji > > Acked-by: Jakub Kicinski