[systemd-commits] src/udev

Tom Gundersen tomegun at kemper.freedesktop.org
Wed Apr 1 14:35:27 PDT 2015


 src/udev/udev-builtin-net_id.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 309b578d313b363974b99e48f0e378111cc1fa91
Author: Tom Gundersen <teg at jklm.no>
Date:   Wed Apr 1 23:34:19 2015 +0200

    udev: net_id - improve comments
    
    The dev_port concept is a bit confusing, expand on the comment a bit.

diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c
index 0f5b11d..78aef20 100644
--- a/src/udev/udev-builtin-net_id.c
+++ b/src/udev/udev-builtin-net_id.c
@@ -146,7 +146,7 @@ static int dev_pci_onboard(struct udev_device *dev, struct netnames *names) {
         if (idx <= 0)
                 return -EINVAL;
 
-        /* kernel provided multi-device index */
+        /* kernel provided port index for multiple ports on a single PCI function */
         attr = udev_device_get_sysattr_value(dev, "dev_port");
         if (attr)
                 dev_port = strtol(attr, NULL, 10);
@@ -199,7 +199,7 @@ static int dev_pci_slot(struct udev_device *dev, struct netnames *names) {
         if (sscanf(udev_device_get_sysname(names->pcidev), "%x:%x:%x.%u", &domain, &bus, &slot, &func) != 4)
                 return -ENOENT;
 
-        /* kernel provided multi-device index */
+        /* kernel provided port index for multiple ports on a single PCI function */
         attr = udev_device_get_sysattr_value(dev, "dev_port");
         if (attr)
                 dev_port = strtol(attr, NULL, 10);



More information about the systemd-commits mailing list