Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2023 09:44:16 +0000
From:      =?utf-8?Q?Mina_Gali=C4=87?= <freebsd@igalic.co>
To:        hps@selasky.org, freebsd-net@freebsd.org, freebsd-infiniband@FreeBSD.org
Subject:   Re: Ifconfig limitations
Message-ID:  <fhp1gy5B7PavSt8LECZHjJyr_8yTa1e9iDID-bLO0iTxV9Jj8EX2Hlrok1kq_v0CC2KUVI36Nn4hfh7jHT9k3gN2f7z2WEtDsyDDqde0oDM=@igalic.co>
In-Reply-To: <fff88b1b-8d61-3941-78a1-cfe9b24bad9f@selasky.org>
References:  <IVmRoS9TeDkyGukaM0qZFV5cJHYqgRVSK9j6QcGojTxcZO5PIXxaXLWyoMNCyfwsjJDMtGJpRy0wQlbZFHej-eOh8zg_HFPI6urBrV8FB9I=@igalic.co> <fff88b1b-8d61-3941-78a1-cfe9b24bad9f@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi HPS,

i don't see those sysctl entries for regular devices?
is this infiniband specific?
or is there anything I need to enable to get these sysctls?

Kind regards,

Mina
-------- Original Message --------
On 18 Apr 2023, 10:32, Hans Petter Selasky wrote:

> Hi, All the `/sys/class/net//*` entries are sysctl(8) entries, like Sobczak, pointed out. They are converted simply by replacing "/" with ".", and there are some helper functions in: contrib/ofed/libibumad/sysfs.c: if (sysctlbyname(PATH_TO_SYS(path), str, &len, NULL, 0) == -1) To do this conversion automagically. you specify the Linux equivalent as a "const char *" pointer, and then it looks up the value for you under FreeBSD. We may not have all the entries, but most you need is there, and some additions specific to FreeBSD. --HPS
[-- Attachment #2 --]
Hi HPS,<br><br>i don't see those sysctl entries for regular devices?<br>is this infiniband specific?<br>or is there anything I need to enable to get these sysctls?<br><br>Kind regards,<br><br><br>Mina<br>-------- Original Message --------<br>On 18 Apr 2023, 10:32, Hans Petter Selasky < hps@selasky.org> wrote:<blockquote class="protonmail_quote"><br>Hi,

All the `/sys/class/net/<device>/*` entries are sysctl(8) entries, like
Sobczak, pointed out. They are converted simply by replacing "/" with
".", and there are some helper functions in:

contrib/ofed/libibumad/sysfs.c:	if (sysctlbyname(PATH_TO_SYS(path), str,
&len, NULL, 0) == -1)

To do this conversion automagically. you specify the Linux equivalent as
a "const char *" pointer, and then it looks up the value for you under
FreeBSD.

We may not have all the entries, but most you need is there, and some
additions specific to FreeBSD.

--HPS
</div>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fhp1gy5B7PavSt8LECZHjJyr_8yTa1e9iDID-bLO0iTxV9Jj8EX2Hlrok1kq_v0CC2KUVI36Nn4hfh7jHT9k3gN2f7z2WEtDsyDDqde0oDM=>