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
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
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
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
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
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
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
From: Qianqian Xie
As the user manual 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 the
older hisilicon arm64 process gets the other meanings. So it seems that
we need to identify the process and then config it rightly.
S
From: Qianqian Xie
The variable head in hns_nic_tx_fini_pro has read a value,
but the value is not used. The patch will solve it.
Signed-off-by: Qianqian Xie
---
drivers/net/ethernet/hisilicon/hns/hns_enet.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/eth
From: Qianqian Xie
The return values in the first two functions mdiobus_write()
are ignored. The patch will fix it.
Signed-off-by: Qianqian Xie
---
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/hisi
From: Qianqian Xie
There is not a format string in function snprinf().
This patch will fix it.
Signed-off-by: Qianqian Xie
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_gm
From: Qianqian Xie
The cycle index should be varied while the variable j is a fixed value.
The patch will fix this bug.
Signed-off-by: Qianqian Xie
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/ne
From: Qianqian Xie
There is some inappropriate application of values in hns driver,
such as cycle index, returned value, format string, useless citation.
This patch set will solve it.
Qianqian Xie (4):
net: hns: fix a bug for cycle index
net: hns: bug fix for format string
net: hns: bug f
From: Qianqian Xie
There is not a format string in function snprinf().
This patch will fix it.
Signed-off-by: Qianqian Xie
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_gm
From: Qianqian Xie
The variable head in hns_nic_tx_fini_pro has read a value,
but the value is not used. The patch will solve it.
The bug-fixed comment is for the function pointer
ring_data->fini_process,that is called in function
hns_nic_common_poll.The comment should not be there, so remove it.
From: Qianqian Xie
There is some inappropriate application of values in hns driver,
such as cycle index, returned value, format string, useless citation.
This patch set will solve it.
---
change log:
PATCH v2:
- This patchset fixes the comments provided by Andy Shevchenko
PATCH v1:
- first s
From: Qianqian Xie
The return values in the first two functions mdiobus_write()
are ignored. The patch will fix it.
Signed-off-by: Qianqian Xie
---
drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/hisi
From: Qianqian Xie
The cycle index should be varied while the variable j is a fixed value.
The patch will fix this bug.
Signed-off-by: Qianqian Xie
---
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/ne
18 matches
Mail list logo