Return-Path: Received: from db8outboundpool.messaging.microsoft.com (mail-db8lp0186.outbound.messaging.microsoft.com [213.199.154.186]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 11F30E01574 for ; Thu, 27 Jun 2013 02:20:30 -0700 (PDT) Received: from mail172-db8-R.bigfish.com (10.174.8.251) by DB8EHSOBE033.bigfish.com (10.174.4.96) with Microsoft SMTP Server id 14.1.225.23; Thu, 27 Jun 2013 09:20:29 +0000 Received: from mail172-db8 (localhost [127.0.0.1]) by mail172-db8-R.bigfish.com (Postfix) with ESMTP id 0D676A80383 for ; Thu, 27 Jun 2013 09:20:29 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 0 X-BigFish: VS0(zzzz1f42h1ee6h1de0h1fdah1202h1e76h1d1ah1d2ah1fc6hzz8275bhz2dh2a8h668h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1d0ch1d2eh1d3fh1dfeh1dffh1e23h1155h) Received: from mail172-db8 (localhost.localdomain [127.0.0.1]) by mail172-db8 (MessageSwitch) id 1372324827612434_9419; Thu, 27 Jun 2013 09:20:27 +0000 (UTC) Received: from DB8EHSMHS019.bigfish.com (unknown [10.174.8.243]) by mail172-db8.bigfish.com (Postfix) with ESMTP id 89100100049 for ; Thu, 27 Jun 2013 09:20:27 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by DB8EHSMHS019.bigfish.com (10.174.4.29) with Microsoft SMTP Server (TLS) id 14.16.227.3; Thu, 27 Jun 2013 09:20:27 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-005.039d.mgd.msft.net (10.84.1.17) with Microsoft SMTP Server (TLS) id 14.2.328.11; Thu, 27 Jun 2013 09:20:25 +0000 Received: from b28495.ap.freescale.net ([10.192.208.202]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id r5R9K2OQ013488; Thu, 27 Jun 2013 02:20:23 -0700 From: To: Date: Thu, 27 Jun 2013 17:20:02 +0800 Message-ID: <1372324802-4306-10-git-send-email-b28495@freescale.com> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1372324802-4306-1-git-send-email-b28495@freescale.com> References: <1372324802-4306-1-git-send-email-b28495@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% Subject: [meta-fsl-ppc][PATCH 09/26] udev-extraconf: unify the name of PCIe Ethernet port for DPAA targets X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jun 2013 09:20:30 -0000 Content-Type: text/plain From: Zhenhua Luo 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 Change-Id: Ia2a9cc3eb5b6c49e911bb6cc067a2d2d3cfaec0a --- .../71-fsl-dpaa-persistent-networking.rules | 6 ++++++ .../72-fsl-dpaa-persistent-networking.rules | 6 ++++++ 2 files changed, 12 insertions(+), 0 deletions(-) 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 356c172..50bc446 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 @@ -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" 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 34e72a3..cfc2853 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 @@ -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" -- 1.7.3.4