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

2017-12-03 Thread Salil Mehta
driver. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h| 94 +++ .../ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c | 187 + 2 files changed, 281 insertion

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

2017-12-03 Thread Salil Mehta
Salil Mehta (8): net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface net: hns3: Add mailbox support to VF driver net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support net: hns3: Add HNS3 VF driver to kernel build framework net: hns3: Unified HNS3 {VF|PF} Ethernet

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

2017-12-03 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 <salil.me...@huawei.com> Signed-off-by: lipeng &

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

2017-12-03 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 <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- .../net/ethernet/hisilicon/hns3/hns3pf/Makefile| 2 +-

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

2017-12-03 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 <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@h

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

2017-12-03 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 <salil

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

2017-12-03 Thread Salil Mehta
and acknowledgements. Signed-off-by: Salil Mehta <salil.me...@huawei.com> Signed-off-by: lipeng <lipeng...@huawei.com> --- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c | 341 + .../ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h | 262 2 files changed, 60

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

2017-12-03 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 <salil.me...@huawei.com> Signed-off-by:

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

2018-05-09 Thread Salil Mehta
fixes it by not getting the mac address from NCL_CONFIG when resetting. Fixes: 424eb834a9be ("net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC") Signed-off-by: Yunsheng Lin <linyunsh...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil M

[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 4/4] net: hns3: refactor the loopback related function

2018-05-09 Thread Salil Mehta
From: Yunsheng Lin <linyunsh...@huawei.com> This patch refactors the loopback related function in order to support the serdes loopback. Signed-off-by: Yunsheng Lin <linyunsh...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <s

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

2018-05-09 Thread Salil Mehta
Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Yunsheng Lin <linyunsh...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethern

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

2018-05-09 Thread Salil Mehta
p related function, for we do not support this feature now. Signed-off-by: Yunsheng Lin <linyunsh...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 7 -- drivers/

[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 <shenjia...@huawei.com> Removes the goto and directly returns in case of errors as part of the cleanup. Signed-off-by: Jian Shen <shenjia...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> -

[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 2/9] net: hns3: Fixes API to fetch ethernet header length with kernel default

2018-05-19 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/hns3/hns3_enet.c | 104 +--- 1 file changed, 2 insertions(+), 102 deletions(-) diff --git a/drivers/net/ethe

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

2018-05-19 Thread Salil Mehta
oading. This patch fixes 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 <linyunsh...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-o

[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
roblem. This patch fixes 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 <liangfuy...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Sign

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

2018-05-19 Thread Salil Mehta
725390] SyS_init_module+0x158/0x208 [ 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 <wangx...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com&g

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

2018-05-19 Thread Salil Mehta
using spin_lock instead of spin_lock_bh. Fixes: 68c0a5c70614 ("net: hns3: Add HNS3 IMP(Integrated Mgmt Proc) Cmd Interface Support") Signed-off-by: Xi Wang <wangx...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei

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

2018-05-19 Thread Salil Mehta
...@intel.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- Patch V1: 1. Fixes the errors reported by kbuild - using its fix Link: https://lkml.org/lkml/2018/5/16/894 2. Places a necessary missed return value of num_vfs figured out while reviewing kbuild patch. ---

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

2018-05-19 Thread Salil Mehta
t; Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisili

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

2018-05-19 Thread Salil Mehta
64_BIT = 0x0030, HCLGE_OPC_STATS_32_BIT = 0x0031, HCLGE_OPC_STATS_MAC = 0x0032, }; Signed-off-by: Huazhong Tan <tanhuazh...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.

[PATCH net-next 03/10] net: hns3: Add a check for client instance init state

2018-05-15 Thread Salil Mehta
Liang <liangfuy...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/hnae3.c | 15 --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 1 + 2 files changed, 13 inserti

[PATCH net-next 02/10] net: hns3: Fix for the null pointer problem occurring when initializing ae_dev failed

2018-05-15 Thread Salil Mehta
Signed-off-by: Fuyun Liang <liangfuy...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/hnae3.c | 6 ++ drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ma

[PATCH net-next 05/10] net: hns3: Change return type of hnae3_register_ae_algo

2018-05-15 Thread Salil Mehta
always is true, it make no sense to define return type as int. This patch changes the return type of hnae3_register_ae_algo from int to void. Signed-off-by: Fuyun Liang <liangfuy...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@hua

[PATCH net-next 00/10] Misc. Bug Fixes and clean-ups for HNS3 Driver

2018-05-15 Thread Salil Mehta
This patch-set mainly introduces various bug fixes, cleanups and one very small enhancement to existing HN3 driver code. Fuyun Liang (7): net: hns3: Fix for deadlock problem occurring when unregistering ae_algo net: hns3: Fix for the null pointer problem occurring when initializing

[PATCH net-next 10/10] net: hns3: Fixes the missing PCI iounmap for various legs

2018-05-15 Thread Salil Mehta
roblem that pci can not map will happen. pcim_iounmap need to be called in hclge_pci_uninit. Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Fuyun Liang <liangfuy...@huawei.com> Signed-off-by: Peng Li <lipeng...@hua

[PATCH net-next 07/10] net: hns3: Fixes the back pressure setting When sriov is enabled

2018-05-15 Thread Salil Mehta
er") Signed-off-by: Yunsheng Lin <linyunsh...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c | 45 +++--- .../net/ethernet/hisilicon/hns3/hns3pf/hcl

[PATCH net-next 09/10] net: hns3: Add support of .sriov_configure in HNS3 driver

2018-05-15 Thread Salil Mehta
onfigs the VF_num, and do not enable sriov default. Signed-off-by: Peng Li <lipeng...@huawei.com> Suggested-by: Zhou Wang <wangzh...@hisilicon.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 58 ++--- 1 fil

[PATCH net-next 06/10] net: hns3: Change return value in hnae3_register_client

2018-05-15 Thread Salil Mehta
s true. This patch changes the return value of hnae3_register_client form a variable value to a fixed value, makes the function always return ok. Signed-off-by: Fuyun Liang <liangfuy...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.

[PATCH net-next 08/10] net: hns3: Fix for fiber link up problem

2018-05-15 Thread Salil Mehta
rt is called. Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Yunsheng Lin <linyunsh...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> ---

[PATCH net-next 04/10] net: hns3: Change return type of hnae3_register_ae_dev

2018-05-15 Thread Salil Mehta
e does not need to return any in this function. This patch changes the return type of hnae3_register_ae_dev from int to void. Signed-off-by: Fuyun Liang <liangfuy...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- driver

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

2018-05-15 Thread Salil Mehta
..@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/hnae3.c| 12 +--- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c| 74 +- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 42 ++-- 3 f

[PATCH net-next 05/12] net: hns3: Fix for PF mailbox receving unknown message

2018-05-25 Thread Salil Mehta
eading the message. Fixes: c1a81619d73a ("net: hns3: Add mailbox interrupt handling to PF driver") Signed-off-by: Xi Wang <wangx...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- .../net/ethernet/hisi

[PATCH net-next 04/12] net: hns3: Add support to enable TX/RX promisc mode for H/W rev(0x21)

2018-05-25 Thread Salil Mehta
From: Peng Li <lipeng...@huawei.com> HCLGE_PROMISC_TX_EN_B and HCLGE_PROMISC_RX_EN_B are not supported on pdev revision(0x20), new revision(0x21) supports them. Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/

[PATCH net-next 07/12] net: hns3: Fixes the init of the VALID BD info in the descriptor

2018-05-25 Thread Salil Mehta
..@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c index 1bcb676

[PATCH net-next 00/12] Misc. bug fixes & some minor additions to HNS3 driver

2018-05-25 Thread Salil Mehta
This patch-set provides some bug fixes figured out during testing and review. It also provides some additions due to running of the existing code on the new revision of the HNS3 hardware. Fuyun Liang (3): net: hns3: Fixes the init of the VALID BD info in the descriptor net: hns3: Removes

[PATCH net-next 02/12] net: hns3: Add support for tx_accept_tag2 and tx_accept_untag2 config

2018-05-25 Thread Salil Mehta
; Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 7 -- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 26 +- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h| 6 +++-- 3 files changed, 29 insertion

[PATCH net-next 08/12] net: hns3: Removes unnecessary check when clearing TX/RX rings

2018-05-25 Thread Salil Mehta
r for hip08 SoC") Signed-off-by: Fuyun Liang <liangfuy...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/d

[PATCH net-next 01/12] net: hns3: Updates RX packet info fetch in case of multi BD

2018-05-25 Thread Salil Mehta
ure we are fetching RX packet size from the first descriptor and information like VLAN should be fetched from last BD. Signed-off-by: Peng Li <lipeng...@huawei.com> Reviewed-by: Yisen Zhuang <yisen.zhu...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- driver

[PATCH net-next 11/12] net: hns3: Adds support for led locate command for copper port

2018-05-25 Thread Salil Mehta
pdates the led control command between driver and firmware. Signed-off-by: Jian Shen <shenjia...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 12 ++-- ...

[PATCH net-next 03/12] net: hns3: Add STRP_TAGP field support for hardware revision 0x21

2018-05-25 Thread Salil Mehta
inner vlan tag field. For each bit, 0 indicates the tag is not stripped and 1 indicates the tag is stripped. This patch adds STRP_TAGP support for revision(0x21), and does not change the revision(0x20) action. Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.m

[PATCH net-next 09/12] net: hns3: Clear TX/RX rings when stopping port & un-initializing client

2018-05-25 Thread Salil Mehta
wei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c| 115 +++-- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h| 1 + drivers/net/ethernet/hisilicon/hns3/hns3_

[PATCH net-next 06/12] net: hns3: Fixes the state to indicate client-type initialization

2018-05-25 Thread Salil Mehta
fixes it by use 3 bits to indicate the initialization state. Fixes: 38caee9d3ee8 ("net: hns3: Add support of the HNAE3 framework") Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet

[PATCH net-next 12/12] net: hns3: Fixes initalization of RoCE handle and makes it conditional

2018-05-25 Thread Salil Mehta
: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support") Reported-by: Xinwei Kong <kong.kongxin...@hisilicon.com> Reported-by: Zhou Wang <wangzh...@hisilicon.com> Signed-off-by: Lijun Ou <ouli...@huawei.com> Signed-off-by: Zhou Wang <wangzh...@hisilicon.com&

[PATCH net-next 10/12] net: hns3: Remove unused led control code

2018-05-25 Thread Salil Mehta
com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 1 - .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 109 - .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h| 2 - 3 files changed, 112 deletions(

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

2018-05-01 Thread Salil Mehta
-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 12 +++- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | 7 +-- 2 files changed, 12 insertions(+), 7 deletions(-)

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

2018-05-01 Thread Salil Mehta
ommand ethtool -S. 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 <wangx...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-o

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

2018-05-01 Thread Salil Mehta
qp to vport") Signed-off-by: Huazhong Tan <tanhuazh...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 7 +-- 1 file changed, 5 insertions(+), 2 dele

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

2018-05-01 Thread Salil Mehta
moving the error log, because it already return the error to the user space, so the user should be aware of the error. Signed-off-by: Yunsheng Lin <linyunsh...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- driver

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

2018-05-01 Thread Salil Mehta
off-by: Huazhong Tan <tanhuazh...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethe

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

2018-05-01 Thread Salil Mehta
nction vlan table, which 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 <linyunsh...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by:

[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 4/9] net: hns3: Fixes the error legs in hclge_init_ae_dev function

2018-05-01 Thread Salil Mehta
rt") Signed-off-by: Huazhong Tan <tanhuazh...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 55 +- 1 file changed, 34 insertions(+), 21

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

2018-05-01 Thread Salil Mehta
by: Huazhong Tan <tanhuazh...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c| 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/

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

2018-05-01 Thread Salil Mehta
wei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/

[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 <linyunsh...@huawei.com> 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 <linyunsh...@huawei.com> Signed-off-by: Peng Li <lipeng...@huawei.com> Signed-o

[PATCH net-next] net: hns3: converting spaces into tabs to avoid checkpatch.pl warning

2018-01-19 Thread Salil Mehta
Spaces were mistakenly used instead of tabs in some of the code related to reset functionality, which caused checkpatch.pl errors. These were missed earlier so fixing them now. Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 4 +

RE: [PATCH net-next 5/9] net: hns3: Fix for vf vlan delete failed problem

2018-08-14 Thread Salil Mehta
Hi Dave, > -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Monday, August 13, 2018 4:57 PM > To: Salil Mehta > Cc: Zhuangyuzeng (Yisen) ; lipeng (Y) > ; mehta.salil@gmail.com; > net...@vger.kernel.org; linux-kernel@vger

[PATCH net-next 8/9] net: hns3: Fix for using wrong mask and shift in hclge_get_ring_chain_from_mbx

2018-07-16 Thread Salil Mehta
ng Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_m

[PATCH net-next 6/9] net: hns3: Add support to re-initialize the hclge device

2018-03-22 Thread Salil Mehta
-by: Salil Mehta <salil.me...@huawei.com> --- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 106 ++--- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h | 14 +++ 2 files changed, 106 insertions(+), 14 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/

[PATCH net-next 7/9] net: hns3: Changes to support ARQ(Asynchronous Receive Queue)

2018-03-22 Thread Salil Mehta
still gets processed in context to mailbox interrupt. ARQ is important as VF reset introduces some new async messages like MBX_ASSERTING_RESET which adds up to the presssure on the responses for synchronousmessages and they timeout even more quickly. Signed-off-by: Salil Mehta <salil

[PATCH net-next 8/9] net: hns3: Add *Asserting Reset* mailbox message & handling in VF

2018-03-22 Thread Salil Mehta
the hardware to complete the reset and then further resets/tears its own stack. Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h | 1 + drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c | 12 2 files chang

[PATCH net-next 4/9] net: hns3: Add support to request VF Reset to PF

2018-03-22 Thread Salil Mehta
VF driver depends upon PF to eventually reset the hardware. This request is made using the mailbox command. This patch adds the required function to acheive above. Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- .../net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.

[PATCH net-next 9/9] net: hns3: Changes required in PF mailbox to support VF reset

2018-03-22 Thread Salil Mehta
the received VF message, inform the VF of assertion and reset the VF using cmdq interface. Signed-off-by: Salil Mehta <salil.me...@huawei.com> --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 2 +- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h| 1 + .../net/ethernet/hisilico

[PATCH net-next 3/9] net: hns3: Add VF Reset device state and its handling

2018-03-22 Thread Salil Mehta
resetting the stack/enet layer, which in turn means reinitializing the ring management/enet layer. Note: we would be adding support of 3. later as a separate patch. This decision should not affect VF reset as its event handling is generic in nature. Signed-off-by: Salil Mehta <salil.me...@huawe

[PATCH net-next 0/9] Add support of VF Reset to HNS3 VF driver

2018-03-22 Thread Salil Mehta
"[PATCH net-next 00/11] fix some bugs for HNS3 driver" Link: https://lkml.org/lkml/2018/3/21/72 Salil Mehta (9): net: hns3: Changes to make enet watchdog timeout func common for PF/VF net: hns3: Add VF Reset Service Task to support event handling net: hns3: Add VF Reset de

[PATCH net-next 5/9] net: hns3: Add support to reset the enet/ring mgmt layer

2018-03-22 Thread Salil Mehta
After VF driver knows that hardware reset has been performed successfully, it should proceed ahead and reset the enet layer. This primarily consists of bringing down interface, clearing TX/RX rings, disassociating vectors from ring etc. Signed-off-by: Salil Mehta <salil.me...@huawei.

[PATCH net-next 2/9] net: hns3: Add VF Reset Service Task to support event handling

2018-03-22 Thread Salil Mehta
VF reset would involve handling of different reset related events from the stack, physical function, mailbox etc. Reset service task would be used in servicing such reset event requests and later handling the hardware completions waits and initiating the stack resets. Signed-off-by: Salil Mehta

[PATCH net-next 1/9] net: hns3: Changes to make enet watchdog timeout func common for PF/VF

2018-03-22 Thread Salil Mehta
following: 1. Makes the existing watchdog timeout handler in enet layer generic i.e. suitable for both VF and PF and 2. Introduces the new reset event handler for the VF code. 3. Changes existing reset event handler of PF code to initialize the reset level Signed-off-by: Salil Mehta

[PATCH net-next 3/7] net: hns3: Add support to enable and disable hw errors

2018-10-19 Thread Salil Mehta
From: Shiju Jose This patch adds functions to enable and disable hw errors. Signed-off-by: Shiju Jose Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c | 22 ++ .../net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h | 2 ++ .../ethernet

[RFC PATCH 02/10] net: hns3: Add "queue info" query function

2018-11-09 Thread Salil Mehta
d:00.0: TX(1) RING PKTNUM: 0 root@(none)# Signed-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 122 + 1 file changed, 122 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c b/drivers/net/et

[RFC PATCH 01/10] net: hns3: Add debugfs framework registration

2018-11-09 Thread Salil Mehta
From: liuzhongzhu Add the debugfs framework to the driver and create a debugfs command interface for each device. example command: "echo queue info > cmd" Query the packet forwarding queue information. Signed-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- drivers/net/ether

[RFC PATCH 05/10] net: hns3: Add "tc config" info query function

2018-11-09 Thread Salil Mehta
e hns3 :7d:00.0: tc(3): no sp mode hns3 :7d:00.0: tc(4): no sp mode hns3 :7d:00.0: tc(5): no sp mode hns3 :7d:00.0: tc(6): no sp mode hns3 :7d:00.0: tc(7): no sp mode root@(none)# Signed-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilico

[RFC PATCH 09/10] net: hns3: Add "qos prio map" info query function

2018-11-09 Thread Salil Mehta
d:00.0: pri_1_to_tc: 0x0 hns3 :7d:00.0: pri_2_to_tc: 0x0 hns3 :7d:00.0: pri_3_to_tc: 0x0 hns3 :7d:00.0: pri_4_to_tc: 0x0 hns3 :7d:00.0: pri_5_to_tc: 0x0 hns3 :7d:00.0: pri_6_to_tc: 0x0 hns3 :7d:00.0: pri_7_to_tc: 0x0 root@(none)# Signed-off-by: liuzhongzhu Signed-off-by:

[RFC PATCH 10/10] net: hns3: Add "qos buffer" config info query function

2018-11-09 Thread Salil Mehta
d:00.0: rx_packet_buf_tc_7: 0x0 hns3 :7d:00.0: rx_share_buf: 0x1e0e root@(none)# Signed-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 1 + .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 115 + 2 files change

[PATCH net-next 4/7] net: hns3: Add support for rule query of flow director

2018-10-01 Thread Salil Mehta
From: Jian Shen This patch adds support for querying rule number and rule details by ethtool commands. Signed-off-by: Jian Shen Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hnae3.h| 6 + drivers/net/ethernet/hisilicon/hns3

[PATCH net-next 10/12] net: hns3: Clear client pointer when initialize client failed or unintialize finished

2018-09-19 Thread Salil Mehta
HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Jian Shen Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 25 ++-- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 33 -

[PATCH net-next 2/8] net: hns3: Add "queue info" query function

2018-11-19 Thread Salil Mehta
d:00.0: TX(1) RING PKTNUM: 0 root@(none)# Signed-off-by: liuzhongzhu Signed-off-by: Salil Mehta --- .../ethernet/hisilicon/hns3/hns3_debugfs.c| 122 ++ 1 file changed, 122 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c b/drivers/net/ethernet/his

[PATCH net-next 0/9] Add support of VF Reset to HNS3 VF driver

2018-03-22 Thread Salil Mehta
"[PATCH net-next 00/11] fix some bugs for HNS3 driver" Link: https://lkml.org/lkml/2018/3/21/72 Salil Mehta (9): net: hns3: Changes to make enet watchdog timeout func common for PF/VF net: hns3: Add VF Reset Service Task to support event handling net: hns3: Add VF Reset de

[PATCH net-next 5/9] net: hns3: Add support to reset the enet/ring mgmt layer

2018-03-22 Thread Salil Mehta
After VF driver knows that hardware reset has been performed successfully, it should proceed ahead and reset the enet layer. This primarily consists of bringing down interface, clearing TX/RX rings, disassociating vectors from ring etc. Signed-off-by: Salil Mehta --- .../ethernet/hisilicon/hns3

[PATCH net-next 7/9] net: hns3: Changes to support ARQ(Asynchronous Receive Queue)

2018-03-22 Thread Salil Mehta
still gets processed in context to mailbox interrupt. ARQ is important as VF reset introduces some new async messages like MBX_ASSERTING_RESET which adds up to the presssure on the responses for synchronousmessages and they timeout even more quickly. Signed-off-by: Salil Mehta --- drivers/net

[PATCH net-next 8/9] net: hns3: Add *Asserting Reset* mailbox message & handling in VF

2018-03-22 Thread Salil Mehta
the hardware to complete the reset and then further resets/tears its own stack. Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h | 1 + drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c | 12 2 files changed, 13 insertions(+) diff

[PATCH net-next 4/9] net: hns3: Add support to request VF Reset to PF

2018-03-22 Thread Salil Mehta
VF driver depends upon PF to eventually reset the hardware. This request is made using the mailbox command. This patch adds the required function to acheive above. Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 19 +++ 1 file changed, 19

[PATCH net-next 9/9] net: hns3: Changes required in PF mailbox to support VF reset

2018-03-22 Thread Salil Mehta
the received VF message, inform the VF of assertion and reset the VF using cmdq interface. Signed-off-by: Salil Mehta --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 2 +- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h| 1 + .../net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 42

[PATCH net-next 3/9] net: hns3: Add VF Reset device state and its handling

2018-03-22 Thread Salil Mehta
resetting the stack/enet layer, which in turn means reinitializing the ring management/enet layer. Note: we would be adding support of 3. later as a separate patch. This decision should not affect VF reset as its event handling is generic in nature. Signed-off-by: Salil Mehta --- drivers/net/eth

[PATCH net-next 2/9] net: hns3: Add VF Reset Service Task to support event handling

2018-03-22 Thread Salil Mehta
VF reset would involve handling of different reset related events from the stack, physical function, mailbox etc. Reset service task would be used in servicing such reset event requests and later handling the hardware completions waits and initiating the stack resets. Signed-off-by: Salil Mehta

[PATCH net-next 1/9] net: hns3: Changes to make enet watchdog timeout func common for PF/VF

2018-03-22 Thread Salil Mehta
following: 1. Makes the existing watchdog timeout handler in enet layer generic i.e. suitable for both VF and PF and 2. Introduces the new reset event handler for the VF code. 3. Changes existing reset event handler of PF code to initialize the reset level Signed-off-by: Salil Mehta

[PATCH net-next 6/9] net: hns3: Add support to re-initialize the hclge device

2018-03-22 Thread Salil Mehta
-by: Salil Mehta --- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 106 ++--- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h | 14 +++ 2 files changed, 106 insertions(+), 14 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net

[PATCH net-next 00/10] Misc. Bug Fixes and clean-ups for HNS3 Driver

2018-05-15 Thread Salil Mehta
This patch-set mainly introduces various bug fixes, cleanups and one very small enhancement to existing HN3 driver code. Fuyun Liang (7): net: hns3: Fix for deadlock problem occurring when unregistering ae_algo net: hns3: Fix for the null pointer problem occurring when initializing

[PATCH net-next 10/10] net: hns3: Fixes the missing PCI iounmap for various legs

2018-05-15 Thread Salil Mehta
will happen. pcim_iounmap need to be called in hclge_pci_uninit. 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/hns3p

[PATCH net-next 07/10] net: hns3: Fixes the back pressure setting When sriov is enabled

2018-05-15 Thread Salil Mehta
in Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c | 45 +++--- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h | 5 +++ 2 files changed, 45 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns

[PATCH net-next 09/10] net: hns3: Add support of .sriov_configure in HNS3 driver

2018-05-15 Thread Salil Mehta
sriov default. Signed-off-by: Peng Li Suggested-by: Zhou Wang Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 58 ++--- 1 file changed, 32 insertions(+), 26 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers

[PATCH net-next 06/10] net: hns3: Change return value in hnae3_register_client

2018-05-15 Thread Salil Mehta
value of hnae3_register_client form a variable value to a fixed value, makes the function always return ok. Signed-off-by: Fuyun Liang Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hnae3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH net-next 08/10] net: hns3: Fix for fiber link up problem

2018-05-15 Thread Salil Mehta
9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support") Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH net-next 05/10] net: hns3: Change return type of hnae3_register_ae_algo

2018-05-15 Thread Salil Mehta
to define return type as int. This patch changes the return type of hnae3_register_ae_algo from int to void. Signed-off-by: Fuyun Liang Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hnae3.c | 4 +--- drivers/net/ethernet/hisilicon/hns3

[PATCH net-next 03/10] net: hns3: Add a check for client instance init state

2018-05-15 Thread Salil Mehta
Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hnae3.c | 15 --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 1 + 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.c b/drivers/net/ethernet/hisilicon/hns3/hna

[PATCH net-next 02/10] net: hns3: Fix for the null pointer problem occurring when initializing ae_dev failed

2018-05-15 Thread Salil Mehta
d-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hnae3.c | 6 ++ drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 5 + drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 6 ++ 3 files changed, 9 insertions(+

[PATCH net-next 04/10] net: hns3: Change return type of hnae3_register_ae_dev

2018-05-15 Thread Salil Mehta
in this function. This patch changes the return type of hnae3_register_ae_dev from int to void. Signed-off-by: Fuyun Liang Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hnae3.c | 5 + drivers/net/ethernet/hisilicon/hns3/hnae3.h | 2 +- drivers

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