[00:09] <jassm> hello
[00:10] <jassm> Daddy finger
[15:47] <minimal> holmanb: starting to wonder if it was a bad idea for me to do the RHEL/Fedora and FreeBSD changes in my PR, wondering whether to remove them and just stick with the other Alpine/Debian/Ubuntu related changes
[15:57] <meena> minimal: +1 from me; I'll happily put the FreeBSD back in instead of you
[22:20] <meena> somebody here will have to explain to me net.get_ib_interface_hwaddr() and net.get_ib_interface_hwaddr()
[22:21] <meena> Those to functions feel… intertwined in the wrongest possible way
[22:21] <meena> Also, I need to make them understand duplicate mac addresses…
[22:23] <meena> What, exactly, is /sys/net/<blah>/type and where is that documented?
[22:25] <falcojr>  /sys/class/net is part of sysfs. https://man7.org/linux/man-pages/man5/sysfs.5.html
[22:25] <falcojr> did you post the same function above? I see net.get_ib_interface_hwaddr() twice (or can't tell the difference :P )
[22:33] <meena> falcojr: i… did
[22:33] <meena> net.get_ib_hwaddrs_by_interface()
[22:34] <meena> calls     for name, _, _, _ in get_interfaces(): and then gets upset if there's duplicate nics
[22:34] <meena> but it also calls         ib_mac = get_ib_interface_hwaddr(name, False)
[22:34] <meena> which calls         mac = get_interface_mac(ifname)
[22:34] <meena> and i just don't understand why we're not calling get_interfaces_by_mac() to begin with!?
[22:38] <falcojr> I'm guessing that infiniband devices present differently, so they need a different code path
[22:42] <meena> falcojr: whether they are present or not is checked by name, which get_interfaces_by_mac() also returns, IIRC
[22:43] <meena> basically, this is just very inefficient from an algorithmic point of view, given that these two functions very often interact.
[22:44] <meena> either way, I need to find/fake infiniband hardware, to find out what the FreeBSD equivalent of  /sys/class/net/<net-dev>/type is
[22:45] <meena> or I'll be eating my words about how cool BSD's ifconfig(8) is…
[22:46] <falcojr> I mean in a different location in sysfs, so they won't get returned in the normal get_interfaces_by_mac() call. Just guessing though...haven't looked deep enough yet
[22:48] <minimal> infiniband devices tend to be able to operate in either ethernet or IB mode. I think IB MAC addresses are longer than ethernet MAC addresses
[22:50] <meena> hrm, we have laggtype ethernet / infiniband
[22:56] <minimal> meena: What:		/sys/class/net/<iface>/type
[22:56] <minimal> Date:		April 2005
[22:56] <minimal> KernelVersion:	2.6.12
[22:56] <minimal> Contact:	netdev@vger.kernel.org
[22:56] <minimal> Description:
[22:56] <minimal> 		Indicates the interface protocol type as a decimal value. See
[22:56] <minimal> 		include/uapi/linux/if_arp.h for all possible values.
[22:57] <meena> i'm guessing anything with media-type 10GBase will probably be infiniband, eh?
[22:57] <minimal> that include file shows infiniband as 32 and ethernet as 1
[22:57] <meena> or is there regular ethernet that can do 40G, or 100G?
[22:58] <meena> meena: and that's it?
[22:59] <minimal> meena: did you mean to ask yourself or to ask me? lol
[22:59] <meena> minimal: it's time to ask: why is meena not in bed yet
[23:00] <minimal> it's time for me to ask you if you asked yourself that yet?
[23:00] <minimal> as for those defs, there's plenty of other types defined there, e.g. PPP, AX25, Appletalk, etc
[23:02] <meena> minimal: how many of your cloud-servers speak Appletalk, tho?
[23:04] <minimal> it's not a cloud file though, it's a Linux kernel header file
[23:06] <minimal> heck there's Econet defined there which I don't think anyone has used since about 1986-ish lol
[23:07] <meena> every two weeks or so, I feel like I've started this all wrong, and should've began by adding libxo support to ifconfig
[23:08] <meena> i… might just do that, tho that still won't give me access to infiniband hardware… hrm…
[23:08] <meena> anyway, sleep time, I can read code in bed, too
[23:16] <holmanb> minimal: +1 if that's what you want to do
[23:19] <holmanb> meena: 10G, 40G, 100G, 400G ethernet also exist
[23:20] <minimal> holmanb: well FreeBSD seems to have different behaviour/layouts for <14.0 and 14.0+, and on the RHEL/Fedora size there seems to be no clear information on how to delete system CAs
[23:20] <minimal> holmanb: you forgot 2.5G ;-)
[23:20] <holmanb> meena:  If you're looking for IB hardware, you should be able to find it pretty cheap secondhand. ConnectX 4 and 5 is probably not hard to find, it might be too early for ConnectX 6 on the secondary market
[23:21] <holmanb> minimal: I don't think I've ever bothered with 2.5G, but I've tested gear with all the other numbers I mentioned ;)
[23:21] <minimal> old IB tends to be cheap if you directly connect machine to machine, IB switches tend to be still relatively expensive
[23:24] <holmanb> if the card(s) you get are in ethernet mode, the tool to reflash the cards is called mstflint
[23:26] <holmanb> at least on mellanox anyways