Re: Ifconfig limitations

2023-04-18 Thread Hans Petter Selasky
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 c

Re: Ifconfig limitations

2023-04-18 Thread Mina Galić
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//*` entrie

Re: Ifconfig limitations

2023-04-18 Thread Hans Petter Selasky
On 4/18/23 11:44, Mina Galić wrote: 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, Hi, The sysctl entries you are referring to are created by ibcore.ko . Unless the network

Re: Ifconfig limitations

2023-04-18 Thread Mina Galić
> On 4/18/23 11:44, Mina Galić wrote: > > > 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, > > > Hi, Hi > The sysctl entries you are referring to ar

[Bug 270607] if_bridge: net.link.bridge.inherit_mac doesn't quite work

2023-04-18 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270607 --- Comment #12 from Zhenlei Huang --- @Bob Bishop Once https://reviews.freebsd.org/D39638 is done, you can also add `net.link.bridge.inherit_mac=1` to /boot/loader.conf . `net.link.bridge.inherit_mac` is actually a loader tunable, but d

[Bug 235920] ifconfig: unable to create another interface after renaming the previous one with the same name

2023-04-18 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235920 --- Comment #4 from Zhenlei Huang --- (In reply to Oleg Ginzburg from comment #0) If `ifconfig create` with an unit number, then cloner will check whether the number is available or not ( via alloc_unr_specific() ). ``` static int tun_clon

[Bug 235920] ifconfig: unable to create another interface after renaming the previous one with the same name

2023-04-18 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235920 Kyle Evans changed: What|Removed |Added CC||kev...@freebsd.org --- Comment #5 fro

[Bug 235920] ifconfig: unable to create another interface after renaming the previous one with the same name

2023-04-18 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235920 Franco Fichtner changed: What|Removed |Added CC||fra...@opnsense.org --- Comment