anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone
1ff636
From 127c3f7b5ca3158851dc4a747f664ce43b2a94ee Mon Sep 17 00:00:00 2001
1ff636
From: Tom Gundersen <teg@jklm.no>
1ff636
Date: Wed, 1 Apr 2015 23:34:19 +0200
1ff636
Subject: [PATCH] udev: net_id - improve comments
1ff636
1ff636
The dev_port concept is a bit confusing, expand on the comment a bit.
1ff636
1ff636
Conflicts:
1ff636
	src/udev/udev-builtin-net_id.c
1ff636
---
1ff636
 src/udev/udev-builtin-net_id.c | 4 ++--
1ff636
 1 file changed, 2 insertions(+), 2 deletions(-)
1ff636
1ff636
diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c
c62b8e
index 6a5ada6883..2cc1fd409b 100644
1ff636
--- a/src/udev/udev-builtin-net_id.c
1ff636
+++ b/src/udev/udev-builtin-net_id.c
1ff636
@@ -146,7 +146,7 @@ static int dev_pci_onboard(struct udev_device *dev, struct netnames *names) {
1ff636
         if (idx <= 0)
1ff636
                 return -EINVAL;
1ff636
 
1ff636
-        /* kernel provided multi-device index */
1ff636
+        /* kernel provided port index for multiple ports on a single PCI function */
1ff636
         attr = udev_device_get_sysattr_value(dev, "dev_port");
1ff636
         if (attr)
1ff636
                 dev_port = strtol(attr, NULL, 10);
1ff636
@@ -199,7 +199,7 @@ static int dev_pci_slot(struct udev_device *dev, struct netnames *names) {
1ff636
         if (sscanf(udev_device_get_sysname(names->pcidev), "%x:%x:%x.%u", &domain, &bus, &slot, &func) != 4)
1ff636
                 return -ENOENT;
1ff636
 
1ff636
-        /* kernel provided multi-device index */
1ff636
+        /* kernel provided port index for multiple ports on a single PCI function */
1ff636
         attr = udev_device_get_sysattr_value(dev, "dev_id");
1ff636
         if (attr) {
1ff636
                 dev_id = strtol(attr, NULL, 16);