[systemd-devel] [PATCH v2] Use dev_port for the ID of a network device.
Kay Sievers
kay at vrfy.org
Tue Jul 1 07:55:46 PDT 2014
On Tue, Jul 1, 2014 at 4:34 PM, Lennart Poettering
<lennart at poettering.net> wrote:
> On Tue, 01.07.14 17:26, Samuli Suominen (ssuominen at gentoo.org) wrote:
>
>>
>>
>> On 01/07/14 16:20, Kay Sievers wrote:
>> > On Tue, Jul 1, 2014 at 3:11 PM, Thadeu Lima de Souza Cascardo
>> > <cascardo at linux.vnet.ibm.com> wrote:
>> >> For network devices on the same PCI function, dev_id should not be used,
>> >> since its purpose is for IPv6 support on interfaces with the same MAC
>> >> address.
>> >>
>> >> The new dev_port sysfs attribute should be used instead of dev_id.
>> > Applied.
>> >
>>
>> I'm not complaining, merely verifying, does this mean that udev that
>> will be shipped
>> with systemd-215 will require at least Linux 3.15?
>
> Nope. The old logic was broken. The new logic works correctly, but does
> so only on new kernels. If you run it on old kernels, it will gracefully
> ignore the id attribute.
>
> So, no, it doesn't require the new kernels. It will just start working
> correctly on new kernels. And on old kernels you will not get the id
> appended to the name, that's all.
And it is very uncommon to have multiple ports on a single pci device.
Only very few enterprise-like things do that, and some did not even
use dev_id or used it wrong.
Kay
More information about the systemd-devel
mailing list