From nobody Mon Nov 11 13:52:32 2024 X-Original-To: freebsd-arch@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 4Xn9wp4c22z5bcGg for ; Mon, 11 Nov 2024 13:52:58 +0000 (UTC) (envelope-from janm@transactionware.com) Received: from mail3.transactionware.com (mail.transactionware.com [203.14.245.7]) by mx1.freebsd.org (Postfix) with SMTP id 4Xn9wn15HPz3xSK for ; Mon, 11 Nov 2024 13:52:56 +0000 (UTC) (envelope-from janm@transactionware.com) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of janm@transactionware.com designates 203.14.245.7 as permitted sender) smtp.mailfrom=janm@transactionware.com; dmarc=none Received: (qmail 32130 invoked by uid 907); 11 Nov 2024 13:52:49 -0000 Received: from i59F7FC9F.versanet.de (HELO smtpclient.apple) (89.247.252.159) (smtp-auth username janm, mechanism plain) by mail3.transactionware.com (qpsmtpd/0.84) with (ECDHE-RSA-AES256-GCM-SHA384 encrypted) ESMTPSA; Tue, 12 Nov 2024 00:52:49 +1100 Content-Type: text/plain; charset=utf-8 List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.200.121\)) Subject: Re: CAN bus support From: Jan Martin Mikkelsen In-Reply-To: Date: Mon, 11 Nov 2024 14:52:32 +0100 Cc: freebsd-arch@freebsd.org, Ed Maste , Warner Losh Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Kevin Bowling X-Mailer: Apple Mail (2.3826.200.121) X-Spamd-Result: default: False [-2.98 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.99)[-0.994]; NEURAL_HAM_SHORT(-0.79)[-0.787]; R_SPF_ALLOW(-0.20)[+ip4:203.14.245.0/24]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:17559, ipnet:203.14.245.0/24, country:AU]; RCVD_COUNT_ONE(0.00)[1]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[transactionware.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; APPLE_MAILER_COMMON(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arch@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; R_DKIM_NA(0.00)[]; RCPT_COUNT_THREE(0.00)[4] X-Rspamd-Queue-Id: 4Xn9wn15HPz3xSK X-Spamd-Bar: -- Hi, A related company manufactures a few CAN based products, and = communicates with them from Linux (and a long time ago, Windows CE). The = devices perform various on-board functions in metros, including audio = streaming, so our driver requirements are a little different to (say) = SocketCAN. We have an upcoming requirement to implement an appliance for use in = maintenance and repairs, and I=E2=80=99d like to do that based on = FreeBSD. I haven=E2=80=99t started looking at this yet, but I=E2=80=99m certainly = interested how CAN might progress on FreeBSD. Regards, Jan M. > On 9. Nov 2024, at 22:57, Kevin Bowling = wrote: >=20 > Hello, >=20 > A FreeBSD vendor is interested in interacting with CAN bus on FreeBSD. >=20 > A convenient starting point would be NetBSD's can(4) > (https://man.netbsd.org/can.4) which implements something very similar > to Linux' SocketCAN > (https://www.kernel.org/doc/Documentation/networking/can.txt) to > provide the protocol/interface and then writing a driver for their > controller. >=20 > Is there other interest or concern about the topic? >=20 > Regards, > Kevin >=20 From nobody Wed Nov 13 19:38:29 2024 X-Original-To: freebsd-arch@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: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@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 From nobody Thu Nov 14 15:49:42 2024 X-Original-To: freebsd-arch@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 4Xq4N73FHzz5cpy7; Thu, 14 Nov 2024 15:49:43 +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 4Xq4N72Q5qz4kDN; Thu, 14 Nov 2024 15:49:43 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731599383; 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: in-reply-to:in-reply-to:references:references; bh=L8r6fU/MazbXMbBr7qYil67t/NvHAE7hzsIhv+uEpAY=; b=UjSFhAlvykt+Um+Kc3zsBXQ6RGJJGju5mfOxvwmrv8diGDYhoHCVecfh+pNhZtZX6buYHs zsAc430EVqd84ZJNW3fGCA47hvYj7ucsyZCoB94z09WRuXlWcipuqs+G/X/RKW0vcUtG7g YD9ZS4maJepCqi8lvkZAxqXjOM0kZELIAcxoJNbULskzFci3YFdWKydQWCe13bgQDTfMzh 4RYQSNeSETZ8ovHpj9A/5nfLE2XIxf7TUtZjyKQeWSOeFU+2Hwod/clVZuqFivUSylA+pr Zsece/ObaoSqwkFVYdixZZHdlhqAMeUQDp5Ahyjltm3vcmtfrdngLZaLWZZTOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731599383; 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: in-reply-to:in-reply-to:references:references; bh=L8r6fU/MazbXMbBr7qYil67t/NvHAE7hzsIhv+uEpAY=; b=uGXPXCqZfaR1JuLME+sa8mqvQ9XyJdiAWmT5ThVqrA2EwE8n1N7I+r3+8T5gKxsDpvTn3j TkE1i/y+DzCdn30+/G2YrAgefb6D+MRcuioQ52c8a9oftfXIMjvKc+Znz3lEyiI8cfWdP8 34+2kBL8as153S4rRNkSbDatuZm0WE689vpW45nZJgqngr8GvKCRo1yDOQtSyUK4wMczwA SPzRoybSmWy6k0+bGGLq8udGI02V8p7KY3BZQC7IsZ6omiMXvs/ydBtJOtCFu3B81u1Mz7 bU6yZW9as1eq/HWe+ukdojFWeI0qbiMCcxYBp9LzYwieneENeSngHichqAbg6Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731599383; a=rsa-sha256; cv=none; b=ve1wZ+0nQ8Pc5zUV8XhuhNHp/kVTFesFpCgIBVbf/S9zw22HGocQ3k8wJ8ODM/Cm4zl+5A e2OrpOpi2Jg3utf+S6b6IKzATcJNdO2KJ4EJGAtPIXvO3Rw1Gr9qQVduN1rhcTLCVvBFCC 54T30IYvM954v7EeaLzn6n6kjwDv7hakbreqHHSZcQSnSm0bPM+jkbDgBMYP4QrJ7tHw26 9hKOve25o2fFSasMHS+iYaFbwmBkVzE2B9yxTCT1794Z6Hd6kW9+J+V5A5iVuI5134sC4s pQ8G2pfzetlmm4qBEst4k+Fn6ZYJIsQzSP+ItVmvNU6MEyhFGVo+B1AoZd1kQQ== 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 4Xq4N716lmz11Jf; Thu, 14 Nov 2024 15:49:43 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Date: Thu, 14 Nov 2024 10:49:42 -0500 From: Justin Hibbits To: , Subject: Re: struct ifnet is now hidden Message-ID: <20241114104942.31be0431@ralga.knownspace> In-Reply-To: <20241113143829.68bfbf8c@ralga.knownspace> References: <20241113143829.68bfbf8c@ralga.knownspace> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.43; powerpc64le-unknown-linux-gnu) List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 13 Nov 2024 14:38:29 -0500 Justin Hibbits wrote: > 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 > Follow-up. olivier@ reminded me that I hadn't bumped __FreeBSD_version, so I just did that (1500027 now). Though the IfAPI has been pretty much baked for a year, this will represent the point where struct ifnet is no longer available to the general audience. - Justin From nobody Thu Nov 14 17:05:02 2024 X-Original-To: freebsd-arch@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 4Xq63n3CNcz5cv9w; Thu, 14 Nov 2024 17:05:41 +0000 (UTC) (envelope-from ccfreebsd@gmail.com) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xq63n2c6Zz4wCd; Thu, 14 Nov 2024 17:05:41 +0000 (UTC) (envelope-from ccfreebsd@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-539e83daa12so94550e87.1; Thu, 14 Nov 2024 09:05:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731603939; x=1732208739; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vGMvjL/bcMEGlLvd8masr8zw6x7onMkk1OMGeSCr8e0=; b=dbkur40uDeuG8oNG4ff/iOPdxzvm7Y1i64wSc4VAl2Id7pZmzslcyxKI/N8+ip8bRb ekicEvvoPRPLCByDYTar5SJGhhGUbAjhYQxOryVqTk2Z4Vgy42kxzeNp4y+JlTA/D77m x2EBwsLvQcZjdfst0N7QJflGyPYcAw989uZrSp4nTRI/sYOOGAoBsBfxlgEbEG4Bge9c iI+hm4AyTE0QL3lA9NYrJ2UI1p+FsknV6CP8LsZowPr2jvkvdk8cE+yyMebuIhJ2wNUS +hUI2Kcfjve7dvddJzlBKBPHv4NXwUVZ04PF0M2Sj73UgGv3LRszYkXkcawoH5G7o32C kgWQ== X-Forwarded-Encrypted: i=1; AJvYcCXPrbiPX2kYbzpMO9ypEOyCr5ZNyjuYMH1VJNj+6jvPaR6vUYxFQ/UUn/CwigYSpKbh8pJHOV4g8XSApA==@freebsd.org X-Gm-Message-State: AOJu0YwxVp/0rZWIekSl8doCe63nm7MTrh+ccK7N5z21BxbyYXTRLQaJ Qh/nRm0cXldbsgJ8VYQwfZ9KZbM5/VurOE4YFkfo8BcaJNoOrAiEFreWD+Ww X-Gm-Gg: ASbGnct0p1VllfzBAQlMKYp2lUfr+8oIGVzMhZVYNRWDIYMAWW4chCdqnuIO+FNE9Sp p77KxCpSvNZd8CP7R5j5VrD9DSetR3e62XRtIPnp2eiPi1FMwaK4AoEVDS7KBfPZRhRt5Df8f5Q iJcH47dgZBk4xtRVouhSHydocCULWpTjtR0RZCpQFFwmLoNnl184MWaVmD8lbwPDTiKfuPFjpmv WDIgkgPswH7sIcikVdFQFJXMLYzGKkDZSpf25W8gToOqBpAeDDBy9o7TiiURUYavejNbVOrqLZo Sby6 X-Google-Smtp-Source: AGHT+IGh+etZ7NhGSgFdJJuQknjTghxglRj9tsEGhptB4hQpdtY5PEEj26+1UIKoFjXvJYnvcHTd/w== X-Received: by 2002:a05:6512:12cc:b0:53d:a95f:2d71 with SMTP id 2adb3069b0e04-53da95f2dc8mr267210e87.12.1731603939173; Thu, 14 Nov 2024 09:05:39 -0800 (PST) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com. [209.85.167.48]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53da6d3d62dsm221614e87.13.2024.11.14.09.05.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Nov 2024 09:05:38 -0800 (PST) Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-539e83daa12so94547e87.1; Thu, 14 Nov 2024 09:05:38 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXDFlID5V9dU+1QS0W4iR/fd1bG5loNISPVvejczZAcNMjU8mrVoIFMf3jsdb8pJQ+gVL+u+BoV2OAlGA==@freebsd.org X-Received: by 2002:a05:651c:1596:b0:2fc:ae45:3137 with SMTP id 38308e7fff4ca-2ff202becacmr31683471fa.11.1731603938489; Thu, 14 Nov 2024 09:05:38 -0800 (PST) List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@FreeBSD.org MIME-Version: 1.0 References: <20241113143829.68bfbf8c@ralga.knownspace> In-Reply-To: <20241113143829.68bfbf8c@ralga.knownspace> From: Cheng Cui Date: Thu, 14 Nov 2024 12:05:02 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: struct ifnet is now hidden To: Justin Hibbits Cc: freebsd-arch@freebsd.org, freebsd-net@freebsd.org Content-Type: multipart/alternative; boundary="000000000000a545f10626e275b3" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4Xq63n2c6Zz4wCd X-Spamd-Bar: ---- --000000000000a545f10626e275b3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =F0=9F=91=8D=F0=9F=91=8D You have my thumbs up! cc On Wed, Nov 13, 2024 at 2:38=E2=80=AFPM Justin Hibbits wrote: > 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 > > --=20 Best Regards, Cheng Cui --000000000000a545f10626e275b3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
=F0=9F=91=8D=F0=9F=91=8D=C2=A0You have my thumbs up!<= br>

cc

On Wed, Nov 13, 2024 at 2:38=E2=80=AFPM Just= in Hibbits <jhibbits@freebsd.org= > wrote:
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.=C2=A0 This means drivers now use the IfAPI, currentl= y
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.=C2=A0 "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.=C2=A0 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.=C2=A0 I hope the road forward with t= his
is not too bumpy.

- Justin



--
Best Regards,
Cheng Cui
--000000000000a545f10626e275b3--