teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0137-udev-net_id-improve-comments.patch

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