[SR-IOV]: Use static MAC addresses with udev rules for renaming VF interfaces (Mellanox CX4) (Documentation)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Ubuntu-power-systems project |
Invalid
|
Low
|
Breno Leitão | ||
ubuntu-docs (Ubuntu) |
Invalid
|
Low
|
Ubuntu on IBM Power Systems Bug Triage |
Bug Description
Problem Description
=============
The udev rules for renaming the SR-IOV Mellanox CX4 VF interface are not getting
implemented. After setting the udev rules, and unbind/bind the drivers for the VF's,
the interface name still doesn't change. Same issue isn't noticed for the PF of the
SR-IOV adapter.
Resolution
=======
Use static MAC addresses for renaming SRIOV Mellanox CX4 VF interfaces with udev rules.
Documentation
==========
With Mellanox CX4 SR-IOV when the VFs are created, each of them will get a random MAC address.
To be able to use the '70-persistent-
to set static MAC address to the VF.
This is an example
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}
First execute below command
echo 02:a9:bb:cc:dd:00 > /sys/class/
and then
do the unbind/bind
echo 0004:01:00.2 > /sys/bus/
echo 0004:01:00.2 > /sys/bus/
then one can see
enP4p1s0vf: flags=4098<
ether 02:a9:bb:cc:dd:00 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
tags: | added: architecture-ppc64le bugnameltc-153427 severity-low targetmilestone-inin1710 |
Changed in ubuntu: | |
assignee: | nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) |
affects: | ubuntu → ubuntu-docs (Ubuntu) |
tags: | added: ubuntu-17.04 |
Changed in ubuntu-docs (Ubuntu): | |
importance: | Undecided → Low |
Changed in ubuntu-power-systems: | |
importance: | Undecided → Low |
Changed in ubuntu-release-notes: | |
assignee: | nobody → Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) |
Changed in ubuntu-docs (Ubuntu): | |
status: | Incomplete → Invalid |
Changed in ubuntu-release-notes: | |
assignee: | Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage) → Canonical Foundations Team (canonical-foundations) |
tags: | added: triage-g |
tags: |
added: triage-a removed: triage-g |
Changed in ubuntu-power-systems: | |
status: | New → Incomplete |
tags: |
added: triage-g removed: triage-a |
no longer affects: | ubuntu-release-notes |
------- Comment From <email address hidden> 2017-05-09 14:14 EDT-------
Hello Canonical,
Please include above documentation text for using static MAC addresses
for renaming SR-IOV Mellanox CX4 VF interfaces with udev rules.