linux-stable/drivers/net/ethernet/hisilicon/hns
Yisen.Zhuang\(Zhuangyuzeng\) 406adee9a9 net: hns: add attribute port-idx-in-ae in enet node.
This patch parse port-idx-in-ae in enet node. In NIC mode of DSAF, all 6
PHYs of service DSAF are taken as ethernet ports to the CPU. The
port-idx-in-ae can be 0 to 5. Here is the diagram:
            +-----+---------------+
            |            CPU      |
            +-+-+-+---+-+-+-+-+-+-+
              |    |   | | | | | |
           debug debug   service
           port  port     port
           (0)   (0)     (0-5)

In Switch mode of DSAF, all 6 PHYs of service DSAF are taken as physical
ports connect to a LAN Switch while the CPU side assume itself have one
single NIC connect to this switch. In this case, the port-idx-in-ae will
be 0 only.
            +-----+-----+------+------+
            |                CPU      |
            +-+-+-+-+-+-+-+-+-+-+-+-+-+
              |    |     service| port(0)
            debug debug  +------------+
            port  port   |   switch   |
            (0)   (0)    +-+-+-+-+-+-++
                          | | | | | |
                         external port

when port-idx-in-ae is not exists, old attribute port-id will be used
(only for compatible purpose, not recommended to use port-id in new code).

Signed-off-by: Daode Huang <huangdaode@hisilicon.com>
Signed-off-by: Yisen Zhuang <yisen.zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-04-26 01:09:17 -04:00
..
hnae.c net: hns: enet specifies a reference to dsaf 2016-01-21 12:02:31 -08:00
hnae.h net: hns: set-coalesce-usecs returns errno by dsaf.ko 2016-03-28 11:39:16 -04:00
hns_ae_adapt.c net: hns: add attribute port-idx-in-ae in enet node. 2016-04-26 01:09:17 -04:00
hns_dsaf_gmac.c net: hns: optimizate fmt of snprintf() 2016-03-24 14:33:06 -04:00
hns_dsaf_gmac.h
hns_dsaf_mac.c net: hns: add a new dsaf mode for debug port 2016-04-26 01:09:17 -04:00
hns_dsaf_mac.h net: hns: adds limitation for debug port mtu 2016-03-22 15:45:58 -04:00
hns_dsaf_main.c net: hns: add a new dsaf mode for debug port 2016-04-26 01:09:17 -04:00
hns_dsaf_main.h net: hns: add a new dsaf mode for debug port 2016-04-26 01:09:17 -04:00
hns_dsaf_misc.c net: hns: add a new dsaf mode for debug port 2016-04-26 01:09:17 -04:00
hns_dsaf_misc.h
hns_dsaf_ppe.c net: hns: add a new dsaf mode for debug port 2016-04-26 01:09:17 -04:00
hns_dsaf_ppe.h net: hns: fix the bug about mtu setting 2016-03-22 15:45:58 -04:00
hns_dsaf_rcb.c net: hns: set debug port irq index to 0 2016-04-26 01:09:17 -04:00
hns_dsaf_rcb.h net: hns: add a new dsaf mode for debug port 2016-04-26 01:09:17 -04:00
hns_dsaf_reg.h net: hns: add attribute port-idx-in-ae in enet node. 2016-04-26 01:09:17 -04:00
hns_dsaf_xgmac.c asm-generic: remove old nonatomic-io wrapper files 2016-03-01 22:25:17 +01:00
hns_dsaf_xgmac.h
hns_enet.c net: hns: add attribute port-idx-in-ae in enet node. 2016-04-26 01:09:17 -04:00
hns_enet.h net: hns: add attribute port-idx-in-ae in enet node. 2016-04-26 01:09:17 -04:00
hns_ethtool.c net: hns: set-coalesce-usecs returns errno by dsaf.ko 2016-03-28 11:39:16 -04:00
Makefile net: add Hisilicon Network Subsystem basic ethernet support 2015-09-20 21:42:58 -07:00