RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 625530 - set up a reasonable naming convention for SR-IOV virtual functions
Summary: set up a reasonable naming convention for SR-IOV virtual functions
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: udev
Version: 6.1
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Harald Hoyer
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks: 615039 682015
TreeView+ depends on / blocked
 
Reported: 2010-08-19 18:01 UTC by Dan Kenigsberg
Modified: 2011-07-25 15:13 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-13 09:11:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dan Kenigsberg 2010-08-19 18:01:56 UTC
SR-IOV is a new standard allowing a single NIC with two (or whatever)
physical jacks expose multiple virtual NICs to Linux. This is handled by
the igb kernel module.

Currently, when it is enabled, multiple eth<x> device are created, in
ascending order, two of them relating to the physical connections, and
the others - to the virtual functions. (And at least once, with an
overlap that lead to eth4 and eth4_rename to be defined.)

It is very confusing for the user to understand which virtual nic is
connected to which physical one. This information is as important as the relation between vlan device (eth0.100) and its parent nic (eth0).

sysfs has this information

# ls /sys/class/net/eth10/device/physfn/net
eth4_rename

but I think that it should be apparent from the device
name, such as eth4@5 for virtual function 5 connected to physical nic 4.

Comment 1 Harald Hoyer 2010-10-13 08:22:22 UTC
(In reply to comment #0)
> the others - to the virtual functions. (And at least once, with an
> overlap that lead to eth4 and eth4_rename to be defined.)
> 
> sysfs has this information
> 
> # ls /sys/class/net/eth10/device/physfn/net
> eth4_rename

Doh! I thought, I had solved the "_rename" problem!

"eth4@5" sounds like a perfect solution to me!

Comment 2 Harald Hoyer 2010-10-13 08:29:33 UTC
although, "eth4" might be renamed to e.g. "eth10". Then "eth4@5" leads to incorrect assumptions.

Comment 4 Harald Hoyer 2010-12-01 12:15:38 UTC
Is this still a problem? Bug 614786 was addressing this in a way.

If you still encounter the "_rename" problem, move all configured interfaces out of the "eth*" namespace and name them e.g. "net[0-9]" in the ifcfg-* files.
Then remove /etc/udev/rules.d/70-persistent-net.rules.

Another solution could be "biosdevname" (bug 653901).

Comment 6 Dan Kenigsberg 2011-03-12 23:22:48 UTC
I'm afraid that comment 2 convinced me that my suggested naming scheme was not robust enough. Let's hope biosdevname is not too brutal for that purpose.

Shahar, have you recently seen "_rename" in nic names?

Comment 7 Shahar Havivi 2011-03-13 08:58:42 UTC
(In reply to comment #6)
> I'm afraid that comment 2 convinced me that my suggested naming scheme was not
> robust enough. Let's hope biosdevname is not too brutal for that purpose.
> 
> Shahar, have you recently seen "_rename" in nic names?
No, I never did


Note You need to log in before you can comment on or make changes to this bug.