[PATCH net 0/2] net: hns: fixed the pause ctl bug

2016-03-03 Thread Lisheng
The change is for supporting pause in V2 chip: service ports can close pause-rx; debug ports can open pause-rx/tx. Lisheng (2): net: hns: fixed the pause ctl bug net: hns: update pause regs to dump function drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 20

[PATCH net 2/2] net: hns: update pause regs to dump function

2016-03-03 Thread Lisheng
Add two new regs to dump and stats function: DSAF_PAUSE_CFG_REG DSAFV2_INODE_FINAL_IN_PAUSE_NUM_0_REG. Signed-off-by: Lisheng --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a

[PATCH net 1/2] net: hns: fixed the pause ctl bug

2016-03-03 Thread Lisheng
The patch is support pause in V2 chip, that are forbidden in V1 chip: 1) service ports can disable rx pause frame. 2) debug ports can open tx/rx pause frame. Signed-off-by: Lisheng --- drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 20 +++-- drivers/net/ethernet

[PATCH net 0/3] net: hns: fixed the setting overtime bug

2016-03-03 Thread Lisheng
In V2 chip,we can set overtime reg is for each port, that is differents from for all port in V1. This patch will modify some functions: set/get the reg. Lisheng (3): net: hns: fixed the setting overtime bug net: hns: modified dump overtime regs net: hns: fixed set-coalesce-usecs return void

[PATCH net 2/3] net: hns: modified dump overtime regs

2016-03-03 Thread Lisheng
In V2 chip, the timeover reg_addr is different from V1; And there are 6 regs for service ports,that is different from V1. In dump regs function, should also fix this change. Signed-off-by: Lisheng --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c | 16 1 file changed, 12

[PATCH net 3/3] net: hns: fixed set-coalesce-usecs return void bug

2016-03-03 Thread Lisheng
Seting coalesce time maybe return err, and ethtool should process the err. Signed-off-by: Lisheng --- drivers/net/ethernet/hisilicon/hns/hnae.h | 2 +- drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 6 +++--- drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 6 -- 3 files

[PATCH net 1/3] net: hns: fixed the setting overtime bug

2016-03-03 Thread Lisheng
In V2 chip,we can set overtime reg is for each port, that is differents from for all port in V1. This patch will modify some functions: set/get the reg. Signed-off-by: Lisheng --- drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 60 +++- drivers/net/ethernet/hisilicon/hns/hns_dsaf_rcb.c