From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36EBDC433F5 for ; Wed, 9 Mar 2022 04:50:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229551AbiCIEvF (ORCPT ); Tue, 8 Mar 2022 23:51:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbiCIEvD (ORCPT ); Tue, 8 Mar 2022 23:51:03 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 825E615C195; Tue, 8 Mar 2022 20:50:05 -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 CC5DC61868; Wed, 9 Mar 2022 04:50:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 982F5C340E8; Wed, 9 Mar 2022 04:50:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646801404; bh=WQ/YZjIqZMFWalzvcOneuAQWvznNpPEfrFfdBo4ciiI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=SVevin0TR+8xb+HZXMkZExpjDPA1CROLW9T46rfw5d77tJctCHompabjR7CT4Wm9r nMayEdUiHGcHsC6KWbvaXAis64KWGc5D1FB3Olbvr/0DkOSE7gXa+TYTk16pk2VFuT g3ggGtGiRn7xNuVLymWzd2t3D2UDj9pIdPynDqcUMaOiwaBh6sJMy5fQZkwwN0wx7f dIHbxAYSH5H40yXCV9N3RBBTYfyhjQ6WMKZU6TcQD8qJmv/HrR3zDR2OAEFiBcQvVa DwunNSA18K+fMQElB5kQ9/qyplxH5W6ds37hYEWSMlOk0S2DcGrJttxGEjmwtvzk9h pgmvj3TWfjjGQ== Message-ID: <3f6540b8-aeab-02f8-27bc-d78c9eba588c@kernel.org> Date: Tue, 8 Mar 2022 21:50:01 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: This counter "ip6InNoRoutes" does not follow the RFC4293 specification implementation Content-Language: en-US To: "Xiao, Jiguang" , "davem@davemloft.net" , "yoshfuji@linux-ipv6.org" , "kuba@kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Cc: "Pudak, Filip" References: From: David Ahern In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/8/22 7:16 PM, Xiao, Jiguang wrote: > Hi David > > To confirm whether my test method is correct, could you please briefly describe your test procedure? > > > no formal test. Code analysis (ip6_pkt_discard{,_out} -> ip6_pkt_drop) shows the counters that should be incrementing and then looking at the counters on a local server. FIB Lookup failures should generate a dst with one of these handlers: static void ip6_rt_init_dst_reject(struct rt6_info *rt, u8 fib6_type) { rt->dst.error = ip6_rt_type_to_error(fib6_type); switch (fib6_type) { case RTN_BLACKHOLE: rt->dst.output = dst_discard_out; rt->dst.input = dst_discard; break; case RTN_PROHIBIT: rt->dst.output = ip6_pkt_prohibit_out; rt->dst.input = ip6_pkt_prohibit; break; case RTN_THROW: case RTN_UNREACHABLE: default: rt->dst.output = ip6_pkt_discard_out; rt->dst.input = ip6_pkt_discard; break; } } They all drop the packet with a given counter bumped.