]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: set xge statistic reg as read only
authorQianqian Xie <xieqianqian@huawei.com>
Tue, 22 Mar 2016 08:06:26 +0000 (16:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Mar 2016 19:45:58 +0000 (15:45 -0400)
commit7aaf1d1317194b94911092219f04de5c10d04927
tree8f4ee826e233ab17c86fa972d81f0bbcb4203112
parentdd3e3d86f63a5af1c0ff164fa4c914500b85c770
net: hns: set xge statistic reg as read only

As the user manual of HNS V2 describs, XGE_DFX_CTRL_CFG.xge_dfx_ctrl_cfg
should be configed as zero if we want xge statistic reg to be read only.
But HNS V1 gets the other meanings. It needs to be identified the process
and then config it rightly.

Signed-off-by: Qianqian Xie <xieqianqian@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/hns_dsaf_main.c