[PATCH V2 net-next 05/18] net: hns: bug fix of ethtool show the speed

2017-03-31 Thread Salil Mehta
zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns/hns_ethtool.c b/drivers/net/ethernet/hisilicon/hns/hns_ethto

[PATCH V2 net-next 06/18] net: hns: Optimize hns_nic_common_poll for better performance

2017-03-31 Thread Salil Mehta
uawei.com> reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 50 --- drivers/net/ethernet/hisilicon/hns/hns_enet.h | 2 +- 2 files changed, 31 insertions(+

[PATCH V2 net-next 08/18] net: hns: Replace netif_tx_lock to ring spin lock

2017-03-31 Thread Salil Mehta
uawei.com> reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hnae.c | 1 + drivers/net/ethernet/hisilicon/hns/hnae.h | 3 +++ drivers/net/ethernet/hisilicon/hns/hns_enet.c | 21 ++

[PATCH V2 net-next 05/18] net: hns: bug fix of ethtool show the speed

2017-03-31 Thread Salil Mehta
From: Daode Huang When run ethtool ethX on hns driver, the speed will show as "Unknown". The base.speed is not correct assigned, this patch fix this bug. Signed-off-by: Daode Huang Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_eth

[PATCH V2 net-next 06/18] net: hns: Optimize hns_nic_common_poll for better performance

2017-03-31 Thread Salil Mehta
From: lipeng After polling less than buget packages, we need check again. If there are still some packages, we call napi_schedule add softirq queue, this is not better way. So we return buget value instead of napi_schedule. Signed-off-by: lipeng reviewed-by: Yisen Zhuang Signed-off-by: Salil

[PATCH V2 net-next 08/18] net: hns: Replace netif_tx_lock to ring spin lock

2017-03-31 Thread Salil Mehta
From: lipeng netif_tx_lock is a global spin lock, it will take affect in all rings in the netdevice. In tx_poll_one process, it can only lock the current ring, in this case, we define a spin lock in hnae_ring struct for it. Signed-off-by: lipeng reviewed-by: Yisen Zhuang Signed-off-by: Salil

[PATCH V2 net-next 00/18] net: hns: Misc. HNS Bug Fixes & Code Improvements

2017-03-31 Thread Salil Mehta
redundant mac table operations net: hns: Clean redundant code from hns_mdio.c file net: hns: Optimise the code in hns_mdio_wait_ready() net: hns: Simplify the exception sequence in hns_ppe_init() net: hns: Adjust the SBM module buffer threshold Salil Mehta (1): net: hns: Some checkpatch.pl

[PATCH V2 net-next 00/18] net: hns: Misc. HNS Bug Fixes & Code Improvements

2017-03-31 Thread Salil Mehta
redundant mac table operations net: hns: Clean redundant code from hns_mdio.c file net: hns: Optimise the code in hns_mdio_wait_ready() net: hns: Simplify the exception sequence in hns_ppe_init() net: hns: Adjust the SBM module buffer threshold Salil Mehta (1): net: hns: Some checkpatch.pl

[PATCH V2 net-next 04/18] net: hns: Remove redundant memset during buffer release

2017-03-31 Thread Salil Mehta
d in tx direction. Signed-off-by: lipeng <lipeng...@huawei.com> Signed-off-by: Weiwei Deng <dengwei...@huawei.com> Reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hnae.c | 1 - 1

[PATCH V2 net-next 04/18] net: hns: Remove redundant memset during buffer release

2017-03-31 Thread Salil Mehta
f-by: lipeng Signed-off-by: Weiwei Deng Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hnae.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns/hnae.c b/drivers/net/ethernet/hisilicon/hns/hnae.c index b6e

RE: [PATCH net 00/19] net: hns: Misc. HNS Bug Fixes & Code Improvements

2017-03-31 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Friday, March 31, 2017 4:03 AM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > Subject: Re:

RE: [PATCH net 00/19] net: hns: Misc. HNS Bug Fixes & Code Improvements

2017-03-31 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Friday, March 31, 2017 4:03 AM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > Subject: Re:

RE: [PATCH net 00/19] net: hns: Misc. HNS Bug Fixes & Code Improvements

2017-03-30 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Thursday, March 30, 2017 6:22 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > Subject: Re:

RE: [PATCH net 00/19] net: hns: Misc. HNS Bug Fixes & Code Improvements

2017-03-30 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Thursday, March 30, 2017 6:22 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > Subject: Re:

RE: [PATCH net 00/19] net: hns: Misc. HNS Bug Fixes & Code Improvements

2017-03-30 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Thursday, March 30, 2017 6:09 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > Subject: Re:

RE: [PATCH net 00/19] net: hns: Misc. HNS Bug Fixes & Code Improvements

2017-03-30 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Thursday, March 30, 2017 6:09 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > Subject: Re:

[PATCH net 00/19] net: hns: Misc. HNS Bug Fixes & Code Improvements

2017-03-30 Thread Salil Mehta
redundant mac table operations net: hns: Clean redundant code from hns_mdio.c file net: hns: Optimise the code in hns_mdio_wait_ready() net: hns: Simplify the exception sequence in hns_ppe_init() net: hns: Adjust the SBM module buffer threshold Salil Mehta (1): net: hns: Some checkpatch.pl

[PATCH net 00/19] net: hns: Misc. HNS Bug Fixes & Code Improvements

2017-03-30 Thread Salil Mehta
redundant mac table operations net: hns: Clean redundant code from hns_mdio.c file net: hns: Optimise the code in hns_mdio_wait_ready() net: hns: Simplify the exception sequence in hns_ppe_init() net: hns: Adjust the SBM module buffer threshold Salil Mehta (1): net: hns: Some checkpatch.pl

[PATCH net 03/19] net: hns: Optimize the code for GMAC pad and crc Config

2017-03-30 Thread Salil Mehta
uawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 36 ++ 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c b/drivers/net/ethernet/hisilicon/hns

[PATCH net 03/19] net: hns: Optimize the code for GMAC pad and crc Config

2017-03-30 Thread Salil Mehta
From: lipeng This patch optimises the init configuration code leg for gmac pad and crc set interface. Signed-off-by: lipeng Signed-off-by: JinchuanTian Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 36 ++ 1

[PATCH net 01/19] net: hns: Fix the implementation of irq affinity function

2017-03-30 Thread Salil Mehta
g...@huawei.com> Signed-off-by: Kejian Yan <yankej...@huawei.com> Reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 75 +++ drivers/net/ethernet/hisi

[PATCH net 01/19] net: hns: Fix the implementation of irq affinity function

2017-03-30 Thread Salil Mehta
Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 75 +++ drivers/net/ethernet/hisilicon/hns/hns_enet.h | 1 + 2 files changed, 30 insertions(+), 46 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns/hns_enet.c b/drive

[PATCH net 06/19] net: hns: bug fix of ethtool show the speed

2017-03-30 Thread Salil Mehta
zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns/hns_ethtool.c b/drivers/net/ethernet/hisilicon/hns/hns_ethto

[PATCH net 06/19] net: hns: bug fix of ethtool show the speed

2017-03-30 Thread Salil Mehta
From: Daode Huang When run ethtool ethX on hns driver, the speed will show as "Unknown". The base.speed is not correct assigned, this patch fix this bug. Signed-off-by: Daode Huang Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_eth

[PATCH net] net: hns: Add ACPI support to check SFP present

2017-03-30 Thread Salil Mehta
From: Daode Huang <huangda...@hisilicon.com> The current code only supports DT to check SFP present. This patch adds ACPI support as well. Signed-off-by: Daode Huang <huangda...@hisilicon.com> Reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <s

[PATCH net] net: hns: Add ACPI support to check SFP present

2017-03-30 Thread Salil Mehta
From: Daode Huang The current code only supports DT to check SFP present. This patch adds ACPI support as well. Signed-off-by: Daode Huang Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c | 11 + drivers/net/ethernet

[PATCH net 04/19] net: hns: Change the TX queue selection algorithm

2017-03-30 Thread Salil Mehta
eng <dengwei...@huawei.com> Reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hnae.h | 2 + drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 5 ++ drivers/net/ethernet/his

[PATCH net 04/19] net: hns: Change the TX queue selection algorithm

2017-03-30 Thread Salil Mehta
From: lipeng This patch changes the TX queue selection algorithm from default to based on tuple {sport,dport,sip,dip}/indirection table similar to used during RX with Receive Side Scaling. Signed-off-by: lipeng Signed-off-by: Weiwei Deng Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta

[PATCH net 07/19] net: hns: Optimize hns_nic_common_poll for better performance

2017-03-30 Thread Salil Mehta
uawei.com> reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 50 --- drivers/net/ethernet/hisilicon/hns/hns_enet.h | 2 +- 2 files changed, 31 insertions(+

[PATCH net 07/19] net: hns: Optimize hns_nic_common_poll for better performance

2017-03-30 Thread Salil Mehta
From: lipeng After polling less than buget packages, we need check again. If there are still some packages, we call napi_schedule add softirq queue, this is not better way. So we return buget value instead of napi_schedule. Signed-off-by: lipeng reviewed-by: Yisen Zhuang Signed-off-by: Salil

[PATCH net 05/19] net: hns: Remove redundant memset during buffer release

2017-03-30 Thread Salil Mehta
d in tx direction. Signed-off-by: lipeng <lipeng...@huawei.com> Signed-off-by: Weiwei Deng <dengwei...@huawei.com> Reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hnae.c | 1 - 1

[PATCH net 05/19] net: hns: Remove redundant memset during buffer release

2017-03-30 Thread Salil Mehta
f-by: lipeng Signed-off-by: Weiwei Deng Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hnae.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns/hnae.c b/drivers/net/ethernet/hisilicon/hns/hnae.c index b6e

[PATCH net 13/19] net: hns: Remove redundant mac table operations

2017-03-30 Thread Salil Mehta
From: Kejian Yan <yankej...@huawei.com> This patch removes redundant functions used only for debugging purposes. Reported-by: Weiwei Deng <dengwei...@huawei.com> Signed-off-by: Kejian Yan <yankej...@huawei.com> Reviewed-by: Salil Mehta <salil.me...@huawei.com> Si

[PATCH net 13/19] net: hns: Remove redundant mac table operations

2017-03-30 Thread Salil Mehta
From: Kejian Yan This patch removes redundant functions used only for debugging purposes. Reported-by: Weiwei Deng Signed-off-by: Kejian Yan Reviewed-by: Salil Mehta Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 160 - drivers/net

[PATCH net 09/19] net: hns: Replace netif_tx_lock to ring spin lock

2017-03-30 Thread Salil Mehta
uawei.com> reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hnae.c | 1 + drivers/net/ethernet/hisilicon/hns/hnae.h | 3 +++ drivers/net/ethernet/hisilicon/hns/hns_enet.c | 21 ++

[PATCH net 09/19] net: hns: Replace netif_tx_lock to ring spin lock

2017-03-30 Thread Salil Mehta
From: lipeng netif_tx_lock is a global spin lock, it will take affect in all rings in the netdevice. In tx_poll_one process, it can only lock the current ring, in this case, we define a spin lock in hnae_ring struct for it. Signed-off-by: lipeng reviewed-by: Yisen Zhuang Signed-off-by: Salil

[PATCH net 14/19] net: hns: Clean redundant code from hns_mdio.c file

2017-03-30 Thread Salil Mehta
From: Kejian Yan <yankej...@huawei.com> This patch cleans the redundant code from hns_mdio.c. Reported-by: Ping Zhang <zhangpi...@huawei.com> Signed-off-by: Kejian Yan <yankej...@huawei.com> Reviewed-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: Salil Mehta

[PATCH net 14/19] net: hns: Clean redundant code from hns_mdio.c file

2017-03-30 Thread Salil Mehta
From: Kejian Yan This patch cleans the redundant code from hns_mdio.c. Reported-by: Ping Zhang Signed-off-by: Kejian Yan Reviewed-by: Salil Mehta Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns_mdio.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers

[PATCH net 15/19] net: hns: Optimise the code in hns_mdio_wait_ready()

2017-03-30 Thread Salil Mehta
From: Kejian Yan <yankej...@huawei.com> This patch fixes the code to clear pclint warning/info. Reported-by: Ping Zhang <zhangpi...@huawei.com> Signed-off-by: Kejian Yan <yankej...@huawei.com> Reviewed-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: Salil Mehta

[PATCH net 12/19] net: hns: Remove redundant mac_get_id()

2017-03-30 Thread Salil Mehta
From: Kejian Yan <yankej...@huawei.com> There is a mac_id in mac control block structure, so the callback function mac_get_id() is useless. Here we remove this function. Reported-by: Weiwei Deng <dengwei...@huawei.com> Signed-off-by: Kejian Yan <yankej...@huawei.com> Review

[PATCH net 15/19] net: hns: Optimise the code in hns_mdio_wait_ready()

2017-03-30 Thread Salil Mehta
From: Kejian Yan This patch fixes the code to clear pclint warning/info. Reported-by: Ping Zhang Signed-off-by: Kejian Yan Reviewed-by: Salil Mehta Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns_mdio.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions

[PATCH net 12/19] net: hns: Remove redundant mac_get_id()

2017-03-30 Thread Salil Mehta
From: Kejian Yan There is a mac_id in mac control block structure, so the callback function mac_get_id() is useless. Here we remove this function. Reported-by: Weiwei Deng Signed-off-by: Kejian Yan Reviewed-by: Salil Mehta Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns

[PATCH net 18/19] net: hns: Avoid Hip06 chip TX packet line bug

2017-03-30 Thread Salil Mehta
m 6.6G to 9.37G when an iperf send thread on ARM and an iperf send thread on X86 for XGE. Signed-off-by: lipeng <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hnae.c | 5 ++ drivers/net/ethernet/hisilicon/hns/hn

[PATCH net 18/19] net: hns: Avoid Hip06 chip TX packet line bug

2017-03-30 Thread Salil Mehta
send thread on ARM and an iperf send thread on X86 for XGE. Signed-off-by: lipeng Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hnae.c | 5 ++ drivers/net/ethernet/hisilicon/hns/hnae.h | 6 +- drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 78

[PATCH net 11/19] net: hns: Remove the redundant adding and deleting mac function

2017-03-30 Thread Salil Mehta
m> Signed-off-by: Kejian Yan <yankej...@huawei.com> Reviewed-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c | 38 -- drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.h

[PATCH net 11/19] net: hns: Remove the redundant adding and deleting mac function

2017-03-30 Thread Salil Mehta
From: Kejian Yan The functions (hns_dsaf_set_mac_mc_entry() and hns_mac_del_mac()) are not called by any functions. They are dead code in hns. And the same features are implemented by the patch (the id is 66355f5). Reported-by: Weiwei Deng Signed-off-by: Kejian Yan Reviewed-by: Salil Mehta

[PATCH net 19/19] net: hns: Some checkpatch.pl script & warning fixes

2017-03-30 Thread Salil Mehta
This patch fixes some checkpatch.pl script caught errors and warnings during the compilation time. Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hnae.h | 1 - drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 11 +-- drive

[PATCH net 19/19] net: hns: Some checkpatch.pl script & warning fixes

2017-03-30 Thread Salil Mehta
This patch fixes some checkpatch.pl script caught errors and warnings during the compilation time. Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hnae.h | 1 - drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 11 +-- drivers/net/ethernet/hisilicon/hns

[PATCH net 17/19] net: hns: Adjust the SBM module buffer threshold

2017-03-30 Thread Salil Mehta
t;zhangpi...@huawei.com> Signed-off-by: Kejian Yan <yankej...@huawei.com> Reviewed-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 8 1 file changed, 4 insertions(+), 4 deletion

[PATCH net 17/19] net: hns: Adjust the SBM module buffer threshold

2017-03-30 Thread Salil Mehta
-by: Salil Mehta Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c index abd8aec

[PATCH net 10/19] net: hns: Correct HNS RSS key set function

2017-03-30 Thread Salil Mehta
u...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 23 ++- drivers/net/ethernet/hisilicon/hns/hns_ethtool.c | 9 - 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/driver

[PATCH net 16/19] net: hns: Simplify the exception sequence in hns_ppe_init()

2017-03-30 Thread Salil Mehta
Yan <yankej...@huawei.com> Reviewed-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_ppe.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/driv

[PATCH net 10/19] net: hns: Correct HNS RSS key set function

2017-03-30 Thread Salil Mehta
From: lipeng This patch fixes below ethtool configuration error: localhost:~ # ethtool -X eth0 hkey XX:XX:XX... Cannot set Rx flow hash configuration: Operation not supported Signed-off-by: lipeng Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns

[PATCH net 16/19] net: hns: Simplify the exception sequence in hns_ppe_init()

2017-03-30 Thread Salil Mehta
From: Kejian Yan We need to free all ppe submodule if it fails to initialize ppe by any fault, so this patch will free all ppe resource before hns_ppe_init() returns exception situation Reported-by: JinchuanTian Signed-off-by: Kejian Yan Reviewed-by: Salil Mehta Signed-off-by: Salil Mehta

[PATCH net 08/19] net: hns: Fix to adjust buf_size of ring according to mtu

2017-03-30 Thread Salil Mehta
g desc and fetch new desc. Because the Pv660 do not support rss indirection, we need add version check in mtu change process. Signed-off-by: lipeng <lipeng...@huawei.com> reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> -

[PATCH net 08/19] net: hns: Fix to adjust buf_size of ring according to mtu

2017-03-30 Thread Salil Mehta
. Because the Pv660 do not support rss indirection, we need add version check in mtu change process. Signed-off-by: lipeng reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hnae.h | 37 drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c | 26

[PATCH net 02/19] net: hns: Modify GMAC init TX threshold value

2017-03-30 Thread Salil Mehta
uawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 6 ++ drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h | 4 2 files changed, 10 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c b/

[PATCH net 02/19] net: hns: Modify GMAC init TX threshold value

2017-03-30 Thread Salil Mehta
From: lipeng This patch reduces GMAC TX threshold value to avoid gmac hang-up with speed 100M/duplex half. Signed-off-by: lipeng Signed-off-by: JinchuanTian Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c | 6 ++ drivers/net

[PATCH V2 net] net: hns: Fix the device being used for dma mapping during TX

2017-02-09 Thread Salil Mehta
he device related to DSAF. Signed-off-by: Kejian Yan <yankej...@huawei.com> Reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- Change log: PATCH V2: Addressed comment given by, Yuan Linyu <linyu.y...@alcatel-sb

[PATCH V2 net] net: hns: Fix the device being used for dma mapping during TX

2017-02-09 Thread Salil Mehta
ned-off-by: Kejian Yan Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- Change log: PATCH V2: Addressed comment given by, Yuan Linyu PATCH V1: Initial submit --- drivers/net/ethernet/hisilicon/hns/hns_enet.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

RE: [PATCH net] net: hns: Fix the device being used for dma mapping during TX

2017-02-09 Thread Salil Mehta
> -Original Message- > From: Lino Sanfilippo [mailto:linosanfili...@gmx.de] > Sent: Thursday, February 09, 2017 10:25 AM > To: Salil Mehta > Cc: da...@davemloft.net; Salil Mehta; Zhuangyuzeng (Yisen); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > k

RE: [PATCH net] net: hns: Fix the device being used for dma mapping during TX

2017-02-09 Thread Salil Mehta
> -Original Message- > From: Lino Sanfilippo [mailto:linosanfili...@gmx.de] > Sent: Thursday, February 09, 2017 10:25 AM > To: Salil Mehta > Cc: da...@davemloft.net; Salil Mehta; Zhuangyuzeng (Yisen); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > k

RE: [PATCH net] net: hns: Fix the device being used for dma mapping during TX

2017-02-09 Thread Salil Mehta
> -Original Message- > From: Salil Mehta > Sent: Thursday, February 09, 2017 9:48 AM > To: 'YUAN Linyu'; da...@davemloft.net > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm; > Yankejian (Hack

RE: [PATCH net] net: hns: Fix the device being used for dma mapping during TX

2017-02-09 Thread Salil Mehta
> -Original Message- > From: Salil Mehta > Sent: Thursday, February 09, 2017 9:48 AM > To: 'YUAN Linyu'; da...@davemloft.net > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm; > Yankejian (Hack

RE: [PATCH net] net: hns: Fix the device being used for dma mapping during TX

2017-02-09 Thread Salil Mehta
> -Original Message- > From: YUAN Linyu [mailto:linyu.y...@alcatel-sbell.com.cn] > Sent: Thursday, February 09, 2017 9:36 AM > To: Salil Mehta; da...@davemloft.net > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.ke

RE: [PATCH net] net: hns: Fix the device being used for dma mapping during TX

2017-02-09 Thread Salil Mehta
> -Original Message- > From: YUAN Linyu [mailto:linyu.y...@alcatel-sbell.com.cn] > Sent: Thursday, February 09, 2017 9:36 AM > To: Salil Mehta; da...@davemloft.net > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.ke

[PATCH net] net: hns: Fix the device being used for dma mapping during TX

2017-02-09 Thread Salil Mehta
he device related to DSAF. Signed-off-by: Kejian Yan <yankej...@huawei.com> Reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns/hns_enet.c |2 +- 1 file changed, 1 insertion(+), 1 deleti

[PATCH net] net: hns: Fix the device being used for dma mapping during TX

2017-02-09 Thread Salil Mehta
ned-off-by: Kejian Yan Reviewed-by: Yisen Zhuang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_enet.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns/hns_enet.c b/drivers/net/ethernet/hisilicon/hns/hns_enet.c in

[PATCH V4 net-next] net: hns: Fix to conditionally convey RX checksum flag to stack

2016-12-06 Thread Salil Mehta
will not maintain the RX L3/L4 checksum counters as well. Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- Change Log: Patch V4: Accidentally floated a wrong V3 patch. corrected this: Link: https://lkml.org/lkml/2016/12/5/604 Patch V3: Re-structured the code. Patch V2: Address

[PATCH V4 net-next] net: hns: Fix to conditionally convey RX checksum flag to stack

2016-12-06 Thread Salil Mehta
will not maintain the RX L3/L4 checksum counters as well. Signed-off-by: Salil Mehta --- Change Log: Patch V4: Accidentally floated a wrong V3 patch. corrected this: Link: https://lkml.org/lkml/2016/12/5/604 Patch V3: Re-structured the code. Patch V2: Addressed the comment by David Miller

RE: [PATCH V2 net-next] net: hns: Fix to conditionally convey RX checksum flag to stack

2016-12-05 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Saturday, December 03, 2016 8:09 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > Subject: R

RE: [PATCH V2 net-next] net: hns: Fix to conditionally convey RX checksum flag to stack

2016-12-05 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Saturday, December 03, 2016 8:09 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > Subject: R

RE: [PATCH V2 net-next] net: hns: Fix to conditionally convey RX checksum flag to stack

2016-12-05 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Saturday, December 03, 2016 8:25 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > Subject: R

RE: [PATCH V2 net-next] net: hns: Fix to conditionally convey RX checksum flag to stack

2016-12-05 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Saturday, December 03, 2016 8:25 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > Subject: R

[PATCH V3 net-next] net: hns: Fix to conditionally convey RX checksum flag to stack

2016-12-05 Thread Salil Mehta
will not maintain the RX L3/L4 checksum counters as well. Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- Change Log: Patch V3: Re-structured the code. Patch V2: Addressed the comment by David Miller Link: https://www.spinics.net/lists/netdev/msg406697.html Patch V1:

[PATCH V3 net-next] net: hns: Fix to conditionally convey RX checksum flag to stack

2016-12-05 Thread Salil Mehta
will not maintain the RX L3/L4 checksum counters as well. Signed-off-by: Salil Mehta --- Change Log: Patch V3: Re-structured the code. Patch V2: Addressed the comment by David Miller Link: https://www.spinics.net/lists/netdev/msg406697.html Patch V1: This patch is a result of t

RE: [PATCH V2 net-next] net: hns: Fix to conditionally convey RX checksum flag to stack

2016-12-01 Thread Salil Mehta
> -Original Message- > From: Salil Mehta > Sent: Thursday, December 01, 2016 12:09 PM > To: 'David Miller' > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > Subject: RE: [PATCH V2 ne

RE: [PATCH V2 net-next] net: hns: Fix to conditionally convey RX checksum flag to stack

2016-12-01 Thread Salil Mehta
> -Original Message- > From: Salil Mehta > Sent: Thursday, December 01, 2016 12:09 PM > To: 'David Miller' > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > Subject: RE: [PATCH V2 ne

RE: [PATCH V2 net-next] net: hns: Fix to conditionally convey RX checksum flag to stack

2016-12-01 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Wednesday, November 30, 2016 7:26 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > Subject: R

RE: [PATCH V2 net-next] net: hns: Fix to conditionally convey RX checksum flag to stack

2016-12-01 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Wednesday, November 30, 2016 7:26 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > Subject: R

[PATCH for-next 5/6] IB/hns: Fix the bug when free cq

2016-11-29 Thread Salil Mehta
ounter, and ensure that the outstanding CQE have been written. Then the cq buffer can be released. Signed-off-by: Shaobo Xu <xushao...@huawei.com> Reviewed-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/

[PATCH for-next 5/6] IB/hns: Fix the bug when free cq

2016-11-29 Thread Salil Mehta
that the outstanding CQE have been written. Then the cq buffer can be released. Signed-off-by: Shaobo Xu Reviewed-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_common.h |2 + drivers/infiniband/hw/hns/hns_roce_cq.c | 27 -- drivers/infiniband

[PATCH for-next 6/6] IB/hns: Fix the IB device name

2016-11-29 Thread Salil Mehta
From: Lijun Ou <ouli...@huawei.com> This patch mainly fix the name for IB device in order to match with libhns. Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_main.c |2 +- 1 file ch

[PATCH for-next 1/6] IB/hns: Fix the bug when destroy qp

2016-11-29 Thread Salil Mehta
dd.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_common.h | 40 +++ drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 435 +-- drivers/infiniband/hw/hns/hns_roce_hw_v1.h | 23 ++ 3 files changed, 402 in

[PATCH for-next 6/6] IB/hns: Fix the IB device name

2016-11-29 Thread Salil Mehta
From: Lijun Ou This patch mainly fix the name for IB device in order to match with libhns. Signed-off-by: Lijun Ou Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_main.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/hns

[PATCH for-next 1/6] IB/hns: Fix the bug when destroy qp

2016-11-29 Thread Salil Mehta
y and push it into the workqueue, Work function will finish checking and release the related resources later. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Lijun Ou Signed-off-by: Dongdong Huang(Donald) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_common.h | 40 +++ drivers/

[PATCH for-next 4/6] IB/hns: Delete the redundant memset operation

2016-11-29 Thread Salil Mehta
From: "Wei Hu (Xavier)" <xavier.hu...@huawei.com> It deleted the redundant memset operation because the memory allocated by ib_alloc_device has been set zero. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com>

[PATCH for-next 4/6] IB/hns: Delete the redundant memset operation

2016-11-29 Thread Salil Mehta
From: "Wei Hu (Xavier)" It deleted the redundant memset operation because the memory allocated by ib_alloc_device has been set zero. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_main.c |3 --- 1 file changed, 3 deletions(-)

[PATCH for-next 2/6] IB/hns: Fix the bug when free mr

2016-11-29 Thread Salil Mehta
com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_cmd.h|5 - drivers/infiniband/hw/hns/hns_roce_device.h | 10 + drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 485 +++ drivers/infiniband/hw/hns/hns_roce_hw_

[PATCH for-next 2/6] IB/hns: Fix the bug when free mr

2016-11-29 Thread Salil Mehta
to ensure zero wqe when free mr. When the mac address is reset, in order to avoid loopback failure, we need to release the reserved loopback QPs and recreate them. Signed-off-by: Shaobo Xu Reviewed-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_cmd.h|5

[PATCH for-next 3/6] IB/hns: Fix the bug of setting port mtu

2016-11-29 Thread Salil Mehta
From: "Wei Hu (Xavier)" <xavier.hu...@huawei.com> In hns_roce driver, we need not call iboe_get_mtu to reduce IB headers from effective IBoE MTU because hr_dev->caps.max_mtu has already been reduced. Signed-off-by: Wei Hu (Xavier) <xavier.hu...@huawei.com> Signed-off-

[PATCH for-next 0/6] IB/hns: Bug Fixes for HNS RoCE Driver

2016-11-29 Thread Salil Mehta
This patch-set contains bug fixes for the HNS RoCE driver. Lijun Ou (1): IB/hns: Fix the IB device name Shaobo Xu (2): IB/hns: Fix the bug when free mr IB/hns: Fix the bug when free cq Wei Hu (Xavier) (3): IB/hns: Fix the bug when destroy qp IB/hns: Fix the bug of setting port mtu

[PATCH for-next 0/6] IB/hns: Bug Fixes for HNS RoCE Driver

2016-11-29 Thread Salil Mehta
This patch-set contains bug fixes for the HNS RoCE driver. Lijun Ou (1): IB/hns: Fix the IB device name Shaobo Xu (2): IB/hns: Fix the bug when free mr IB/hns: Fix the bug when free cq Wei Hu (Xavier) (3): IB/hns: Fix the bug when destroy qp IB/hns: Fix the bug of setting port mtu

[PATCH for-next 3/6] IB/hns: Fix the bug of setting port mtu

2016-11-29 Thread Salil Mehta
From: "Wei Hu (Xavier)" In hns_roce driver, we need not call iboe_get_mtu to reduce IB headers from effective IBoE MTU because hr_dev->caps.max_mtu has already been reduced. Signed-off-by: Wei Hu (Xavier) Signed-off-by: Salil Mehta --- drivers/infiniband/hw/hns/hns_roce_

[PATCH V2 net-next] net: hns: Fix to conditionally convey RX checksum flag to stack

2016-11-29 Thread Salil Mehta
or or other error for this packet. 2b. If above errors do not exists, then we set checksum un-necessary for upper layers. Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- Change Log: Patch V2: Addressed the comment by David Miller Link: https://www.spinics.net/lists/netd

[PATCH V2 net-next] net: hns: Fix to conditionally convey RX checksum flag to stack

2016-11-29 Thread Salil Mehta
or or other error for this packet. 2b. If above errors do not exists, then we set checksum un-necessary for upper layers. Signed-off-by: Salil Mehta --- Change Log: Patch V2: Addressed the comment by David Miller Link: https://www.spinics.net/lists/netdev/msg406697.html Pat

RE: [PATCH net-next] net: hns: Fix to conditionally convey RX checksum flag to stack

2016-11-29 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Monday, November 28, 2016 5:13 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > Subject: Re:

RE: [PATCH net-next] net: hns: Fix to conditionally convey RX checksum flag to stack

2016-11-29 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Monday, November 28, 2016 5:13 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen); mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > Subject: Re:

[PATCH net-next] net: hns: Fix to conditionally convey RX checksum flag to stack

2016-11-25 Thread Salil Mehta
in the HNS hardware. 2b. If above errors do not exists, then we set checksum un-necessary for upper layers. Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- Change Log: Patch V1: This patch is a result of the comments given by David Miller <da...@davemloft.

[PATCH net-next] net: hns: Fix to conditionally convey RX checksum flag to stack

2016-11-25 Thread Salil Mehta
in the HNS hardware. 2b. If above errors do not exists, then we set checksum un-necessary for upper layers. Signed-off-by: Salil Mehta --- Change Log: Patch V1: This patch is a result of the comments given by David Miller Link: https://lkml.org/lkml/2016/6/15/27

<    3   4   5   6   7   8   9   10   11   12   >