net: hns: add support of pause frame ctrl for HNS V2
authorLisheng <lisheng011@huawei.com>
Thu, 31 Mar 2016 13:00:09 +0000 (21:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Apr 2016 00:17:14 +0000 (20:17 -0400)
commit5ada37b53ea2b310df143b2c7d6c48fbf14d5cb8
tree9cca070b2da71b1a548a3bc612e9e52f42b5eaa1
parent7822ce73e659ab0c5dd8289f077efbcc4cd03164
net: hns: add support of pause frame ctrl for HNS V2

The patch adds support of pause ctrl for HNS V2, and this feature is lost
by HNS V1:
       1) service ports can disable rx pause frame,
       2) debug ports can open tx/rx pause frame.

And this patch updates the REGs about the pause ctrl when updated
status function called by upper layer routine.

Signed-off-by: Lisheng <lisheng011@huawei.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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_main.c
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.h
drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c
drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h