[PATCH net-next 2/2] net: gve: remove duplicated allowed

2021-03-25 Thread Daode Huang
fix the WARNING of Possible repeated word: 'allowed' Signed-off-by: Daode Huang --- drivers/net/ethernet/google/gve/gve_ethtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/google/gve/gve_ethtool.c b/drivers/net/ethernet/google/gve/gve_ethtool.c

[PATCH net-next 0/2] net: gve: make cleanup for gve

2021-03-25 Thread Daode Huang
This patch set replace deprecated strlcpy by strscpy, remove repeat word "allowed" in gve driver. for more details, please refer to each patch. Daode Huang (2): net: gve: convert strlcpy to strscpy net: gve: remove duplicated allowed drivers/net/ethernet/google/gve/gve_eth

[PATCH net-next 1/2] net: gve: convert strlcpy to strscpy

2021-03-25 Thread Daode Huang
Usage of strlcpy in linux kernel has been recently deprecated[1], so convert gve driver to strscpy [1] https://lore.kernel.org/lkml/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL =v6a6g1ouzcprm...@mail.gmail.com/ Signed-off-by: Daode Huang --- drivers/net/ethernet/google/gve/gve_ethtool.c | 6 +++--- 1

[PATCH net-next 4/4] net: hinic: convert strlcpy to strscpy

2021-03-19 Thread Daode Huang
Usage of strlcpy in linux kernel has been recently deprecated[1], so convert hinic driver to strscpy [1] https://lore.kernel.org/lkml/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL =v6a6g1ouzcprm...@mail.gmail.com/ Signed-off-by: Daode Huang --- drivers/net/ethernet/huawei/hinic/hinic_ethtool.c | 4

[PATCH net-next 2/4] net: hinic: add a blank line after declarations

2021-03-19 Thread Daode Huang
There should be a blank line after declarations, so just add it. Signed-off-by: Daode Huang --- drivers/net/ethernet/huawei/hinic/hinic_tx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/huawei/hinic/hinic_tx.c b/drivers/net/ethernet/huawei/hinic/hinic_tx.c index

[PATCH net-next 3/4] net: hinic: remove the repeat word "the" in comment.

2021-03-19 Thread Daode Huang
There is a duplicate "the" in the comment, so delete it. Signed-off-by: Daode Huang --- drivers/net/ethernet/huawei/hinic/hinic_hw_if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/huawei/hinic/hinic_hw_if.c b/drivers/net/ethernet/hu

[PATCH net-next 1/4] net: hinic: Remove unnecessary 'out of memory' message

2021-03-19 Thread Daode Huang
This patch removes unnecessary out of memory message in hinic driver, fixes the following checkpatch.pl warning: "WARNING: Possible unnecessary 'out of memory' message" Signed-off-by: Daode Huang --- drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c | 8 ++-- drivers/net/ether

[PATCH net-next 0/4] net: hinic; make some cleanup for hinic

2021-03-19 Thread Daode Huang
This set try to remove the unnecessary output message, add a blank line, remove the dupliate word and change the deprecated strlcp functions in hinic driver, for details, please refer to each patch. Daode Huang (4): net: hinic: Remove unnecessary 'out of memory' message net: hinic: add

[PATCH] media: rc/ite-cir: replace spin_lock_irqsave by spin_lock in hard IRQ

2021-02-05 Thread Daode Huang
It is redundant to do irqsave and irqrestore in hardIRQ context. Signed-off-by: Daode Huang --- drivers/media/rc/ite-cir.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/media/rc/ite-cir.c b/drivers/media/rc/ite-cir.c index 0c62295..4a51ca80 100644

[PATCH v2] use devm_platform_ioremap_resource() for irqchip drivers

2019-10-17 Thread Daode Huang
From: Daode Huang Use the new helper that wraps the calls to platform_get_resource() and devm_ioremap_resource() together Signed-off-by: Daode Huang --- changes in v2 - address the commnents from Marc --- drivers/irqchip/irq-mvebu-icu.c | 4 +--- drivers/irqchip/irq-mvebu-pic.c | 4

[PATCH] irqchip: remove redundant semicolon after while

2019-10-17 Thread Daode Huang
semicolon Signed-off-by: Daode Huang --- drivers/irqchip/irq-gic-v3.c | 4 ++-- drivers/irqchip/irq-zevio.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index 422664a..58518e5 100644 --- a/drivers/irqchip/ir

[PATCH] use devm_platform_ioremap_resource() for irqchip drivers

2019-10-17 Thread Daode Huang
From: Daode Huang Use the new helper that wraps the calls to platform_get_resource() and devm_ioremap_resource() together Signed-off-by: Daode Huang --- drivers/irqchip/irq-mvebu-icu.c | 3 +-- drivers/irqchip/irq-mvebu-pic.c | 3 +-- drivers/irqchip/irq-stm32-exti.c | 3 +-- drivers

Re: [PATCH v2 net-next 1/9] MAINTAINERS: add maintainers for hns driver

2016-06-30 Thread Daode Huang
On 2016/6/30 18:48, Joe Perches wrote: On Thu, 2016-06-30 at 15:25 +0800, Yisen Zhuang wrote: From: Daode Huang <huangda...@hisilicon.com> This patch adds maintainers for hisilicon network subsystem driver [] diff --git a/MAINTAINERS b/MAINTAINERS [] @@ -5421,6 +5421,1

Re: [PATCH v2 net-next 1/9] MAINTAINERS: add maintainers for hns driver

2016-06-30 Thread Daode Huang
On 2016/6/30 18:48, Joe Perches wrote: On Thu, 2016-06-30 at 15:25 +0800, Yisen Zhuang wrote: From: Daode Huang This patch adds maintainers for hisilicon network subsystem driver [] diff --git a/MAINTAINERS b/MAINTAINERS [] @@ -5421,6 +5421,15 @@ F: include/uapi/linux/if_hippi.h

Re: [PATCH net-next 6/9] net: hns: normalize two different loop

2016-06-27 Thread Daode Huang
On 2016/6/27 20:13, Andy Shevchenko wrote: On Mon, 2016-06-27 at 05:08 -0700, Joe Perches wrote: On Mon, 2016-06-27 at 15:00 +0300, Andy Shevchenko wrote: On Mon, 2016-06-27 at 04:49 -0700, Joe Perches wrote: On Mon, 2016-06-27 at 17:54 +0800, Yisen Zhuang wrote: From: Daode Huang <huan

Re: [PATCH net-next 6/9] net: hns: normalize two different loop

2016-06-27 Thread Daode Huang
On 2016/6/27 20:13, Andy Shevchenko wrote: On Mon, 2016-06-27 at 05:08 -0700, Joe Perches wrote: On Mon, 2016-06-27 at 15:00 +0300, Andy Shevchenko wrote: On Mon, 2016-06-27 at 04:49 -0700, Joe Perches wrote: On Mon, 2016-06-27 at 17:54 +0800, Yisen Zhuang wrote: From: Daode Huang

Re: [PATCH V2 net 0/6] net: hns: hns driver updates

2016-03-15 Thread Daode Huang
wrote: From: Daode Huang <huangda...@hisilicon.com> Date: Tue, 15 Mar 2016 09:56:02 +0800 Could you please help me to review this patch set? I am not reviewing anything until you guys sort out your submission scheme, and resend these fresh using that central maintainer. I am also not th

Re: [PATCH V2 net 0/6] net: hns: hns driver updates

2016-03-15 Thread Daode Huang
wrote: From: Daode Huang Date: Tue, 15 Mar 2016 09:56:02 +0800 Could you please help me to review this patch set? I am not reviewing anything until you guys sort out your submission scheme, and resend these fresh using that central maintainer. I am also not the only person in the world who

Re: [PATCH V2 net 0/6] net: hns: hns driver updates

2016-03-14 Thread Daode Huang
Hi Dave, Could you please help me to review this patch set? I am so sorry to send the patches in parallel to you, which increases you workload, So next time we will pay more attention to it, and learn more about kernel patch submitting. Thanks. MBR, Daode On 2016/3/11 17:10, Daode Huang

Re: [PATCH V2 net 0/6] net: hns: hns driver updates

2016-03-14 Thread Daode Huang
Hi Dave, Could you please help me to review this patch set? I am so sorry to send the patches in parallel to you, which increases you workload, So next time we will pay more attention to it, and learn more about kernel patch submitting. Thanks. MBR, Daode On 2016/3/11 17:10, Daode Huang

Re: [PATCH net 3/6] net: hns: fixed portid bug in sending manage pkt

2016-03-13 Thread Daode Huang
On 2016/3/11 21:29, Sergei Shtylyov wrote: Hello. On 3/11/2016 4:53 AM, Daode Huang wrote: In V2 chip, when sending mamagement packets, the driver should config the port id to BD descs. Signed-off-by: Daode Huang <huangda...@hisilicon.com> Signed-off-by: Lisheng <lisheng...@h

Re: [PATCH net 3/6] net: hns: fixed portid bug in sending manage pkt

2016-03-13 Thread Daode Huang
On 2016/3/11 21:29, Sergei Shtylyov wrote: Hello. On 3/11/2016 4:53 AM, Daode Huang wrote: In V2 chip, when sending mamagement packets, the driver should config the port id to BD descs. Signed-off-by: Daode Huang Signed-off-by: Lisheng --- drivers/net/ethernet/hisilicon/hns/hnae.h

[PATCH V2 net 2/6] net: hns: fixes the hw interrupt bug in using napi

2016-03-11 Thread Daode Huang
In V1 chip, common_poll should check and clean fbd pkts, because it can not pend irq to clean them if there is no new pkt comes in. But V2 chip hw fixes this bug, and will pend irq itself to do this. So, for V2 chip, we set ring_data->fini_process to NULL. Signed-off-by: Daode Huang <h

[PATCH V2 net 2/6] net: hns: fixes the hw interrupt bug in using napi

2016-03-11 Thread Daode Huang
In V1 chip, common_poll should check and clean fbd pkts, because it can not pend irq to clean them if there is no new pkt comes in. But V2 chip hw fixes this bug, and will pend irq itself to do this. So, for V2 chip, we set ring_data->fini_process to NULL. Signed-off-by: Daode Huang Signed-

[PATCH V2 net 1/6] net: hns: bug fix about the overflow of mss

2016-03-11 Thread Daode Huang
When set MTU to the minimum value 68, there are increasing number of error packets occur, which is caused by the overflowed value of mss. This patch fix the bug. Signed-off-by: Daode Huang <huangda...@hisilicon.com> --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 17 -

[PATCH V2 net 1/6] net: hns: bug fix about the overflow of mss

2016-03-11 Thread Daode Huang
When set MTU to the minimum value 68, there are increasing number of error packets occur, which is caused by the overflowed value of mss. This patch fix the bug. Signed-off-by: Daode Huang --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 17 - 1 file changed, 8 insertions

[PATCH V2 net 0/6] net: hns: hns driver updates

2016-03-11 Thread Daode Huang
Hi Dave, This patch series are hisilicon network driver bug fix. please merge them to the net repo. Thanks Daode Huang --- changlog v2: some minor change according to MBR Sergei <sergei.shtyl...@cogentembedded.com> in [patch 3/6] [patch 4/6]. v1: initial version. Daode Hu

[PATCH V2 net 0/6] net: hns: hns driver updates

2016-03-11 Thread Daode Huang
Hi Dave, This patch series are hisilicon network driver bug fix. please merge them to the net repo. Thanks Daode Huang --- changlog v2: some minor change according to MBR Sergei in [patch 3/6] [patch 4/6]. v1: initial version. Daode Huang (6): net: hns: bug fix about the overflow

[PATCH V2 net 6/6] net: hns: bug fix of getting hilink status

2016-03-11 Thread Daode Huang
fixes the bug. Signed-off-by: Daode Huang <huangda...@hisilicon.com> Signed-off-by: Sheng Li <lisheng...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c | 41 -- drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h | 2 ++ 2 files changed, 24 inser

[PATCH V2 net 5/6] net: hns: fixed service-ges setting MAC-addr bug

2016-03-11 Thread Daode Huang
from: Sheng Li <lisheng...@huawei.com> Service gmacs can not set mac add, this patch will fix the bug. Signed-off-by: Daode Huang <huangda...@hisilicon.com> Signed-off-by: Sheng Li <lisheng...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 19 +

[PATCH V2 net 3/6] net: hns: fixed portid bug in sending manage pkt

2016-03-11 Thread Daode Huang
In V2 chip, when sending mamagement packets, the driver should config the port id to BD descs. Signed-off-by: Daode Huang <huangda...@hisilicon.com> Signed-off-by: Sheng Li <lisheng...@huawei.com> --- v2: add space after /* and before */. --- drivers/net/ethernet/hisilicon/hns/hnae.h

[PATCH V2 net 6/6] net: hns: bug fix of getting hilink status

2016-03-11 Thread Daode Huang
fixes the bug. Signed-off-by: Daode Huang Signed-off-by: Sheng Li --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c | 41 -- drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h | 2 ++ 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/drivers/net/ethernet

[PATCH V2 net 5/6] net: hns: fixed service-ges setting MAC-addr bug

2016-03-11 Thread Daode Huang
from: Sheng Li Service gmacs can not set mac add, this patch will fix the bug. Signed-off-by: Daode Huang Signed-off-by: Sheng Li --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/net

[PATCH V2 net 3/6] net: hns: fixed portid bug in sending manage pkt

2016-03-11 Thread Daode Huang
In V2 chip, when sending mamagement packets, the driver should config the port id to BD descs. Signed-off-by: Daode Huang Signed-off-by: Sheng Li --- v2: add space after /* and before */. --- drivers/net/ethernet/hisilicon/hns/hnae.h | 3 +++ drivers/net/ethernet/hisilicon/hns

[PATCH V2 net 4/6] net: hns: adds uc match for debug port

2016-03-11 Thread Daode Huang
This patch adds uc match for debug port by: 1)Enables uc match of debug port when initializing gmac 2)Enables uc match of mac address register2 Signed-off-by: Daode Huang <huangda...@hisilicon.com> Signed-off-by: Peng Li <lipeng...@huawei.com> --- changlog: v2: fix the SoB name an

[PATCH V2 net 4/6] net: hns: adds uc match for debug port

2016-03-11 Thread Daode Huang
This patch adds uc match for debug port by: 1)Enables uc match of debug port when initializing gmac 2)Enables uc match of mac address register2 Signed-off-by: Daode Huang Signed-off-by: Peng Li --- changlog: v2: fix the SoB name and code sytle according to Sergei . --- drivers/net/ethernet

Re: [PATCH net 4/6] net: hns: adds uc match for debug port

2016-03-10 Thread Daode Huang
On 2016/3/4 21:39, Sergei Shtylyov wrote: On 3/4/2016 4:09 AM, Daode Huang wrote: This patch adds uc match for debug port by: 1)Enables uc match of debug port when initializing gmac 2)Enables uc match of mac address register2 Signed-off-by: Daode Huang <huangda...@hisilicon.com> Sign

Re: [PATCH net 4/6] net: hns: adds uc match for debug port

2016-03-10 Thread Daode Huang
On 2016/3/4 21:39, Sergei Shtylyov wrote: On 3/4/2016 4:09 AM, Daode Huang wrote: This patch adds uc match for debug port by: 1)Enables uc match of debug port when initializing gmac 2)Enables uc match of mac address register2 Signed-off-by: Daode Huang Signed-off-by: lipeng Lipeng

Re: [PATCH net 3/6] net: hns: fixed portid bug in sending manage pkt

2016-03-10 Thread Daode Huang
On 2016/3/4 21:37, Sergei Shtylyov wrote: Hello. On 3/4/2016 4:09 AM, Daode Huang wrote: In V2 chip, when sending mamagement packets, the driver should config the port id to BD descs. Signed-off-by: Daode Huang <huangda...@hisilicon.com> Signed-off-by: Lisheng <lisheng...@h

Re: [PATCH net 3/6] net: hns: fixed portid bug in sending manage pkt

2016-03-10 Thread Daode Huang
On 2016/3/4 21:37, Sergei Shtylyov wrote: Hello. On 3/4/2016 4:09 AM, Daode Huang wrote: In V2 chip, when sending mamagement packets, the driver should config the port id to BD descs. Signed-off-by: Daode Huang Signed-off-by: Lisheng --- drivers/net/ethernet/hisilicon/hns/hnae.h

[PATCH net 4/6] net: hns: adds uc match for debug port

2016-03-03 Thread Daode Huang
This patch adds uc match for debug port by: 1)Enables uc match of debug port when initializing gmac 2)Enables uc match of mac address register2 Signed-off-by: Daode Huang <huangda...@hisilicon.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- drivers/net/ethernet/h

[PATCH net 4/6] net: hns: adds uc match for debug port

2016-03-03 Thread Daode Huang
This patch adds uc match for debug port by: 1)Enables uc match of debug port when initializing gmac 2)Enables uc match of mac address register2 Signed-off-by: Daode Huang Signed-off-by: lipeng --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 18 +- drivers/net/ethernet

[PATCH net 5/6] net: hns: fixed service-ges setting MAC-addr bug

2016-03-03 Thread Daode Huang
From: Lisheng <lisheng...@huawei.com> Service gmacs can not set mac add, this patch will fix the bug. Signed-off-by: Daode Huang <huangda...@hisilicon.com> Signed-off-by: Lisheng <lisheng...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 19 +

[PATCH net 6/6] net: hns: bug fix of getting hilink status

2016-03-03 Thread Daode Huang
r addr is also changed. So this patch fixes the bug. Signed-off-by: Daode Huang <huangda...@hisilicon.com> Signed-off-by: Lisheng <lisheng...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c | 39 +++--- drivers/net/ethernet/hisilicon/hns/hns_dsaf

[PATCH net 2/6] net: hns: fixes the hw interrupt bug in using napi

2016-03-03 Thread Daode Huang
In V1 chip, common_poll should check and clean fbd pkts, because it can not pend irq to clean them if there is no new pkt comes in. But V2 chip hw fixes this bug, and will pend irq itself to do this. So, for V2 chip, we set ring_data->fini_process to NULL. Signed-off-by: Daode Huang <h

[PATCH net 5/6] net: hns: fixed service-ges setting MAC-addr bug

2016-03-03 Thread Daode Huang
From: Lisheng Service gmacs can not set mac add, this patch will fix the bug. Signed-off-by: Daode Huang Signed-off-by: Lisheng --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet

[PATCH net 6/6] net: hns: bug fix of getting hilink status

2016-03-03 Thread Daode Huang
this patch fixes the bug. Signed-off-by: Daode Huang Signed-off-by: Lisheng --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c | 39 +++--- drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h | 2 ++ 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/drivers/net

[PATCH net 2/6] net: hns: fixes the hw interrupt bug in using napi

2016-03-03 Thread Daode Huang
In V1 chip, common_poll should check and clean fbd pkts, because it can not pend irq to clean them if there is no new pkt comes in. But V2 chip hw fixes this bug, and will pend irq itself to do this. So, for V2 chip, we set ring_data->fini_process to NULL. Signed-off-by: Daode Huang Signed-

[PATCH net 0/6]net: hns: hns driver updates

2016-03-03 Thread Daode Huang
Hi David, This patch series are hisilicon network driver bug fix. Best Regards Daode. Daode Huang (5): net: hns: bug fix about the overflow of mss net: hns: fixes the hw interrupt bug in using napi net: hns: fixed portid bug in sending manage pkt net: hns: adds uc match for debug port

[PATCH net 0/6]net: hns: hns driver updates

2016-03-03 Thread Daode Huang
Hi David, This patch series are hisilicon network driver bug fix. Best Regards Daode. Daode Huang (5): net: hns: bug fix about the overflow of mss net: hns: fixes the hw interrupt bug in using napi net: hns: fixed portid bug in sending manage pkt net: hns: adds uc match for debug port

[PATCH net 3/6] net: hns: fixed portid bug in sending manage pkt

2016-03-03 Thread Daode Huang
In V2 chip, when sending mamagement packets, the driver should config the port id to BD descs. Signed-off-by: Daode Huang <huangda...@hisilicon.com> Signed-off-by: Lisheng <lisheng...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hnae.h | 3 +++ drivers/net/ethernet/h

[PATCH net 3/6] net: hns: fixed portid bug in sending manage pkt

2016-03-03 Thread Daode Huang
In V2 chip, when sending mamagement packets, the driver should config the port id to BD descs. Signed-off-by: Daode Huang Signed-off-by: Lisheng --- drivers/net/ethernet/hisilicon/hns/hnae.h | 3 +++ drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 1 + drivers/net/ethernet

[PATCH net 1/6] net: hns: bug fix about the overflow of mss

2016-03-03 Thread Daode Huang
When set MTU to the minimum value 68, there are increasing number of error packets occur, which is caused by the overflowed value of mss. This patch fix the bug. Signed-off-by: Daode Huang <huangda...@hisilicon.com> --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 17 -

[PATCH net 1/6] net: hns: bug fix about the overflow of mss

2016-03-03 Thread Daode Huang
When set MTU to the minimum value 68, there are increasing number of error packets occur, which is caused by the overflowed value of mss. This patch fix the bug. Signed-off-by: Daode Huang --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 17 - 1 file changed, 8 insertions

Re: [PATCH net 0/6]net: hns: hns driver updates

2016-03-03 Thread Daode Huang
sorry. please ignore this mail, i will send out it again. On 2016/3/4 9:09, Daode Huang wrote: Hi David, This patch series are hisilicon network driver bug fix. Best Regards Daode. Daode Huang (5): net: hns: bug fix about the overflow of mss net: hns: fixes the hw interrupt bug in using

Re: [PATCH net 0/6]net: hns: hns driver updates

2016-03-03 Thread Daode Huang
sorry. please ignore this mail, i will send out it again. On 2016/3/4 9:09, Daode Huang wrote: Hi David, This patch series are hisilicon network driver bug fix. Best Regards Daode. Daode Huang (5): net: hns: bug fix about the overflow of mss net: hns: fixes the hw interrupt bug in using

[PATCH net 6/6] net: hns: bug fix of getting hilink status

2016-03-03 Thread Daode Huang
r addr is also changed. So this patch fixes the bug. Signed-off-by: Daode Huang <huangda...@hisilicon.com> Signed-off-by: Lisheng <lisheng...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c | 39 +++--- drivers/net/ethernet/hisilicon/hns/hns_dsaf

[PATCH net 6/6] net: hns: bug fix of getting hilink status

2016-03-03 Thread Daode Huang
this patch fixes the bug. Signed-off-by: Daode Huang Signed-off-by: Lisheng --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c | 39 +++--- drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h | 2 ++ 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/drivers/net

[PATCH net 1/6] net: hns: bug fix about the overflow of mss

2016-03-03 Thread Daode Huang
-off-by: Daode Huang <huangda...@hisilicon.com> --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns/hns_enet.c b/drivers/net/ethernet/hisilicon/hns/hns_enet.c index 3

[PATCH net 1/6] net: hns: bug fix about the overflow of mss

2016-03-03 Thread Daode Huang
-off-by: Daode Huang --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns/hns_enet.c b/drivers/net/ethernet/hisilicon/hns/hns_enet.c index 3f77ff7..9d46d57 100644 --- a/drivers/net

[PATCH net 0/6]net: hns: hns driver updates

2016-03-03 Thread Daode Huang
Hi David, This patch series are hisilicon network driver bug fix. Best Regards Daode. Daode Huang (5): net: hns: bug fix about the overflow of mss net: hns: fixes the hw interrupt bug in using napi net: hns: fixed portid bug in sending manage pkt net: hns: adds uc match for debug port

[PATCH net 3/6] net: hns: fixed portid bug in sending manage pkt

2016-03-03 Thread Daode Huang
In V2 chip, when sending mamagement packets, the driver should config the port id to BD descs. Signed-off-by: Daode Huang <huangda...@hisilicon.com> Signed-off-by: Lisheng <lisheng...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hnae.h | 3 +++ drivers/net/ethernet/h

[PATCH net 4/6] net: hns: adds uc match for debug port

2016-03-03 Thread Daode Huang
This patch adds uc match for debug port by: 1)Enables uc match of debug port when initializing gmac 2)Enables uc match of mac address register2 Signed-off-by: Daode Huang <huangda...@hisilicon.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- drivers/net/ethernet/h

[PATCH net 0/6]net: hns: hns driver updates

2016-03-03 Thread Daode Huang
Hi David, This patch series are hisilicon network driver bug fix. Best Regards Daode. Daode Huang (5): net: hns: bug fix about the overflow of mss net: hns: fixes the hw interrupt bug in using napi net: hns: fixed portid bug in sending manage pkt net: hns: adds uc match for debug port

[PATCH net 3/6] net: hns: fixed portid bug in sending manage pkt

2016-03-03 Thread Daode Huang
In V2 chip, when sending mamagement packets, the driver should config the port id to BD descs. Signed-off-by: Daode Huang Signed-off-by: Lisheng --- drivers/net/ethernet/hisilicon/hns/hnae.h | 3 +++ drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 1 + drivers/net/ethernet

[PATCH net 4/6] net: hns: adds uc match for debug port

2016-03-03 Thread Daode Huang
This patch adds uc match for debug port by: 1)Enables uc match of debug port when initializing gmac 2)Enables uc match of mac address register2 Signed-off-by: Daode Huang Signed-off-by: lipeng --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 18 +- drivers/net/ethernet

[PATCH net 5/6] net: hns: fixed service-ges setting MAC-addr bug

2016-03-03 Thread Daode Huang
From: Lisheng <lisheng...@huawei.com> Service gmacs can not set mac add, this patch will fix the bug. Signed-off-by: Daode Huang <huangda...@hisilicon.com> Signed-off-by: Lisheng <lisheng...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 19 +

[PATCH net 5/6] net: hns: fixed service-ges setting MAC-addr bug

2016-03-03 Thread Daode Huang
From: Lisheng Service gmacs can not set mac add, this patch will fix the bug. Signed-off-by: Daode Huang Signed-off-by: Lisheng --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/net/ethernet

[PATCH net 2/6] net: hns: fixes the hw interrupt bug in using napi

2016-03-03 Thread Daode Huang
In V1 chip, common_poll should check and clean fbd pkts, because it can not pend irq to clean them if there is no new pkt comes in. But V2 chip hw fixes this bug, and will pend irq itself to do this. So, for V2 chip, we set ring_data->fini_process to NULL. Signed-off-by: Daode Huang <h

[PATCH net 2/6] net: hns: fixes the hw interrupt bug in using napi

2016-03-03 Thread Daode Huang
In V1 chip, common_poll should check and clean fbd pkts, because it can not pend irq to clean them if there is no new pkt comes in. But V2 chip hw fixes this bug, and will pend irq itself to do this. So, for V2 chip, we set ring_data->fini_process to NULL. Signed-off-by: Daode Huang Signed-