[PATCH net-next 01/10] net: hns3: Fix for deadlock problem occurring when unregistering ae_algo

2018-05-15 Thread Salil Mehta
calling hnae3_register_ae_dev. Mutex_trylock can be replaced with mutex_lock. Fixes: 424eb834a9be ("net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC") Signed-off-by: Fuyun Liang Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hn

[PATCH net-next 0/9] Misc bug fixes for HNS3 Ethernet driver

2018-05-01 Thread Salil Mehta
This patch-set presents some miscellaneous bug fixs and cleanups for HNS3 Ethernet Driver. Fuyun Liang (1): net: hns3: Fix to support autoneg only for port attached with phy Huazhong Tan (5): net: hns3: fix to correctly fetch l4 protocol outer header net: hns3: Fixes the out of bounds

[PATCH net-next 8/9] net: hns3: Fix for packet loss due wrong filter config in VLAN tbls

2018-05-01 Thread Salil Mehta
will cause packet lost problem. This patch fixes this problem by setting both vlan table, and use hdev->vlan_table to manage thet port vlan table. Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c|

[PATCH net-next 9/9] net: hns3: Remove packet statistics in the range of 8192~12287

2018-05-01 Thread Salil Mehta
. This patch removes the 8192~12287 range of packet statistics and uses the 8192~9216 and 9217~12287 ranges for statistics. This change depends on the firmware upgrade. Signed-off-by: Xi Wang Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 4

[PATCH net-next 5/9] net: hns3: fix for phy_addr error in hclge_mac_mdio_config

2018-05-01 Thread Salil Mehta
From: Huazhong Tan When phy exists, phy_addr must less than PHY_MAX_ADDR. If not, hclge_mac_mdio_config should return error. And for fiber(phy_addr=0xff), it does not need hclge_mac_mdio_config. Signed-off-by: Huazhong Tan Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net

[PATCH net-next 6/9] net: hns3: Fix to support autoneg only for port attached with phy

2018-05-01 Thread Salil Mehta
From: Fuyun Liang This patch adds a check to support autoneg(ethtool -A) only when PHY is attached with the port. Fixes: e2cb1dec9779 ("net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support") Signed-off-by: Fuyun Liang Signed-off-by: Peng Li Signed-off-by: Salil Mehta --

[PATCH net-next 4/9] net: hns3: Fixes the error legs in hclge_init_ae_dev function

2018-05-01 Thread Salil Mehta
an Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 55 +- 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilic

[PATCH net-next 7/9] net: hns3: fix a dead loop in hclge_cmd_csq_clean

2018-05-01 Thread Salil Mehta
y: Peng Li Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c| 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c index ff13d18..fab7

[PATCH net-next 2/9] net: hns3: fix to correctly fetch l4 protocol outer header

2018-05-01 Thread Salil Mehta
f-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index 8c55965..c4e2950 100644 --- a/d

[PATCH net-next 3/9] net: hns3: Fixes the out of bounds access in hclge_map_tqp

2018-05-01 Thread Salil Mehta
: Huazhong Tan Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/h

[PATCH net-next 1/9] net: hns3: Remove error log when getting pfc stats fails

2018-05-01 Thread Salil Mehta
it already return the error to the user space, so the user should be aware of the error. Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

[PATCH net-next] net: hns3: Add support of hardware rx-vlan-offload to HNS3 VF driver

2018-05-03 Thread Salil Mehta
From: Yunsheng Lin This patch adds support of hardware rx-vlan-offload to VF driver. VF uses mailbox to convey PF to configure the hardware. Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 8

[PATCH net-next 0/4] Misc bug fixes for HNS3 Ethernet Driver

2018-05-09 Thread Salil Mehta
Fixes to some of the bugs found during system test, internal review and clean-up Yunsheng Lin (4): net: hns3: Fix for setting mac address when resetting net: hns3: remove add/del_tunnel_udp in hns3_enet module net: hns3: fix for cleaning ring problem net: hns3: refactor the loopback

[PATCH net-next 1/4] net: hns3: Fix for setting mac address when resetting

2018-05-09 Thread Salil Mehta
NCL_CONFIG when resetting. Fixes: 424eb834a9be ("net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC") Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 8 1 file changed, 4 insert

[PATCH net-next 2/4] net: hns3: remove add/del_tunnel_udp in hns3_enet module

2018-05-09 Thread Salil Mehta
ort this feature now. Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 7 -- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 89 - 2 files changed, 96 deletions(-) diff --git a/driv

[PATCH net-next 3/4] net: hns3: fix for cleaning ring problem

2018-05-09 Thread Salil Mehta
hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 34 ++--- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/d

[PATCH net-next 4/4] net: hns3: refactor the loopback related function

2018-05-09 Thread Salil Mehta
From: Yunsheng Lin This patch refactors the loopback related function in order to support the serdes loopback. Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 21 +++ .../ethernet/hisilicon/hns3

[PATCH net-next 1/9] net: hns3: Fixes error reported by Kbuild and internal review

2018-05-19 Thread Salil Mehta
This patch fixes the error reported by Intel's kbuild and fixes a return value in one of the legs, caught during review of the original patch sent by kbuild. Fixes: fdb793670a00 ("net: hns3: Add support of .sriov_configure in HNS3 driver") Signed-off-by: Fengguang Wu Signed-off-by: S

[PATCH net-next 4/9] net: hns3: Fix the missing client list node initialization

2018-05-19 Thread Salil Mehta
From: Xi Wang This patch fixes the missing initialization of the client list node in the hnae3_register_client() function. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Xi Wang Signed-off-by: Peng Li Signed-off-by: S

[PATCH net-next 6/9] net: hns3: Use enums instead of magic number in hclge_is_special_opcode

2018-05-19 Thread Salil Mehta
, HCLGE_OPC_STATS_32_BIT = 0x0031, HCLGE_OPC_STATS_MAC = 0x0032, }; Signed-off-by: Huazhong Tan Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 6 +- 1 file changed, 5 insertions(+), 1

[PATCH net-next 8/9] net: hns3: Fixes kernel panic issue during rmmod hns3 driver

2018-05-19 Thread Salil Mehta
of spin_lock_bh. Fixes: 68c0a5c70614 ("net: hns3: Add HNS3 IMP(Integrated Mgmt Proc) Cmd Interface Support") Signed-off-by: Xi Wang Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH net-next 7/9] net: hns3: Fix for netdev not running problem after calling net_stop and net_open

2018-05-19 Thread Salil Mehta
it by updating the link state in ae_stop function. Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Fuyun Liang Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 3 +++

[PATCH net-next 5/9] net: hns3: Fix for hns3 module is loaded multiple times problem

2018-05-19 Thread Salil Mehta
[ 23.729300] el0_svc_naked+0x30/0x34 This patch fixes it by adding module version info. Fixes: 38caee9d3ee8 ("net: hns3: Add support of the HNAE3 framework") Signed-off-by: Xi Wang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hnae3.c | 1 + drivers/ne

[PATCH net-next 9/9] net: hns3: Fix for CMDQ and Misc. interrupt init order problem

2018-05-19 Thread Salil Mehta
it by adjusting the location of some function. Fixes: e2cb1dec9779 ("net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support") Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c| 16 -

[PATCH net-next 2/9] net: hns3: Fixes API to fetch ethernet header length with kernel default

2018-05-19 Thread Salil Mehta
for the first Buffer Descriptor if the packet is spanning across multiple descriptors. Kernel default eth_get_headlen API does the job correctly. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Peng Li Reviewed-by: Yisen Zhuang Signed-off-by: S

[PATCH net-next 0/9] Misc. bug fixes and cleanup for HNS3 driver

2018-05-19 Thread Salil Mehta
in hclge_is_special_opcode Jian Shen (1): net: hns3: cleanup of return values in hclge_init_client_instance() Peng Li (1): net: hns3: Fixes API to fetch ethernet header length with kernel default Salil Mehta (1): net: hns3: Fixes error reported by Kbuild and internal review Xi Wang (3

[PATCH net-next 3/9] net: hns3: cleanup of return values in hclge_init_client_instance()

2018-05-19 Thread Salil Mehta
From: Jian Shen Removes the goto and directly returns in case of errors as part of the cleanup. Signed-off-by: Jian Shen Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 14 ++ 1 file changed, 6 insertions(+), 8

[PATCH net-next] net: hns3: Fixes the wrong IS_ERR check on the returned phydev value

2017-08-30 Thread Salil Mehta
Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c index a2add8b..f32d719 100644 ---

[PATCH net-next 3/3] net: hns3: Fixes the static check warning due to missing unsupp L3 proto check

2017-08-18 Thread Salil Mehta
This patch fixes the static check warning due to missing handling leg of unsupported L3 protocol type in the hns3_get_l4_protocol() function. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Reported-by: Dan Carpenter Signed-off-by: Salil Mehta --

[PATCH net-next 0/3] Misc. Bug fixes for HNS3 Ethernet Driver

2017-08-18 Thread Salil Mehta
This patch-set fixes various bugs reported by community. Salil Mehta (3): net: hns3: Fixes the missing u64_stats_fetch_begin_irq in 64-bit stats fetch net: hns3: Fixes the static checker error warning in hns3_get_link_ksettings() net: hns3: Fixes the static check warning due

[PATCH net-next 2/3] net: hns3: Fixes the static checker error warning in hns3_get_link_ksettings()

2017-08-18 Thread Salil Mehta
This patch fixes the static check error warning in hns3_get_link_ksettings() function by re-arranging the code. Fixes: 496d03e960ae ("net: hns3: Add Ethtool support to HNS3 Driver") Reported-by: Dan Carpenter Signed-off-by: Salil Mehta --- .../ethernet/hisilicon/hns3/hns3pf/hns3

[PATCH net-next 1/3] net: hns3: Fixes the missing u64_stats_fetch_begin_irq in 64-bit stats fetch

2017-08-18 Thread Salil Mehta
if this code ever runs on 32-bit platform and we are trying to do 64-bit stats fetch. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Reported-by: Dan Carpenter Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 2

[PATCH net-next] net: hns3: Add support to change MTU in hardware & netdev

2017-08-18 Thread Salil Mehta
This patch adds the following support to the HNS3 driver: 1. Support to change the Maximum Transmission Unit of a netdevice and of a port in hardware . 2. Initializes the supported MTU range for the netdevice. Signed-off-by: lipeng Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon

RE: [PATCH net-next] net: hns3: Add support to change MTU in hardware & netdev

2017-08-18 Thread Salil Mehta
Hi Andrew > -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Friday, August 18, 2017 2:31 PM > To: Salil Mehta > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y); > dan.carpen...@oracle.com; mehta.salil@gmail.com; > net...@vger.ker

RE: [PATCH net-next] net: hns3: Add support to change MTU in hardware & netdev

2017-08-18 Thread Salil Mehta
Hi Andrew > -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Friday, August 18, 2017 4:04 PM > To: Salil Mehta > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y); > dan.carpen...@oracle.com; mehta.salil@gmail.com; > net...@vger.ker

RE: [PATCH net-next] net: hns3: Add support to change MTU in hardware & netdev

2017-08-18 Thread Salil Mehta
Hi Andrew > -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Friday, August 18, 2017 5:02 PM > To: Salil Mehta > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > ker...@vge

[PATCH V2 net-next] net: hns3: Add support to change MTU in HNS3 hardware

2017-08-18 Thread Salil Mehta
This patch adds the following support to the HNS3 driver: 1. Support to change the Maximum Transmission Unit of a of a port in the HNS NIC hardware . 2. Initializes the supported MTU range for the netdevice. Signed-off-by: lipeng Signed-off-by: Salil Mehta --- PATCH V2: Addresses comments

RE: [PATCH net-next] net: hns3: Add support to change MTU in hardware & netdev

2017-08-18 Thread Salil Mehta
Hi Andrew, > > -Original Message- > > From: Andrew Lunn [mailto:and...@lunn.ch] > > Sent: Friday, August 18, 2017 5:02 PM > > To: Salil Mehta > > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y); > > mehta.salil@gmail.com; ne

[PATCH V5 net-next 0/8] Hisilicon Network Subsystem 3 Ethernet Driver

2017-07-28 Thread Salil Mehta
* Add support of HNS3 Ethernet Driver for hip08 SoC * Add MDIO support to HNS3 Ethernet driver for hip08 SoC * Add support of debugfs interface to HNS3 driver Salil Mehta (8): net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC net: hns3: Add support of the HNAE3 fram

[PATCH V5 net-next 2/8] net: hns3: Add support of the HNAE3 framework

2017-07-28 Thread Salil Mehta
operations. Signed-off-by: Daode Huang Signed-off-by: lipeng Signed-off-by: Salil Mehta Signed-off-by: Yisen Zhuang --- Patch V5: Addressed following comments 1. Leon Romanovsky: https://lkml.org/lkml/2017/7/23/67 Patch V4: Addressed following comments 1. Andrew Lunn: https://lkml.org

[PATCH V5 net-next 8/8] net: hns3: Add HNS3 driver to kernel build framework & MAINTAINERS

2017-07-28 Thread Salil Mehta
This patch updates the MAINTAINERS file with HNS3 Ethernet driver maintainers names and other details. This also introduces the new Makefiles required to build the HNS3 Ethernet driver and updates the existing Kconfig file in the hisilicon folder. Signed-off-by: Salil Mehta --- Patch V5

[PATCH V5 net-next 7/8] net: hns3: Add Ethtool support to HNS3 driver

2017-07-28 Thread Salil Mehta
This patch adds the support of the Ethtool interface to the HNS3 Ethernet driver. Various commands to read the statistics, configure the offloading, loopback selftest etc. are supported. Signed-off-by: Daode Huang Signed-off-by: lipeng Signed-off-by: Salil Mehta Signed-off-by: Yisen Zhuang

[PATCH V5 net-next 5/8] net: hns3: Add support of TX Scheduler & Shaper to HNS3 driver

2017-07-28 Thread Salil Mehta
schedulers. Algorithms varies according to the level and type of scheduler being used. Current patch is used to initialize the mapping, algorithms(like SP, DWRR etc) and shaper(CIR, PIR etc) being used. Signed-off-by: Daode Huang Signed-off-by: lipeng Signed-off-by: Salil Mehta Signed-off-by: Yisen

[PATCH V5 net-next 6/8] net: hns3: Add MDIO support to HNS3 Ethernet driver for hip08 SoC

2017-07-28 Thread Salil Mehta
This patch adds the support of MDIO bus interface for HNS3 driver. Code provides various interfaces to start and stop the PHY layer and to read and write the MDIO bus or PHY. Signed-off-by: Daode Huang Signed-off-by: lipeng Signed-off-by: Salil Mehta Signed-off-by: Yisen Zhuang --- Patch V5

[PATCH V5 net-next 4/8] net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support

2017-07-28 Thread Salil Mehta
MDIO layer. Signed-off-by: Daode Huang Signed-off-by: lipeng Signed-off-by: Salil Mehta Signed-off-by: Yisen Zhuang Signed-off-by: Wei Hu (Xavier) --- Patch V5: 1. Fixes due to internal reviews Patch V4: 1. removed register_client/unregister_client wrapper functions 2. name

[PATCH V5 net-next 1/8] net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC

2017-07-28 Thread Salil Mehta
support to the hip08 SoC and would incrementally add features or enhancements. Signed-off-by: Daode Huang Signed-off-by: lipeng Signed-off-by: Salil Mehta Signed-off-by: Yisen Zhuang Signed-off-by: Wei Hu (Xavier) --- Patch V5: addressed comments by: 1. Florian Fainelli https://lkml.org

[PATCH V5 net-next 3/8] net: hns3: Add HNS3 IMP(Integrated Mgmt Proc) Cmd Interface Support

2017-07-28 Thread Salil Mehta
and acknowledgements. Signed-off-by: Daode Huang Signed-off-by: lipeng Signed-off-by: Salil Mehta Signed-off-by: Yisen Zhuang --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 365 ++ .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 741 + 2 files changed, 1106

RE: [PATCH V5 net-next 6/8] net: hns3: Add MDIO support to HNS3 Ethernet driver for hip08 SoC

2017-07-28 Thread Salil Mehta
Hi Andrew, > -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Saturday, July 29, 2017 12:24 AM > To: Salil Mehta > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); huangdaode; lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel

RE: [PATCH V5 net-next 6/8] net: hns3: Add MDIO support to HNS3 Ethernet driver for hip08 SoC

2017-07-28 Thread Salil Mehta
Hi Andrew, > -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Andrew Lunn > Sent: Saturday, July 29, 2017 12:29 AM > To: Salil Mehta > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); huangdaode; lipeng

RE: [PATCH V5 net-next 7/8] net: hns3: Add Ethtool support to HNS3 driver

2017-07-28 Thread Salil Mehta
Hi Andrew, > -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Saturday, July 29, 2017 12:49 AM > To: Salil Mehta > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); huangdaode; lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel

RE: [PATCH V5 net-next 2/8] net: hns3: Add support of the HNAE3 framework

2017-07-31 Thread Salil Mehta
Hi Leon, > -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Leon Romanovsky > Sent: Sunday, July 30, 2017 10:59 AM > To: Salil Mehta > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); huangdaode; lipeng

RE: [PATCH V5 net-next 7/8] net: hns3: Add Ethtool support to HNS3 driver

2017-07-31 Thread Salil Mehta
Hi Andrew, > -Original Message- > From: Salil Mehta > Sent: Saturday, July 29, 2017 12:57 AM > To: 'Andrew Lunn' > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); huangdaode; lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > ker...@vge

RE: [PATCH V2 net-next 0/3] net: hns3: Refactors "reset" handling code in HCLGE layer of HNS3 driver

2017-12-05 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Tuesday, December 05, 2017 4:49 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen) ; lipeng (Y) > ; mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.kernel.org; linux- &

RE: [PATCH net-next 1/8] net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface

2017-12-05 Thread Salil Mehta
Hi Dave, > -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Tuesday, December 05, 2017 4:38 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen) ; lipeng (Y) > ; mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger.k

[PATCH v4 net-next 2/8] net: hns3: Add mailbox support to VF driver

2017-12-14 Thread Salil Mehta
driver. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- Patch V4: Addressed comment from Philippe Ombredanne Link: https://lkml.org/lkml/2017/12/12/1194 Patch V3: Addressed SPDX change requested by Philippe Ombredanne Link: https://lkml.org/lkml/2017/12/8/874 Patch V2: Addressed some

[PATCH v4 net-next 0/8] Hisilicon Network Subsystem 3 VF Ethernet Driver

2017-12-14 Thread Salil Mehta
: Addressed SPDX related comment by Philippe Ombredanne Patch V3: Addressed SPDX change requested by Philippe Ombredanne Patch V2: 1. Addressed some comments by David Miller. 2. Addressed some internal comments on various patches Patch V1: Initial Submit Salil Mehta (8): net: hns3: Add

[PATCH v4 net-next 4/8] net: hns3: Add HNS3 VF driver to kernel build framework

2017-12-14 Thread Salil Mehta
This patch introduces the new Makefiles and updates existing Makefiles required to build the HNS3 Virtual Function driver. This also updates the Kconfig for introduction of new menuconfig entries related to VF driver. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- drivers/net/ethernet

[PATCH v4 net-next 5/8] net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC

2017-12-14 Thread Salil Mehta
tion. This will help in reduction of redundancy and better management of code. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- drivers/net/ethernet/hisilicon/hns3/Makefile | 5 + drivers/net/ethernet/hisilicon/hns3/hnae3.c| 14 -- drivers/net/ethernet/hisilicon/

[PATCH v4 net-next 7/8] net: hns3: Change PF to add ring-vect binding & resetQ to mailbox

2017-12-14 Thread Salil Mehta
This patch is required to support ring-vector binding and reset of TQPs requested by the VF driver to the PF driver. Mailbox handler is added with corresponding VF commands/messages to handle the request. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- .../ethernet/hisilicon/hns3/hns3pf

[PATCH v4 net-next 8/8] net: hns3: Add mailbox interrupt handling to PF driver

2017-12-14 Thread Salil Mehta
All PF mailbox events are conveyed through a common interrupt (vector 0). This interrupt vector is shared by reset and mailbox. This patch adds the handling of mailbox interrupt event and its deferred processing in context to a separate mailbox task. Signed-off-by: Salil Mehta Signed-off

[PATCH v4 net-next 6/8] net: hns3: Add mailbox support to PF driver

2017-12-14 Thread Salil Mehta
privileged operations. This patch adds the support of a message handler for handling such various command requests from VF. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- Patch V4: Addressed comment from Philippe Ombredanne Link: https://lkml.org/lkml/2017/12/12/1194 Patch V3: Addressed SPDX

[PATCH v4 net-next 3/8] net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support

2017-12-14 Thread Salil Mehta
, queries the statistics from the hardware etc. This layer can directly interact with hardware through the IMP(Integrated Mangement Processor) interface or can use mailbox to interact with the PF driver. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- Patch V4: Addressed comment from

[PATCH v4 net-next 1/8] net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface

2017-12-14 Thread Salil Mehta
and acknowledgements. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- Patch V4: Addressed comment from Philippe Ombredanne Link: https://lkml.org/lkml/2017/12/12/1194 Patch V3: Addressed comment from Philippe Ombredanne Link: https://lkml.org/lkml/2017/12/8/874 Patch V2: Reworked comments by David

RE: [PATCH net-next 0/6] net: hns3: support set_link_ksettings and for nway_reset ethtool command

2017-11-03 Thread Salil Mehta
Hi Andrew, > -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Friday, November 03, 2017 3:52 PM > To: lipeng (Y) > Cc: da...@davemloft.net; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; Linuxarm; Salil Mehta > Subject: Re: [PATCH ne

RE: [PATCH V2 net] net: hns3: Updates MSI/MSI-X alloc/free APIs(depricated) to new APIs

2017-11-13 Thread Salil Mehta
Hi David, > -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Monday, November 13, 2017 1:19 AM > To: Salil Mehta > Cc: h...@lst.de; Zhuangyuzeng (Yisen); lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > ker...@vge

[PATCH V3 net-next] net: hns3: Updates MSI/MSI-X alloc/free APIs(depricated) to new APIs

2017-11-13 Thread Salil Mehta
This patch migrates the HNS3 driver code from use of depricated PCI MSI/MSI-X interrupt vector allocation/free APIs to new common APIs. Signed-off-by: Salil Mehta Suggested-by: Christoph Hellwig --- PATCH V3: respin against latest net-next PATCH V2: Yuval Shaia Link -> https://lkml.org/l

RE: [PATCH V3 net-next] net: hns3: Updates MSI/MSI-X alloc/free APIs(depricated) to new APIs

2017-11-14 Thread Salil Mehta
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Tuesday, November 14, 2017 12:46 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen); lipeng (Y); h...@lst.de; > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > ker...@vge

[PATCH net 0/7] Bug fixes for the HNS3 Ethernet Driver for Hip08 SoC

2017-09-18 Thread Salil Mehta
ctor net: hns3: Fix ring and vector map command net: hns3: fix a bug of set mac address net: hns3: set default vlan id to PF net: hns3: Fixes the premature exit of loop when matching clients Salil Mehta (1): net: hns3: fixes the ether address copy with more appropriate API drivers/net/ethe

[PATCH net 2/7] net: hns3: fix the command used to unmap ring from vector

2017-09-18 Thread Salil Mehta
From: Lipeng When unmap ring from vector, it use wrong command, this will cause error if the unmap action need multi command description. This patch fix the error. Signed-off-by: Lipeng Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 +- 1 file

[PATCH net 1/7] net: hns3: get phy addr from NCL_config

2017-09-18 Thread Salil Mehta
-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index bb45365fb817..db4e07dac29a 100644 --- a/drivers/net

[PATCH net 3/7] net: hns3: Fix ring and vector map command

2017-09-18 Thread Salil Mehta
From: Lipeng This patch add INT_GL and VF id to vector configure when bind ring with vector. INT_GL means Interrupt Gap Limiting. Vector id starts from 0 in each VF, so the bind command must specify VF id. Signed-off-by: Lipeng Signed-off-by: Mingguang Qu Signed-off-by: Salil Mehta

[PATCH net 4/7] net: hns3: fix a bug of set mac address

2017-09-18 Thread Salil Mehta
NCL_config file to HW. This patch fix the bug. Signed-off-by: Lipeng Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c b/drivers

[PATCH net 6/7] net: hns3: set default vlan id to PF

2017-09-18 Thread Salil Mehta
Signed-off-by: Lipeng Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

[PATCH net 7/7] net: hns3: Fixes the premature exit of loop when matching clients

2017-09-18 Thread Salil Mehta
. Signed-off-by: Lipeng Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hnae3.c | 43 ++--- 1 file changed, 9 insertions(+), 34 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.c b/drivers/net/ethernet/hisilicon/hns3/hnae3.c index

[PATCH net 5/7] net: hns3: fixes the ether address copy with more appropriate API

2017-09-18 Thread Salil Mehta
This patch replaces the ethernet address copy instance with more appropriate ether_addr_copy() function. Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon

RE: [PATCH net 0/7] Bug fixes for the HNS3 Ethernet Driver for Hip08 SoC

2017-09-19 Thread Salil Mehta
Hi Leon, > -Original Message- > From: Leon Romanovsky [mailto:l...@kernel.org] > Sent: Tuesday, September 19, 2017 4:59 AM > To: Salil Mehta > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > k

[PATCH V2 net 0/7] Bug fixes for the HNS3 Ethernet Driver for Hip08 SoC

2017-09-19 Thread Salil Mehta
net: hns3: Fixes the command used to unmap ring from vector net: hns3: Fixes ring-to-vector map-and-unmap command net: hns3: Fixes the initialization of MAC address in hardware net: hns3: Fixes the default VLAN-id of PF net: hns3: Fixes the premature exit of loop when matching clients S

[PATCH V2 net 3/7] net: hns3: Fixes ring-to-vector map-and-unmap command

2017-09-19 Thread Salil Mehta
Lipeng Signed-off-by: Mingguang Qu Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 8 ++-- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 8 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/

[PATCH V2 net 7/7] net: hns3: Fixes the premature exit of loop when matching clients

2017-09-19 Thread Salil Mehta
. Fixes: 38eddd126772 ("net: hns3: Add support of the HNAE3 framework") Signed-off-by: Lipeng Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hnae3.c | 43 ++--- 1 file changed, 9 insertions(+), 34 deletions(-) diff --git a/drivers/net/ethernet

[PATCH V2 net 4/7] net: hns3: Fixes the initialization of MAC address in hardware

2017-09-19 Thread Salil Mehta
From: Lipeng This patch fixes the initialization of MAC address, fetched from HNS3 firmware i.e. when it is not randomly generated, to the HNS3 hardware. Fixes: ca60906d2795 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Lipeng Signed-off-by: S

[PATCH V2 net 6/7] net: hns3: Fixes the default VLAN-id of PF

2017-09-19 Thread Salil Mehta
t;net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Mingguang Qu Signed-off-by: Lipeng Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/driver

[PATCH V2 net 2/7] net: hns3: Fixes the command used to unmap ring from vector

2017-09-19 Thread Salil Mehta
From: Lipeng This patch fixes the IMP command being used to unmap the vector from the corresponding ring. Fixes: 6427264ef330 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Lipeng Signed-off-by: Salil Mehta --- drivers/net/ethernet/

[PATCH V2 net 5/7] net: hns3: Fixes the ether address copy with appropriate API

2017-09-19 Thread Salil Mehta
This patch replaces the ethernet address copy instance with more appropriate ether_addr_copy() function. Fixes: 6427264ef330 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hc

[PATCH V2 net 1/7] net: hns3: Fixes initialization of phy address from firmware

2017-09-19 Thread Salil Mehta
t;) Signed-off-by: Lipeng Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index bb45365..

RE: [PATCH net-next 1/2] net: hns3: fix a bug when getting phy address from NCL_config file

2017-11-08 Thread Salil Mehta
Hi Andrew, > -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Wednesday, November 08, 2017 2:31 PM > To: lipeng (Y) > Cc: da...@davemloft.net; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; Linuxarm; Zhuangyuzeng (Yisen); Salil Mehta >

RE: [PATCH net] net: hns3: Updates MSI/MSI-X alloc/free APIs(depricated) to new APIs

2017-11-09 Thread Salil Mehta
Hi Yuval, > -Original Message- > From: Yuval Shaia [mailto:yuval.sh...@oracle.com] > Sent: Thursday, November 09, 2017 8:27 AM > To: Salil Mehta > Cc: da...@davemloft.net; h...@lst.de; Zhuangyuzeng (Yisen); lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel

[PATCH V2 net] net: hns3: Updates MSI/MSI-X alloc/free APIs(depricated) to new APIs

2017-11-09 Thread Salil Mehta
This patch migrates the HNS3 driver code from use of depricated PCI MSI/MSI-X interrupt vector allocation/free APIs to new common APIs. Signed-off-by: Salil Mehta Suggested-by: Christoph Hellwig --- PATCH V2: Yuval Shaia Link -> https://lkml.org/lkml/2017/11/9/138 PATCH V1: Initial Sub

RE: [PATCH V6 net-next 0/8] Hisilicon Network Subsystem 3 Ethernet Driver

2017-08-03 Thread Salil Mehta
Thanks a ton, Dave! > -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Thursday, August 03, 2017 11:10 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen); huangdaode; lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > k

RE: [PATCH V2 net-next] net: hns3: Add support to change MTU in HNS3 hardware

2017-08-20 Thread Salil Mehta
Hi Leon > -Original Message- > From: Leon Romanovsky [mailto:l...@kernel.org] > Sent: Sunday, August 20, 2017 8:05 AM > To: Salil Mehta > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > ker...@v

[PATCH V3 net-next] net: hns3: Add support to change MTU in HNS3 hardware

2017-08-21 Thread Salil Mehta
This patch adds the following support to the HNS3 driver: 1. Support to change the Maximum Transmission Unit of a of a port in the HNS NIC hardware. 2. Initializes the supported MTU range for the netdevice. Signed-off-by: lipeng Signed-off-by: Salil Mehta --- PATCH V3: Addressed some minor

RE: [PATCH V3 net-next] net: hns3: Add support to change MTU in HNS3 hardware

2017-08-21 Thread Salil Mehta
Hi Leon, -Original Message- > From: Leon Romanovsky [mailto:l...@kernel.org] > Sent: Monday, August 21, 2017 11:32 AM > To: Salil Mehta > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > ker...@vger

RE: [PATCH V3 net-next] net: hns3: Add support to change MTU in HNS3 hardware

2017-08-21 Thread Salil Mehta
Hi Andrew, > -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Monday, August 21, 2017 3:30 PM > To: Salil Mehta > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > ker...@vge

[PATCH V4 net-next] net: hns3: Add support to change MTU in HNS3 hardware

2017-08-21 Thread Salil Mehta
This patch adds the following support to the HNS3 driver: 1. Support to change the Maximum Transmission Unit of a port in the HNS NIC hardware. 2. Initializes the supported MTU range for the netdevice. Signed-off-by: lipeng Signed-off-by: Salil Mehta --- PATCH V4: Addressed some minor

RE: [PATCH V4 net-next] net: hns3: Add support to change MTU in HNS3 hardware

2017-08-21 Thread Salil Mehta
Sorry, Please ignore this mail. I forgot to add the Andrew Lunn signed-off-by Tag will this patch. I will add the tag and send the updated version of V4 again. Sorry again. > -Original Message- > From: Salil Mehta > Sent: Monday, August 21, 2017 3:40 PM > To: da...@daveml

RE: [PATCH V4 net-next] net: hns3: Add support to change MTU in HNS3 hardware

2017-08-21 Thread Salil Mehta
Hi Leon, > -Original Message- > From: Leon Romanovsky [mailto:l...@kernel.org] > Sent: Monday, August 21, 2017 3:49 PM > To: Salil Mehta > Cc: da...@davemloft.net; Zhuangyuzeng (Yisen); lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > ker...@v

RE: [PATCH V3 net-next] net: hns3: Add support to change MTU in HNS3 hardware

2017-08-21 Thread Salil Mehta
Hi Leon, > -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Leon Romanovsky > Sent: Monday, August 21, 2017 3:48 PM > To: Salil Mehta > Cc: Andrew Lunn; da...@davemloft.net; Zhuangyuzeng

[PATCH V4 net-next] net: hns3: Add support to change MTU in HNS3 hardware

2017-08-21 Thread Salil Mehta
This patch adds the following support to the HNS3 driver: 1. Support to change the Maximum Transmission Unit of a port in the HNS NIC hardware. 2. Initializes the supported MTU range for the netdevice. Signed-off-by: lipeng Signed-off-by: Salil Mehta Reviewed-by: Andrew Lunn Reviewed

[PATCH V6 net-next 0/8] Hisilicon Network Subsystem 3 Ethernet Driver

2017-08-02 Thread Salil Mehta
Add MDIO support to HNS3 Ethernet driver for hip08 SoC * Add support of debugfs interface to HNS3 driver Salil Mehta (8): net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC net: hns3: Add support of the HNAE3 framework net: hns3: Add HNS3 IMP(Integrated Mgmt Proc) Cmd Inter

[PATCH V6 net-next 6/8] net: hns3: Add MDIO support to HNS3 Ethernet driver for hip08 SoC

2017-08-02 Thread Salil Mehta
This patch adds the support of MDIO bus interface for HNS3 driver. Code provides various interfaces to start and stop the PHY layer and to read and write the MDIO bus or PHY. Signed-off-by: Daode Huang Signed-off-by: lipeng Signed-off-by: Salil Mehta Signed-off-by: Yisen Zhuang --- Patch V6

[PATCH V6 net-next 8/8] net: hns3: Add HNS3 driver to kernel build framework & MAINTAINERS

2017-08-02 Thread Salil Mehta
This patch updates the MAINTAINERS file with HNS3 Ethernet driver maintainers names and other details. This also introduces the new Makefiles required to build the HNS3 Ethernet driver and updates the existing Kconfig file in the hisilicon folder. Signed-off-by: Salil Mehta --- MAINTAINERS

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