[00:09] hello [00:10] Daddy finger [15:47] 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] minimal: +1 from me; I'll happily put the FreeBSD back in instead of you [22:20] somebody here will have to explain to me net.get_ib_interface_hwaddr() and net.get_ib_interface_hwaddr() [22:21] Those to functions feel… intertwined in the wrongest possible way [22:21] Also, I need to make them understand duplicate mac addresses… [22:23] What, exactly, is /sys/net//type and where is that documented? [22:25] /sys/class/net is part of sysfs. https://man7.org/linux/man-pages/man5/sysfs.5.html [22:25] did you post the same function above? I see net.get_ib_interface_hwaddr() twice (or can't tell the difference :P ) [22:33] falcojr: i… did [22:33] net.get_ib_hwaddrs_by_interface() [22:34] calls for name, _, _, _ in get_interfaces(): and then gets upset if there's duplicate nics [22:34] but it also calls ib_mac = get_ib_interface_hwaddr(name, False) [22:34] which calls mac = get_interface_mac(ifname) [22:34] and i just don't understand why we're not calling get_interfaces_by_mac() to begin with!? [22:38] I'm guessing that infiniband devices present differently, so they need a different code path [22:42] falcojr: whether they are present or not is checked by name, which get_interfaces_by_mac() also returns, IIRC [22:43] basically, this is just very inefficient from an algorithmic point of view, given that these two functions very often interact. [22:44] either way, I need to find/fake infiniband hardware, to find out what the FreeBSD equivalent of /sys/class/net//type is [22:45] or I'll be eating my words about how cool BSD's ifconfig(8) is… [22:46] 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] 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] hrm, we have laggtype ethernet / infiniband [22:56] meena: What: /sys/class/net//type [22:56] Date: April 2005 [22:56] KernelVersion: 2.6.12 [22:56] Contact: netdev@vger.kernel.org [22:56] Description: [22:56] Indicates the interface protocol type as a decimal value. See [22:56] include/uapi/linux/if_arp.h for all possible values. [22:57] i'm guessing anything with media-type 10GBase will probably be infiniband, eh? [22:57] that include file shows infiniband as 32 and ethernet as 1 [22:57] or is there regular ethernet that can do 40G, or 100G? [22:58] meena: and that's it? [22:59] meena: did you mean to ask yourself or to ask me? lol [22:59] minimal: it's time to ask: why is meena not in bed yet [23:00] it's time for me to ask you if you asked yourself that yet? [23:00] as for those defs, there's plenty of other types defined there, e.g. PPP, AX25, Appletalk, etc [23:02] minimal: how many of your cloud-servers speak Appletalk, tho? [23:04] it's not a cloud file though, it's a Linux kernel header file [23:06] heck there's Econet defined there which I don't think anyone has used since about 1986-ish lol [23:07] 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] i… might just do that, tho that still won't give me access to infiniband hardware… hrm… [23:08] anyway, sleep time, I can read code in bed, too [23:16] minimal: +1 if that's what you want to do [23:19] meena: 10G, 40G, 100G, 400G ethernet also exist [23:20] 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] holmanb: you forgot 2.5G ;-) [23:20] 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] 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] old IB tends to be cheap if you directly connect machine to machine, IB switches tend to be still relatively expensive [23:24] if the card(s) you get are in ethernet mode, the tool to reflash the cards is called mstflint [23:26] at least on mellanox anyways