]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: add media-type property for hns
authorKejian Yan <yankejian@huawei.com>
Fri, 1 Jul 2016 09:34:12 +0000 (17:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jul 2016 20:56:52 +0000 (16:56 -0400)
commitf1aba764cd9a18b5d32c06d245e66bda2803e0a1
tree270e1b1a1ce2565cb700d2a7ad0030fb7f4a0696
parenteb37e6fa8f646c313194d9a74e6d7c87c8db0eec
net: hns: add media-type property for hns

It is PORT_TP type if the service port is GE mode. It is wrong to
judge the port type by using if it is service port. Adding the media
type to know port type.

Reported-by: Jinchuan Tian <tianjinchuan1@huawei.com>
Signed-off-by: Kejian Yan <yankejian@huawei.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hnae.h
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c