net: hns: Add reset function support for RoCE driver
authoroulijun <oulijun@huawei.com>
Thu, 18 Aug 2016 12:32:52 +0000 (20:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Aug 2016 23:58:33 +0000 (16:58 -0700)
commite018068812e54c407da599513bf8ad2d99fd0eaf
treebb018db88fca35dff805193c83dac495f3276fd8
parenta68d53988bc7f54aa383ecb308e7684c787af67c
net: hns: Add reset function support for RoCE driver

It added reset function for RoCE driver. RoCE is a feature of hns.
In hip06 SoC, in RoCE reset process, it's needed to configure dsaf
channel reset, port and sl map info. Reset function of RoCE is
located in dsaf module, we only call it in RoCE driver when needed.

This patch is used to fix the conflict, please refer to this link:
  https://www.spinics.net/lists/linux-rdma/msg39114.html

Signed-off-by: Wei Hu <xavier.huwei@huawei.com>
Signed-off-by: Nenglong Zhao <zhaonenglong@hisilicon.com>
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Sheng Li <lisheng011@huawei.com>
Reviewed-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
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h
drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c
drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h