[systemd-devel] Fwd: [PATCH] Add support for detecting NIC partitions on Dell Servers

Kay Sievers kay at vrfy.org
Mon Nov 9 16:47:59 PST 2015


On Mon, Nov 9, 2015 at 11:43 PM, Lennart Poettering
<lennart at poettering.net> wrote:
> On Mon, 09.11.15 12:42, Jordan Hargrave (jharg93 at gmail.com) wrote:
>
>> From: Jordan Hargrave <jharg93 at gmail.com>
>>
>> This patch will integrate some of the features of biosdevname into systemd.
>> The code detects the port and index for detecting NIC partitions. This creates
>> a new environment variable, ID_NET_NAME_PARTITION of the format
>> <PORT>_<PARTITION>
>
> "partitions"? What's that supposed to be? SR-IOV?
>
>> The patch will also decode SMBIOS slot number for NIC, and store in
>> the variable ID_NET_NAME_SMBIOS_SLOT.  Systemd does not have a method
>> for naming ports on a multi-port card plugged into a slot.
>
> Hmm, isn't this stuff the same as exported by the kernel as the
> "index" field, i.e. SMBIOS Type 41? Can you elaborate on the relation
> of that field and the stuff this patch adds?

Sorry, systemd will not parse any smbios code.

If these fields are generally useful, please add them as properties to
the sysfs device, and systemd can possibly read them.

Unrelated to the way we retrieve the information, the functionality
sounds out-of-scope for udev's rather simple netdev naming; and for
now, I see the simplicity rather as a feature than a limitation.

Kay


More information about the systemd-devel mailing list