From nobody Fri Nov 21 22:44:37 2025 X-Original-To: dev-commits-src-all@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 4dCqzB1nKJz6Hsx9 for ; Fri, 21 Nov 2025 22:44:38 +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 4dCqz96Jkkz46CZ for ; Fri, 21 Nov 2025 22:44:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763765077; 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=A15pRocztHab6yZIZpK+cydFwp30OlWa/Y1NzQbtvoU=; b=DE+735y2EHcIyhgJyFuImnMIrQWsryl7m9KFQ8C1ltoTwbuGUIuJxdu5IBT+OvbJ2U0SDb f8POeDMF9UqhkKa1o85Sf+fyN+9wUVzVfy9LGi09R1qB1OsGCoOFs/n8L5IbsZM3bJKlKS QugGyQx+n1fFgz/KJOJ84hd3tPzYFEMFGkLPXAT9k5xfbfdafLKUSOJ9Y6bYwvyNvCo1H5 t5k+ujKg8mOoNXrKAhnXFFCMRerkcB9xDvUWL4adUPIb+FYgYqJ4zzYxhmMp0jwSsCkpey 6FoyQsmXfIN3qQcWXpXPDaXeBlFyPXgObKuuYYkuvdCVxnPubtO0rx6qsr/ejA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763765077; 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=A15pRocztHab6yZIZpK+cydFwp30OlWa/Y1NzQbtvoU=; b=vPKN9y/VZrkIpI/TXkN88P7/47v8ed6Eo3F6mpuDqVLzizQLPGkNalF/lg6ciA/TOczrls 9nspwyXSovhslpof/RTRdreEJ/LgJqbHIAU0SWtjQdX9670fCH0QHzv9syR9lfHBE/buEh mAWouTbplyjsypn5cl+m/fulBDnPJthEFa6X/WANJNmfEXQfk5fw0uzdwCazEEg2fItu7M 8k845YDiV3I9AXVTdc1x26lxZXTnStp/4yFKfDHY12VveagnUqphmOmt+PYy3ubmcKp5a4 KLQKzAQq/BDaeO9K5sy1/aZauq7c8qDSj2AZnQa1vxvHLg7AP2W8HPaNBLgKWw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1763765077; a=rsa-sha256; cv=none; b=NAb8mGG35D9goNf++9XvfqbrUNp4B6ptdN16khUqdP36kBimK0DSHLN4o2wmTa0a06D4s0 eACA0SSOlR2sZeRkZEZ+PgWRu5VEqtjLEYlsY55B35eZGZod6+VUKYvoBl5a1jIQHY+UHr pP6wx+9eNeYODz2ccWprf2sGqsTjSD435iy4kyXtIsbny2/tl504+cWurqvWIcJAW56dww m0KFnS+bJnEkifITQlj/ceCvQmiSakneGPEnRjI8DsVIekA7p6Ug9YNb1VymNpE8yuPee0 FVXPUuvLQwS8R+KsT4/e3uTkOgrOU8Z0+vdXZyZanJzZaueuDrwfQ82V3NmIEw== 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 4dCqz95q6mzWgn for ; Fri, 21 Nov 2025 22:44:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3ccee by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 21 Nov 2025 22:44:37 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: 5469a3493b17 - main - bpf: remove dead code List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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: 5469a3493b17021a5272c4eb2e9d8024e424cd3b Auto-Submitted: auto-generated Date: Fri, 21 Nov 2025 22:44:37 +0000 Message-Id: <6920eb55.3ccee.1f581eac@gitrepo.freebsd.org> The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=5469a3493b17021a5272c4eb2e9d8024e424cd3b commit 5469a3493b17021a5272c4eb2e9d8024e424cd3b Author: Gleb Smirnoff AuthorDate: 2025-11-21 22:43:47 +0000 Commit: Gleb Smirnoff CommitDate: 2025-11-21 22:43:47 +0000 bpf: remove dead code Should have gone together with 9738277b5c66. --- sys/net/bpf.c | 24 ------------------------ sys/net/bpf.h | 1 - 2 files changed, 25 deletions(-) diff --git a/sys/net/bpf.c b/sys/net/bpf.c index f598733773d0..d80eb8b80016 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -2828,30 +2828,6 @@ bpfattach2(struct ifnet *ifp, u_int dlt, u_int hdrlen, } #ifdef VIMAGE -/* - * When moving interfaces between vnet instances we need a way to - * query the dlt and hdrlen before detach so we can re-attch the if_bpf - * after the vmove. We unfortunately have no device driver infrastructure - * to query the interface for these values after creation/attach, thus - * add this as a workaround. - */ -int -bpf_get_bp_params(struct bpf_if *bp, u_int *bif_dlt, u_int *bif_hdrlen) -{ - - if (bp == NULL) - return (ENXIO); - if (bif_dlt == NULL && bif_hdrlen == NULL) - return (0); - - if (bif_dlt != NULL) - *bif_dlt = bp->bif_dlt; - if (bif_hdrlen != NULL) - *bif_hdrlen = bp->bif_hdrlen; - - return (0); -} - /* * Detach descriptors on interface's vmove event. */ diff --git a/sys/net/bpf.h b/sys/net/bpf.h index 486e3f59f7d5..dfb8373bb329 100644 --- a/sys/net/bpf.h +++ b/sys/net/bpf.h @@ -428,7 +428,6 @@ void bpfattach2(struct ifnet *, u_int, u_int, struct bpf_if **); void bpfdetach(struct ifnet *); bool bpf_peers_present_if(struct ifnet *); #ifdef VIMAGE -int bpf_get_bp_params(struct bpf_if *, u_int *, u_int *); void bpf_ifdetach(struct ifnet *); #endif