From nobody Wed Nov 13 19:38:29 2024 X-Original-To: freebsd-net@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 4XpYVb00D8z5cVb6; Wed, 13 Nov 2024 19:38:31 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XpYVZ6Z6Vz4CZ3; Wed, 13 Nov 2024 19:38:30 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731526710; 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=uY+4/nH7ZkDUa9qD3A5tkJcq5yVZ0JdNyBa5ccYz6h8=; b=cw2Flpa51zFBF1/NpFEihWZEgHtHDDQbGfBvkM9JtQv9gv8jyDTvxbYYnvfsU7qW/L7rxT 218FCHXOLQf7U46EJUp9erYyz2TZ0kkONPyvfs3L/sH8/JIyO18QvxJ+AJnkgGKle/+1oa rbnzA9W839FJ3+7If3GaT3wazKBTGf90vqzcR3n1vR0mDBSiIJldteXdB1zeuFux0/+Pwu VuveWQM0EN+kpNDPzXvnGTasWmsbVnu82HV9nIKuuiZ+Y/lb5cUZ5xnYIbswwJVzqHZjFk W9j2a4bX0l9QyBP13h/Xs3m5QA8xzqr2x6VUci/76WOO3iPuK/TrLzAPRCZGzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731526710; 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=uY+4/nH7ZkDUa9qD3A5tkJcq5yVZ0JdNyBa5ccYz6h8=; b=WEnDio/S32i3vq0nbbybCjqyzfvKq6SfnSXJ4+oPCSzig/MqIweCPB1MEAvq+Jfm1bdHSm d/CjRu08c8Tdh6imPRXswsLYV+LYhmZdvaifpb5A9rXJNH2BNTzoGJqofxv0eyljz1XVXp +cayEze3aGPhPFnGioEAbAFYWYuQmfy01NhuguBZacc7iroFgb2mASc7YVy2fQKjFM5xNL o2Ra3QkirxhhDx0ufSAi+yM62x9XSK0+lBAlfOz4TD9taypzUOe8YRhszeX+6xhGx/NS9U 6k0xTC5PWt6ZaiGK4/JkFRf7slQ3Wh4vxP7HAsVSGyV97aFh/ZQzQqfR8tuk4Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731526710; a=rsa-sha256; cv=none; b=YBPSyN3S7kziDg4Y7vIgOdyBJRIqef8vD21sb9bRjBg8TyIUWFDhFvgNC05991tNl2dUx6 SV7ZN4bQHoDyzvUn0jqe+x0gPZfdLxiH5Z6k6yjv94AUNrXzCyNhrdlurkB9+7y0Dhe4Rf TqAlB6Eh8yah6k2adzjh9BEkAvV0MvJq+XWTQ0xfXD+zik7MLo9Bu2WytrSyLeaDFrL4c2 C+VnKIFPNAyNZ4IpONXm27Xs1LuvtGVzansYO2tdZ6T8t34AMGfcM+a4kZ0Jtuz8lgBCLo UbPRLimcme0D42w11e2gvBVNOaeRwRr239y3fbnry8UmPii+u7Ns7X480Ix+Ow== Received: from ralga.knownspace (unknown [IPv6:2600:2b00:a720:d301:9f03:382a:d672:81f0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: jhibbits) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XpYVZ521wzJmd; Wed, 13 Nov 2024 19:38:30 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Date: Wed, 13 Nov 2024 14:38:29 -0500 From: Justin Hibbits To: , Subject: struct ifnet is now hidden Message-ID: <20241113143829.68bfbf8c@ralga.knownspace> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.43; powerpc64le-unknown-linux-gnu) List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi everyone, Many thanks to everyone involved, either fixing ports, reviewing changes, or assisting with the API, struct ifnet is now hidden from drivers and userspace. This means drivers now use the IfAPI, currently largely consisting of just getters and setters in place of direct access, with tools/ifnet/convert_ifapi.sh being a good starting point for adapting drivers. In struct ifnet's place is if_t, an opaque pointer. "Blessed" parts of the kernel, effectively anything sys/net*, modulo sys/netlink, can directly access it, as those directories comprise the network stack, so need direct access, as they manage the interfaces. Manpage updates will be coming "soon", I'm hoping in the next few weeks, and will likely need lots of review and editing. Again, thanks for everyone's help. I hope the road forward with this is not too bumpy. - Justin