]> code.ossystems Code Review - meta-freescale.git/commitdiff
udev-extraconf: unify the name of PCIe Ethernet port for DPAA targets
authorZhenhua Luo <zhenhua.luo@freescale.com>
Thu, 27 Jun 2013 09:20:02 +0000 (09:20 +0000)
committerZhenhua Luo <zhenhua.luo@freescale.com>
Fri, 28 Jun 2013 02:49:49 +0000 (10:49 +0800)
In kernel-3.8, PCIe Ethernet port is the last one to be brought up,
so the name of PCIe Ethernet card is ethN(N is variant) instead of eth0.
The udev rules update is to unify the PCIe Ethernet port of DPAA targets:
    Ethernet card in PCIe slot0: eth0
    Ethernet card in PCIe slot1: eth1
    Ethernet card in PCIe slot2: eth2
    Ethernet card in PCIe slot3: eth3

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
Change-Id: Ia2a9cc3eb5b6c49e911bb6cc067a2d2d3cfaec0a

meta-fsl-ppc/recipes-core/udev/udev-extraconf/71-fsl-dpaa-persistent-networking.rules
meta-fsl-ppc/recipes-core/udev/udev-extraconf/72-fsl-dpaa-persistent-networking.rules

index 356c172fab9273eee67baeb3c37ca931c6889a27..50bc44628356d1c12cf52dd69ec724fa3cc28f79 100644 (file)
@@ -15,3 +15,9 @@ SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe5f0000", NAME="fm2-
 # P1023 has its Fman @ different offsets
 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
+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"
index 34e72a397c060dcf4053269b318292df2157ebdc..cfc2853e3bfd60d2c11ad9e144d607a7ec5ab5f8 100644 (file)
@@ -19,3 +19,9 @@ SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe5ec000", NAME="fm2-
 SUBSYSTEM=="net", DRIVERS=="fsl_dpa", ATTR{device_addr}=="ffe5ee000", NAME="fm2-mac8"
 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
+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"