Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4531191imj; Tue, 12 Feb 2019 18:40:33 -0800 (PST) X-Google-Smtp-Source: AHgI3IbSWeWnToeEpLdV3sXnm7N8QBynYvmZ2Wm44ZlTQsDIais6y0R4Z4J8qSYbB9wpCWQlzTz0 X-Received: by 2002:a65:6553:: with SMTP id a19mr6651710pgw.267.1550025633262; Tue, 12 Feb 2019 18:40:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550025633; cv=none; d=google.com; s=arc-20160816; b=CHL5v5lfl+KCPiKQeNk5WpuLEdtRzh4N8vGvkYNbZFkTUkKqIWjkTlleIbyRxv0oPA ACfF98DFuWu7zXdxezRTc7ah9aRD5hE7NDphzYPMiPwz8RaOgs162EcCAG32Q+2pNEQs C4FMU9c40UGAOaM7ngaq80znjQZDQl2GHQm5Ldt9O3MAkm9Lry57K8Qnejg6qFqQsyw6 8l1JCllKaZpkIVUI0SgTr4zYVMhaN+Mdqp2+RJ7mhPGKQbkxree9qmpA7gD6TfCGsjhC Ip+4b0xUg3YRGM4qb9rDIvjbeLqf4mmdTJB0gUXyDP84ftv6jDO9AJt/y3JWk+VVTXYc qF6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=v1jt/s8Bj78A5TMIMiOaGw6Nt1+jxLifdL2JPy3lllg=; b=xRjEuCpe7IfVE1+59XlctHwqNqIyhUciZMDcG0h/TQi9elZWcK2X/+mJxXBeqSgXga lTH0QsAtHOY7zjikEDjhJ6t5Q+oS1BC3Rf5IQN0qn5369E1MDLBqKts3u2o8C46wDQuL RdnY15vKqR137ZIeBHmfgb4mH9cN7a3fL8UhrLMN/KHp4fGyoMCdFI4HooP3bAV+bZj+ CCgELHsNWsxtwMDoM4Ea60u5Mv9wRQySEw67mLWYxD1DrQTlo2Sn4v3+SDaaehLs9lTT CJjg/COYYFD0IJda6KdZ/7ozEThHH0OHpa4+CpYz7M1CDJTlRSfQagj89KA3XchsFcj0 VuyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=DePMWSY4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s71si15036259pfk.105.2019.02.12.18.40.17; Tue, 12 Feb 2019 18:40:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=DePMWSY4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733301AbfBMCPx (ORCPT + 99 others); Tue, 12 Feb 2019 21:15:53 -0500 Received: from mail-yw1-f42.google.com ([209.85.161.42]:42045 "EHLO mail-yw1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730367AbfBMCPw (ORCPT ); Tue, 12 Feb 2019 21:15:52 -0500 Received: by mail-yw1-f42.google.com with SMTP id v201so312144ywa.9 for ; Tue, 12 Feb 2019 18:15:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=v1jt/s8Bj78A5TMIMiOaGw6Nt1+jxLifdL2JPy3lllg=; b=DePMWSY4A7ehg4e8oD2o1ijg66oy8QTxs7bcmOuxTkQ3X9giEok72a5xm0l+C4NOLY kV76BE0OOQuh5bHtDGre0rwrU52Vvp/XWHgMmEUd+klPx/u5pdKnyzgDW4eIpuWAKbQ/ odAIwdo8iBUUu8M3o6H0+Q9F4+e6uyO9rYcMlwwIPBfVKkD9wr4xqIJQyRqDyz9or+yq 4/4pJSct3sMHJuP0PS1LttIS6FUEJSume6P3hnynustwZQm3EuB5sRTPKWoEj8nco9ee W3sFQvWI7egpRLMk7mydV6KlKqJa3Obo4MtRJWsicWsI50VQJ9MdiR3PBH7SeLzl1lIX NM8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=v1jt/s8Bj78A5TMIMiOaGw6Nt1+jxLifdL2JPy3lllg=; b=ZCxCPZKt3TNgPE+ht0a/TlhW23Jn+kIDnKaYWKPo3BQ3PdqjDZAOQBPMR3zrww/t2d RZbQ8SMiIPlle94kobKCL9Bp8MWO8VxuecKl1n6YWDWd0FPhUOItGsnX54uBxqLheb9N 1PH+ACPoX+sLflNR5c3v8WSL346VLKIOOPqOjubGoD7N/Knq8XE9w+dJ/YuTRhze84O/ ox1gseNNWv+C/IITbJmbUKJvDOXoTs2peOWs2EA7vShUQ2Pgocmqn6HWCUsvreuRyq1U bgLdMKUbt2JT1WDnmOCX0bM85CV1pQoEUDocUleQRFMP27Wi0UgVhU6w339XzZN04UaU uFPQ== X-Gm-Message-State: AHQUAuZ14SW/M3NECPUHwMdvK3cNwo6YqSn56gqRgDnqCdYMWOy5tRAe UpDPfCZSdosABTHJ/LsnwmMBrLywWRXMMrzmPV8J1A== X-Received: by 2002:a81:b189:: with SMTP id p131mr2673215ywh.92.1550024151249; Tue, 12 Feb 2019 18:15:51 -0800 (PST) MIME-Version: 1.0 References: <1549971097-12627-1-git-send-email-laoar.shao@gmail.com> <1549971097-12627-2-git-send-email-laoar.shao@gmail.com> <38d07cb3-b767-bfc4-9ae5-48367971d839@gmail.com> In-Reply-To: From: Eric Dumazet Date: Tue, 12 Feb 2019 18:15:39 -0800 Message-ID: Subject: Re: [bpf-next 1/2] tcp: replace SOCK_DEBUG() with tcp_stats() To: Yafang Shao Cc: Eric Dumazet , Daniel Borkmann , Alexei Starovoitov , Yonghong Song , Lawrence Brakmo , David Miller , netdev , LKML , shaoyafang@didiglobal.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 12, 2019 at 6:07 PM Yafang Shao wrote: > > Let me explain the background for you. > I want to track some TCP abnormal behavior in TCP/IP stack. But I > find there's no good way to do it. > The current MIBs are per net, other than per socket, that makes it not > very powerful. > And the ancient SOCK_DEBUG is not good as well. > So we think why not cleanup this ancient SOCK_DEBUG() and introduce a > more powerful method. I am all for it, but this more powerful method does nothing at all in the current patches. I can not accept patches just because they seem to be harmless, knowing that the next patches will be pushed later changing more stuff, just because the new infrastructure is there "and can be used" Just remove all SOCK_DEBUG() calls, there are leftovers of very ancient times. Do not add more debugging stuff unless you can demonstrate they actually allowed you to find a real bug and that you sent a public fix for it. Just adding "cool stuff" in TCP stack does not please me, it is only more complexity for unproven gain. Otherwise, I am tempted to think that these BPF hooks are there only so that a company can more easily build a private variant of TCP, yet letting the community maintaining the hard part of TCP stack. Thank you.