Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1425126rwp; Thu, 13 Jul 2023 10:36:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlEooPCn/WGWkeWTrVL+9WZdHuIIU5Y2K59btZYHiTaLfvAp9+bmOcr7ZInO4NIb8ZPfD9X/ X-Received: by 2002:a17:902:8ec6:b0:1b8:847d:973a with SMTP id x6-20020a1709028ec600b001b8847d973amr1640154plo.46.1689269780568; Thu, 13 Jul 2023 10:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689269780; cv=none; d=google.com; s=arc-20160816; b=BRxSTWmdeLbihfcAmo3YZoNVYMB1And7wRhA3qp+76cMYyDmSDUdRKuGze4EIP+ZkS cEWA25CZfMdmwUap/chgsDqBlJ9W0c5cajICLhtJgxU4n6291+C4QW1V7UyRCe4BMRBt NwLZkyWG9px/C4RJc82F4hX6/fLeSJU+bOL23ZS0G8rMo6upcCwTGGNzKWfafSu+iWmW uaNuCJJZHrcL2Tzy4wBNtEvKcF7I7Xcwnt4yk+S6uysbpiiCjLmhzsF21CnF6B7J7tH9 MmQtt9JFlt0YyvybcA0risEAnVdcyzrkp5hzWLsyuRwMV8BBPSsldWjW2Y+SKBOq9Sm6 G1vg== 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=fu4iFB2cmqb4RnmiUaT/+NYsaGQTn4kL7iLjT8vjKBw=; fh=T2Mt1RWAkDClZcYsv0iPsR/YFKG56uSYtPtrcZloEuw=; b=xdVlY5Y0RCgGsTS1cAnXLTHscCbnPQvsj5SnQx+LsdTBQuHYCD64wDlABPbD+8O8BG hErDoFYuUtkgITYP1s0cwwDuwx74+F+FeFsCJXp4o3qcmtWOgNKU5/FLSy45WhHHmabQ bKsrAoOvkfhdAKaRf2iBxKyOvLwXyID2x9aVN3a3iBQn8eGr+omGDMHyDo17vTMAetpR tZC5R+xmqMLgSswDVLxhm54D5T+c5vxMtj4unStRfz59HJ2a1gf/rJgUMNUiMxPRQw3/ NaNrUookS5Z7MVv2tFHhR/1ULOGSrJMEBspW3NCLkoauNNdCxVN37wLQ53WWWBTnAahP amBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gNHYUQTL; 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 ix22-20020a170902f81600b001b55d413790si5253579plb.269.2023.07.13.10.36.08; Thu, 13 Jul 2023 10:36:20 -0700 (PDT) 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=gNHYUQTL; 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 S235118AbjGMQ6E (ORCPT + 99 others); Thu, 13 Jul 2023 12:58:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231396AbjGMQ5u (ORCPT ); Thu, 13 Jul 2023 12:57:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A84E62708 for ; Thu, 13 Jul 2023 09:57:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3808E61AED for ; Thu, 13 Jul 2023 16:57:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3911AC433C8; Thu, 13 Jul 2023 16:57:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689267468; bh=1U0ZApqiqBJyYb9F7YTTl2VWqVGIrbvAyt5SJ/N5UeE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gNHYUQTLWWGxDhkxQy/gad2QxsFLJin7GlOhdFTKBWpWTLxYwc9mgVt3jrjY/62Ey ecezQTdRweCO0ohUX4Gb0RzeUHBNrfAlCXqYo/3nXOA9xvFk3IevAAXSv4Z6iN/Zmh vbTn3Qxla3CBL9pqLAjHb+Yct8AlA00mniRah1/41TUckc9NnLwzCGJ2ejUyJo9NzJ 8lZ7eo01eroncxURfMzj7FLp2XD4I4ri9SL20Z5P18eAyc8x8i6UZb/L46P/4WoHKn aOa8E5LzzJgtghUzkU3wm3FvZ8PkeV/QPTIgt4G4XmFgYYsxHYTyjo1CizuHbpUEgW KwJcrDBg+dtkQ== Date: Thu, 13 Jul 2023 09:57:47 -0700 From: Jakub Kicinski To: Yan Zhai Cc: Ivan Babrou , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@cloudflare.com, Eric Dumazet , "David S. Miller" , Paolo Abeni , Steven Rostedt , Masami Hiramatsu , David Ahern Subject: Re: [RFC PATCH net-next] tcp: add a tracepoint for tcp_listen_queue_drop Message-ID: <20230713095747.580c2b0a@kernel.org> In-Reply-To: References: <20230711043453.64095-1-ivan@cloudflare.com> <20230711193612.22c9bc04@kernel.org> <20230712104210.3b86b779@kernel.org> 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 Wed, 12 Jul 2023 21:43:32 -0500 Yan Zhai wrote: > Those are not unnecessary calls, e.g. a lot of those kfree_skb come > from iptables drops, tcp validation, ttl expires, etc. On a moderately > loaded server, it is called at a rate of ~10k/sec, which isn't > terribly awful given that we absorb millions of attack packets at each > data center. We used to have many consume skb noises at this trace > point with older versions of kernels, but those have gone ever since > the better separation between consume and drop. I was hoping you can break them down by category. Specifically what I'm wondering is whether we should also have a separation between policy / "firewall drops" and error / exception drops. Within the skb drop reason codes, I mean.