teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

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

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