From nobody Wed Jan 04 20:11:25 2023 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 4NnLMx33rRz2p0JS; Wed, 4 Jan 2023 20:11:25 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NnLMx2Pvhz4PZm; Wed, 4 Jan 2023 20:11:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672863085; 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=iQLjeoTSgtmkIOn2dNuez51MVewPYrt/8KOX5pyyLN4=; b=TqznQwbW8oNqTppEBIClIC6LB0TSyGiFcEqJnTfx4LP+pm5S7aRecWcXpjUfUwBirPH+ty 6sbCJy5vzgLy+mEiRHNqeFyKzxh+NzCcb/dvk++vrY0NX4ZxRWT6/DlKBtjaNy9180bncj gjv1K3sCyJ1kDom/SkmaNOvTXl6cQ1yrDAoTLEUh3UDe1vViRlPf/NmLulIwt3/YXExhAi KH4uJqhr9/jxPF6iTQTwabTDVnX1m3rTqZafcE1pgXEuKcINopaUYLzqYivOoMvzu89cwN KKwmBkwdkjSSz0JhX/z4/0YmaQaP4I3k5H1TEEXGc2qR2LzHUd2QL4nu9Xw6RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672863085; 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=iQLjeoTSgtmkIOn2dNuez51MVewPYrt/8KOX5pyyLN4=; b=DHxkh8TnjFM1nhtNzHIlZQDRgP5v+ENEkFwTpnfxxuCgJOU0rFfCx7N14FMCLqJ7b7wisH aviV6rjb8NvF2yUkULflrEoC32KMwi+VncoYyn33NVV0JKYSFYulc5SjdejOQg0M47W/pV hNI0Mn1McYoxBKpCCfMJ7hrqJh02fiP7raSCVhF3hvUzmNR19QZcrhab5EcJ1O5lW/svZG hOnlqu6TTS7OZlsqA4Fkyrks4aow80AJc03A3c0h2kYOoDxC7uFP9bVSxV4zxEnvoNzh2+ iRYVbATe5LaQTC9Gkklg5A420gevhk+zfL0kzeTeRCEJ8DPCoDptPKuXWhxuXQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672863085; a=rsa-sha256; cv=none; b=GNjF3NN8DQ3HjM5hhAFVuYP+lqJteQixV2k5oYQ7nIPseNkcemWgLRy7Ix7cmE+6N0pkvf PrsfjQNHQ27ufBhyx3LdyvyMp3garZ1aI17mlzvqdzYVnfut9QpCM/E+MbKln4e58l3IQR WyOWDX2tKewFjETkZ8QJvg9G/ADWSp3sIZUed+8Vmn0JJXog2O6uGRL5CUkeyc4KMs6PMR zGnlVPmSz3Mu1N2CW4s6Lu4iuKIzhqGNBdYoumeP3TpkzzjVbmKHmZShRunjRFUkYY82zm zMVpkOBsTEbZ5dANGAtaCKVCVA4Qagjezle221K/yumkY0+ePcaf9Xn0X7Tnvw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NnLMx1SJyzNwC; Wed, 4 Jan 2023 20:11:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 304KBPBK068700; Wed, 4 Jan 2023 20:11:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 304KBPc8068699; Wed, 4 Jan 2023 20:11:25 GMT (envelope-from git) Date: Wed, 4 Jan 2023 20:11:25 GMT Message-Id: <202301042011.304KBPc8068699@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Justin Hibbits Subject: git: be4315dcbb8c - main - ifnet/DrvAPI: Move if_t typedef to a better place 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhibbits X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: be4315dcbb8c54b9965815c5152c2c0bcb6e52e8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=be4315dcbb8c54b9965815c5152c2c0bcb6e52e8 commit be4315dcbb8c54b9965815c5152c2c0bcb6e52e8 Author: Justin Hibbits AuthorDate: 2022-12-21 21:15:09 +0000 Commit: Justin Hibbits CommitDate: 2023-01-04 20:15:10 +0000 ifnet/DrvAPI: Move if_t typedef to a better place Summary: should really be used by the netstack only, not by drivers. Eventually all the accessors will be moved to as well, but for now just move the typedef while the KPI gets sorted and drivers get converted. Sponsored by: Juniper Networks, Inc. Reviewed By: melifaro, glebius Differential Revision: https://reviews.freebsd.org/D37784 --- sys/net/if.h | 6 ++++++ sys/net/if_var.h | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/net/if.h b/sys/net/if.h index b39eb933993c..85c217a888bd 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -657,6 +657,12 @@ MALLOC_DECLARE(M_IFADDR); MALLOC_DECLARE(M_IFMADDR); #endif +/* + * Opaque interface structure. + */ + +typedef struct ifnet * if_t; + extern struct sx ifnet_detach_sxlock; struct nvlist; diff --git a/sys/net/if_var.h b/sys/net/if_var.h index 6ec95da4c0cd..2712ac74a09d 100644 --- a/sys/net/if_var.h +++ b/sys/net/if_var.h @@ -124,8 +124,6 @@ typedef enum { IFCOUNTERS /* Array size. */ } ift_counter; -typedef struct ifnet * if_t; - typedef void (*if_start_fn_t)(if_t); typedef int (*if_ioctl_fn_t)(if_t, u_long, caddr_t); typedef void (*if_init_fn_t)(void *);