Patchwork [meta-fsl-ppc,10/26] udev-extraconf: fix the name conflict of macless and PCIe Ethernet port in slot3

login
register
mail settings
Submitter Ting Liu
Date June 27, 2013, 9:24 a.m.
Message ID <1372325114-4423-1-git-send-email-b28495@freescale.com>
Download mbox | patch
Permalink /patch/52417/
State Accepted
Delegated to: Zhenhua Luo
Headers show

Comments

Ting Liu - June 27, 2013, 9:24 a.m.
From: Zhenhua Luo <zhenhua.luo@freescale.com>

Currently both macless0 port and PCIe Ethernet port in slot3 use "eth2",
update udev rules to rename macless0 to eth4.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 .../71-fsl-dpaa-persistent-networking.rules        |    5 ++++-
 .../72-fsl-dpaa-persistent-networking.rules        |    5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

Patch

diff --git a/recipes-core/udev/udev-extraconf/71-fsl-dpaa-persistent-networking.rules b/recipes-core/udev/udev-extraconf/71-fsl-dpaa-persistent-networking.rules
index 50bc446..9bd6785 100644
--- a/recipes-core/udev/udev-extraconf/71-fsl-dpaa-persistent-networking.rules
+++ b/recipes-core/udev/udev-extraconf/71-fsl-dpaa-persistent-networking.rules
@@ -16,8 +16,11 @@  SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe5f0000", NAME="fm2-
 SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ff7e0000", NAME="fm1-gb0"
 SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ff7e2000", NAME="fm1-gb1"
 
-# Unify the PCIe Etherenet port -maxinum PCIe slots is 4
+# Unify the PCIe Etherenet port, maxinum PCIe slots is 4
 SUBSYSTEM=="net", KERNEL=="eth*", KERNELS=="ffe200000.pcie", DRIVERS=="fsl-pci", NAME="eth0"
 SUBSYSTEM=="net", KERNEL=="eth*", KERNELS=="ffe201000.pcie", DRIVERS=="fsl-pci", NAME="eth1"
 SUBSYSTEM=="net", KERNEL=="eth*", KERNELS=="ffe202000.pcie", DRIVERS=="fsl-pci", NAME="eth2"
 SUBSYSTEM=="net", KERNEL=="eth*", KERNELS=="ffe203000.pcie", DRIVERS=="fsl-pci", NAME="eth3"
+
+# Rename macless0 port to "eth4"
+SUBSYSTEM=="net", ATTR{device_type}=="macless0", NAME="eth4"
diff --git a/recipes-core/udev/udev-extraconf/72-fsl-dpaa-persistent-networking.rules b/recipes-core/udev/udev-extraconf/72-fsl-dpaa-persistent-networking.rules
index cfc2853..3529bc4 100644
--- a/recipes-core/udev/udev-extraconf/72-fsl-dpaa-persistent-networking.rules
+++ b/recipes-core/udev/udev-extraconf/72-fsl-dpaa-persistent-networking.rules
@@ -20,8 +20,11 @@  SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe5ee000", NAME="fm2-
 SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe5f0000", NAME="fm2-mac9"
 SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe5f2000", NAME="fm2-mac10"
 
-# Unify the PCIe Etherenet port -maxinum PCIe slots is 4
+# Unify the PCIe Etherenet port, maxinum PCIe slots is 4
 SUBSYSTEM=="net", KERNEL=="eth*", KERNELS=="ffe240000.pcie", DRIVERS=="fsl-pci", NAME="eth0"
 SUBSYSTEM=="net", KERNEL=="eth*", KERNELS=="ffe250000.pcie", DRIVERS=="fsl-pci", NAME="eth1"
 SUBSYSTEM=="net", KERNEL=="eth*", KERNELS=="ffe260000.pcie", DRIVERS=="fsl-pci", NAME="eth2"
 SUBSYSTEM=="net", KERNEL=="eth*", KERNELS=="ffe270000.pcie", DRIVERS=="fsl-pci", NAME="eth3"
+
+# Rename macless0 to "eth4"
+SUBSYSTEM=="net", ATTR{device_type}=="macless0", NAME="eth4"