From nobody Tue Apr 18 09:32:26 2023 X-Original-To: freebsd-infiniband@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 4Q0zGp2p3zz44ph2; Tue, 18 Apr 2023 09:32:34 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4Q0zGn4gZ8z41kt; Tue, 18 Apr 2023 09:32:33 +0000 (UTC) (envelope-from hps@selasky.org) Authentication-Results: mx1.freebsd.org; none Received: from [10.36.2.154] (unknown [46.212.121.255]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id E2E56262417; Tue, 18 Apr 2023 11:32:25 +0200 (CEST) Message-ID: Date: Tue, 18 Apr 2023 11:32:26 +0200 List-Id: Infiniband on FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-infiniband List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-infiniband@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: Ifconfig limitations Content-Language: en-US To: =?UTF-8?Q?Mina_Gali=c4=87?= , "freebsd-net@freebsd.org" , "freebsd-infiniband@FreeBSD.org" References: From: Hans Petter Selasky In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Q0zGn4gZ8z41kt X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N 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