From nobody Sat Nov 22 00:07:44 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dCsq45GKXz6J0Qn for ; Sat, 22 Nov 2025 00:07:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dCsq44gzYz4KnJ for ; Sat, 22 Nov 2025 00:07:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763770064; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ftmCEczCWc7+4AnXZeP8T68QDdns3p1E8WNONJteBrg=; b=B9xVAKQmB7gKQ2tAXQQG8JsuHARuOxU37dAaLF4grHNU+SgUM+Kbt/VlWMT2FSjNC2iAak eUV/ThQ7mPdrlX33HX92ZLZsr0LuERialpTlc7mjSo4zYhU80nKizrX0GkbPkHc7KmNstX IxwvXLpsLvQYY0x0LXzIteCKqMHHlz88KGaFtT55nNaHt+ZcrBP9lK8KCZnV8qQwWgDc8z U1gIGKHSaLm/ZtMRtnH6UrcoTRlitiCGV8rg0shjVQq1Ed40YHXiiGFTzSh+HY14SS2jtW Bs2mVOXE7iz/qXrlEHgkBGybW2iUV7NKmtQCD2q3GURx7cB3QebqenSKEqjT4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763770064; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ftmCEczCWc7+4AnXZeP8T68QDdns3p1E8WNONJteBrg=; b=fe6T5n0sY+otI/j0lwCTm7o1Ki59GzlsEpzLAouQv8/ORE1DmlA7RV0I7KQLJAMP7i8uEf ZzApPjVBeoe2NbwykBBEDUxPe0eCCjTXNJkC/+ecsHbepJFji/NEzdC9Dd4J5/POQNBiDG hNFQn8m193enCOLQJJRaqLW7PNkCLxwOXKn4u6lNBnbDSE7ssuj/AzkUVquQSHk1EdQpy4 V6r0gT+TZLHWBknNU2NJ/LNF5bTE3AOWTcKMrqbHV7s/UemB2VWRedArEv7U2i30vHir1Z QG3mr5tPpeb9vHFP4lsgQWPaipQS7pKaVi5X5risC7Rxw8cgXPZfvMZ6uot4ag== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1763770064; a=rsa-sha256; cv=none; b=HFu2YtFLHhPs89fPEyDWWvIaEjguV4Kg5889XalwFzN2orbkgHkX/mNA/sWrIJixE1jm+0 d+C1Oeb7WkW8A2c/j05PvvHLjmxz9UgrnRMkzksF/tw8/nW2kRZLuUR28OYlUCqKBlsEMf sXlYqfU8eUfFOR7RkHxhFjUe3LnFHRpGdHFCtjl25KFQJdsggJxbN9KaBeaaIM8aTVvDtq GbQjHUIqq2svtgwU9Z6jIEle4edQ50IbVpY7ykpCIe7w9+0aOxj4nKXn4EvrSG0Ljk2tqU 32N1FMisPkkAnDBY40QYxOoQ3Zv0D0Rk/zIiGs+WC3eR3T8LhGx5mpa+ld0dTA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dCsq43dKtzbJs for ; Sat, 22 Nov 2025 00:07:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id dcec by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 22 Nov 2025 00:07:44 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: e20e5724e614 - main - bpf: remove DDB code List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e20e5724e6145fd2cd922f11d745b10a048443af Auto-Submitted: auto-generated Date: Sat, 22 Nov 2025 00:07:44 +0000 Message-Id: <6920fed0.dcec.199f95ba@gitrepo.freebsd.org> The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=e20e5724e6145fd2cd922f11d745b10a048443af commit e20e5724e6145fd2cd922f11d745b10a048443af Author: Gleb Smirnoff AuthorDate: 2025-11-22 00:04:52 +0000 Commit: Gleb Smirnoff CommitDate: 2025-11-22 00:04:52 +0000 bpf: remove DDB code With modern debugging tools it isn't useful at all and is just a maintenance burden. --- sys/net/bpf.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/sys/net/bpf.c b/sys/net/bpf.c index f2deeda8e1ee..23a23fbfe22e 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -37,7 +37,6 @@ #include #include "opt_bpf.h" -#include "opt_ddb.h" #include "opt_netgraph.h" #include @@ -68,10 +67,6 @@ #include -#ifdef DDB -#include -#endif - #include #include #include @@ -3188,35 +3183,3 @@ bpf_validate(const struct bpf_insn *f, int len) } #endif /* !DEV_BPF && !NETGRAPH_BPF */ - -#ifdef DDB -static void -bpf_show_bpf_if(struct bpf_if *bpf_if) -{ - - if (bpf_if == NULL) - return; - db_printf("%p:\n", bpf_if); -#define BPF_DB_PRINTF(f, e) db_printf(" %s = " f "\n", #e, bpf_if->e); -#define BPF_DB_PRINTF_RAW(f, e) db_printf(" %s = " f "\n", #e, e); - /* bif_ext.bif_next */ - /* bif_ext.bif_dlist */ - BPF_DB_PRINTF("%#x", bif_dlt); - BPF_DB_PRINTF("%u", bif_hdrlen); - /* bif_wlist */ - BPF_DB_PRINTF("%p", bif_ifp); - BPF_DB_PRINTF("%p", bif_bpf); - BPF_DB_PRINTF_RAW("%u", refcount_load(&bpf_if->bif_refcnt)); -} - -DB_SHOW_COMMAND(bpf_if, db_show_bpf_if) -{ - - if (!have_addr) { - db_printf("usage: show bpf_if \n"); - return; - } - - bpf_show_bpf_if((struct bpf_if *)addr); -} -#endif