[dpdk-dev] [PATCH v1 15/15] net/hinic: add hinic PMD doc files

2019-09-06 Thread Ziyang Xuan
From: Xiaoyun Wang Add doc files about new features and modification. Signed-off-by: Ziyang Xuan --- doc/guides/nics/features/hinic.ini | 12 +++- doc/guides/nics/hinic.rst | 6 ++ doc/guides/rel_notes/release_19_11.rst | 9 + 3 files changed, 26

[dpdk-dev] [PATCH v1 14/15] net/hinic: support LRO offload

2019-09-06 Thread Ziyang Xuan
From: Xiaoyun Wang This patch supports LRO offload. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/hinic_pmd_ethdev.c | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/drivers/net/hinic/hinic_pmd_ethdev.c b/drivers/net/hinic/hinic_pmd_ethdev.c

[dpdk-dev] [PATCH v1 13/15] net/hinic: support inner L3 checksum offload

2019-09-06 Thread Ziyang Xuan
From: Xiaoyun Wang This patch supports inner L3 checksum offload. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/hinic_pmd_tx.c | 192 --- 1 file changed, 121 insertions(+), 71 deletions(-) diff --git a/drivers/net/hinic/hinic_pmd_tx.c b/drivers/net

[dpdk-dev] [PATCH v1 12/15] net/hinic: set link down and up

2019-09-06 Thread Ziyang Xuan
From: Xiaoyun Wang This patch supports setting link down and up. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_cmd.h| 2 + drivers/net/hinic/base/hinic_pmd_niccfg.c | 28 drivers/net/hinic/base/hinic_pmd_niccfg.h | 13 ++ drivers/net/hinic

[dpdk-dev] [PATCH v1 11/15] net/hinic: flush fdir filter

2019-09-06 Thread Ziyang Xuan
From: Xiaoyun Wang Supports to flush fdir filter. Destroy all flow rules associated with a port on hinic. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_niccfg.c | 11 +- drivers/net/hinic/hinic_pmd_ethdev.c | 16 ++ drivers/net/hinic/hinic_pmd_ethdev.h | 3

[dpdk-dev] [PATCH v1 10/15] net/hinic: create and destroy fdir filter

2019-09-06 Thread Ziyang Xuan
From: Xiaoyun Wang Supports to create and destroy ntuple filter. The filter rule includes LACP,ARP and ICMP packet type. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/hinic_pmd_ethdev.h | 17 +- drivers/net/hinic/hinic_pmd_flow.c | 424 +-- 2 files

[dpdk-dev] [PATCH v1 09/15] net/hinic: create and destroy ntuple filter

2019-09-06 Thread Ziyang Xuan
From: Xiaoyun Wang Supports to create and destroy ntuple filter. The filter rule includes BGP and VRRP packet type. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/hinic_pmd_ethdev.h | 72 drivers/net/hinic/hinic_pmd_flow.c | 699 ++- 2 files changed

[dpdk-dev] [PATCH v1 08/15] net/hinic: add fdir validate flow operations

2019-09-06 Thread Ziyang Xuan
From: Xiaoyun Wang This patch is to validate the filter rules, which includes ntuple filter, ethertype filter and fdir filter. The packets type that supported are BGP,VRRP,LACP,ARP and ICMP. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/Makefile |1 + drivers/net/hinic

[dpdk-dev] [PATCH v1 07/15] net/hinic: add fdir config interface

2019-09-06 Thread Ziyang Xuan
From: Xiaoyun Wang Add fdir config operation, including set fdir filter, normal filter, set and clear fdir tcam. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_cmd.h| 2 + drivers/net/hinic/base/hinic_pmd_niccfg.c | 157 ++ drivers/net/hinic

[dpdk-dev] [PATCH v1 06/15] net/hinic: add unicast and multicast MAC set

2019-09-06 Thread Ziyang Xuan
From: Xiaoyun Wang This patch adds unicast and multicast set interfaces. Application can add or remove unicast MAC address, also can set multicast MAC address, tha maximum multicast list size is 2048. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_niccfg.c | 37

[dpdk-dev] [PATCH v1 05/15] net/hinic: add allmulticast mode and MTU set

2019-09-06 Thread Ziyang Xuan
From: Xiaoyun Wang When enable allmulticast mode, all multicast packets can be received. Add mtu set, the range of MTU is from 256 to 9600. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/hinic_pmd_ethdev.c | 99 +++- drivers/net/hinic/hinic_pmd_ethdev.h | 3

[dpdk-dev] [PATCH v1 04/15] net/hinic: add VLAN filter and offload

2019-09-06 Thread Ziyang Xuan
From: Xiaoyun Wang This patch adds VLAN filter and VLAN offload. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_cmd.h| 1 + drivers/net/hinic/base/hinic_pmd_niccfg.c | 119 ++ drivers/net/hinic/base/hinic_pmd_niccfg.h | 31 + drivers/net/hinic

[dpdk-dev] [PATCH v1 03/15] net/hinic: add VF PMD operation interfaces

2019-09-06 Thread Ziyang Xuan
From: Xiaoyun Wang This patch adds VF PMD operation interfaces to support SRIOV. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/hinic_pmd_ethdev.c | 236 +++ 1 file changed, 159 insertions(+), 77 deletions(-) diff --git a/drivers/net/hinic/hinic_pmd_ethdev.c

[dpdk-dev] [PATCH v1 02/15] net/hinic/base: add HW interfaces of SRIOV

2019-09-06 Thread Ziyang Xuan
From: Xiaoyun Wang This patch makes some HW interfaces support SRIOV, including: init hwdev, set port state, get default cos, vf dma attribute table, vf txrx flush and so on. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_compat.h | 33 --- drivers/net/hinic/base

[dpdk-dev] [PATCH v1 01/15] net/hinic/base: add mbox command channel for SRIOV

2019-09-06 Thread Ziyang Xuan
From: Xiaoyun Wang Add mbox command channel for SRIOV, which is used to communicate between VF and VF, VF and PF. This patch introduces data structures, initialization, interfaces and commands of mbox channel. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/Makefile | 1

[dpdk-dev] [PATCH v1 00/15] Add advanced features for Huawei hinic pmd

2019-09-06 Thread Ziyang Xuan
This patch set adds advanced features for Huawei hinic pmd, such as VLAN filter and VLAN offload, SR-IOV, FW version get, Flow director for LACP, VRRP, BGP and so on. Xiaoyun Wang (15): net/hinic/base: add mbox command channel for SRIOV net/hinic/base: add HW interfaces of SRIOV net/hinic:

[dpdk-dev] [PATCH v1 1/1] net/hinic: solve lgtm errors reporting

2019-07-15 Thread Ziyang Xuan
There are some implicit downcast errors in TX offload information parsing. This patch is to solve these errors. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/hinic_pmd_tx.h | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/hinic/hinic_pmd_tx.h b/drivers

[dpdk-dev] [PATCH v2 1/1] net/hinic: use mutex replace spin lock

2019-07-04 Thread Ziyang Xuan
Using spin lock to protect critical resources of sending mgmt messages. This will make high CPU usage for rte_delay_ms when sending mgmt messages frequently. We can use mutex to protect the critical resources and usleep to reduce CPU usage while keep functioning properly. Signed-off-by: Ziyang

[dpdk-dev] [PATCH v1 1/1] net/hinic: use mutex replace spin lock

2019-07-03 Thread Ziyang Xuan
Using spin lock to protect critical resources of sending mgmt messages. This will make high CPU usage when sending mgmt messages frequently. We can use mutex to protect the critical resources to reduce CPU usage while keep functioning properly. Signed-off-by: Ziyang Xuan --- drivers/net/hinic

[dpdk-dev] [PATCH 1/1] net/hinic: solve compilation issues

2019-06-27 Thread Ziyang Xuan
This patch fixes ci/Intel-compilation issues for hinic PMD on 32-bits platform. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/Makefile | 18 ++ drivers/net/hinic/base/meson.build | 12 2 files changed, 30 insertions(+) diff --git a/drivers/net/hinic

[dpdk-dev] [PATCH v6 15/15] net/hinic: add RSS stats promiscuous ops

2019-06-27 Thread Ziyang Xuan
Add RSS, stats, promiscuous ops related function codes. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/hinic_pmd_ethdev.c | 735 +++ 1 file changed, 735 insertions(+) diff --git a/drivers/net/hinic/hinic_pmd_ethdev.c b/drivers/net/hinic/hinic_pmd_ethdev.c index

[dpdk-dev] [PATCH v6 14/15] net/hinic: add Rx/Tx package burst

2019-06-27 Thread Ziyang Xuan
This patch add package sending and receiving function codes. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/hinic_pmd_ethdev.c |4 + drivers/net/hinic/hinic_pmd_rx.c | 451 +++ drivers/net/hinic/hinic_pmd_tx.c | 1088 ++ 3 files changed, 1543

[dpdk-dev] [PATCH v6 12/15] net/hinic: add device initailization

2019-06-27 Thread Ziyang Xuan
Add device initialization function codes. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/Makefile | 2 + drivers/net/hinic/hinic_pmd_ethdev.c | 700 ++- drivers/net/hinic/hinic_pmd_rx.c | 178 +++ drivers/net/hinic/hinic_pmd_rx.h | 128

[dpdk-dev] [PATCH v6 13/15] net/hinic: add start stop close queue ops

2019-06-27 Thread Ziyang Xuan
Add dev_start, dev_stop, link_update, queue_setup, queue_release related function codes. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/hinic_pmd_ethdev.c | 684 +++ drivers/net/hinic/hinic_pmd_rx.c | 420 drivers/net/hinic/hinic_pmd_tx.c | 68

[dpdk-dev] [PATCH v6 10/15] net/hinic/base: add various headers

2019-06-27 Thread Ziyang Xuan
Add various headers that define mgmt commands, cmdq commands and basic defines for use in the code. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_compat.h | 256 ++ drivers/net/hinic/base/hinic_pmd_cmd.h | 453 + 2 files changed, 709 insertions

[dpdk-dev] [PATCH v6 11/15] net/hinic: add hinic PMD build and doc files

2019-06-27 Thread Ziyang Xuan
Add build and doc files along with hinic_pmd_ethdev.c which just includes PMD register and log initialization for compilation. Signed-off-by: Ziyang Xuan --- MAINTAINERS | 8 + config/common_base | 5 + config/common_linux

[dpdk-dev] [PATCH v6 09/15] net/hinic/base: add context and work queue support

2019-06-27 Thread Ziyang Xuan
Work queue is used for cmdq and tx/rx buff description. Nic business needs to configure cmdq context and txq/rxq context. This patch adds data structures and function codes for work queue and context. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_nicio.c | 894

[dpdk-dev] [PATCH v6 08/15] net/hinic/base: add NIC business configurations

2019-06-27 Thread Ziyang Xuan
The items of configurations and queries for NIC business include MAC, VLAN, MTU, RSS and so on. These configurations and queries are handled by mgmt module. This patch introduces related data structures and function codes. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_niccfg.c

[dpdk-dev] [PATCH v6 07/15] net/hinic/base: add code about hardware operation

2019-06-27 Thread Ziyang Xuan
Add code for hardware operation, including configuration, query and so on. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_cfg.c | 208 drivers/net/hinic/base/hinic_pmd_cfg.h | 145 +++ drivers/net/hinic/base/hinic_pmd_hwdev.c | 1414 ++ drivers

[dpdk-dev] [PATCH v6 06/15] net/hinic/base: add mgmt module function code

2019-06-27 Thread Ziyang Xuan
Mgmt module is a kinkd of administration module for the chip. It is responsible for handling administration command from host. It uses api channel. This patch adds related data structures, packaged interfaces and function codes. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base

[dpdk-dev] [PATCH v6 05/15] net/hinic/base: add eq mechanism function code

2019-06-27 Thread Ziyang Xuan
Eqs include aeq and ceq. PMD supports aeq only. Aeq is a kind of queue for mgmt asynchronous message and mgmt command response message. This patch introduces data structures, initialization, and related interfaces about aeq. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_eqs.c

[dpdk-dev] [PATCH v6 04/15] net/hinic/base: add support for cmdq mechanism

2019-06-27 Thread Ziyang Xuan
Micocode is named ucode in Hi1822. Its main responsibility is data transmission and reception. But it can also handle some administration works. It uses cmdq mechanism. This patch introduces data structures, initialization, interfaces, and commands sending functions of cmdq. Signed-off-by: Ziyang

[dpdk-dev] [PATCH v6 03/15] net/hinic/base: add API command channel code

2019-06-27 Thread Ziyang Xuan
API command channel is for communicating with mgmt module of chip. This patch introduces data structures, initialization, interfaces, and commands sending functions of API command channel. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_api_cmd.c | 1042

[dpdk-dev] [PATCH v6 02/15] net/hinic/base: add HW interfaces of bar operation

2019-06-27 Thread Ziyang Xuan
This patch adds some HW interfaces for bar operatioin interfaces, including: mapped bar address geeting, HW attributes getting, msi-x reg operation, function type getting and so on. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_hwif.c | 474 drivers

[dpdk-dev] [PATCH v6 01/15] net/hinic/base: add HW registers definition

2019-06-27 Thread Ziyang Xuan
Add HW registers definition header file for Hi1822 NIC. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_csr.h | 160 + 1 file changed, 160 insertions(+) create mode 100644 drivers/net/hinic/base/hinic_csr.h diff --git a/drivers/net/hinic/base

[dpdk-dev] [PATCH v6 00/15] A new net PMD - hinic

2019-06-27 Thread Ziyang Xuan
11/15, and "hinic_pmd_rx.h"/"hinic_pmd_tx.h" to patch 12/15 Ziyang Xuan (15): net/hinic/base: add HW registers definition net/hinic/base: add HW interfaces of bar operation net/hinic/base: add API command channel code net/hinic/base: add support for cmdq mechanism net/hini

[dpdk-dev] [PATCH v5 14/15] net/hinic: add tx/rx package burst

2019-06-19 Thread Ziyang Xuan
This patch add package sending and receiving function codes. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/hinic_pmd_ethdev.c |4 + drivers/net/hinic/hinic_pmd_rx.c | 439 +++ drivers/net/hinic/hinic_pmd_tx.c | 1082 ++ 3 files changed, 1525

[dpdk-dev] [PATCH v5 15/15] net/hinic: add rss stats promisc ops

2019-06-19 Thread Ziyang Xuan
Add rss, stats, promiscuous ops related function codes. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/hinic_pmd_ethdev.c | 735 +++ 1 file changed, 735 insertions(+) diff --git a/drivers/net/hinic/hinic_pmd_ethdev.c b/drivers/net/hinic/hinic_pmd_ethdev.c index

[dpdk-dev] [PATCH v5 13/15] net/hinic: add start stop close queue ops

2019-06-19 Thread Ziyang Xuan
Add dev_start, dev_stop, link_update, queue_setup, queue_release related function codes. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/hinic_pmd_ethdev.c | 684 +++ drivers/net/hinic/hinic_pmd_rx.c | 420 drivers/net/hinic/hinic_pmd_tx.c | 68

[dpdk-dev] [PATCH v5 12/15] net/hinic: add device initailization

2019-06-19 Thread Ziyang Xuan
Add device initialization function codes. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/Makefile | 2 + drivers/net/hinic/hinic_pmd_ethdev.c | 700 ++- drivers/net/hinic/hinic_pmd_rx.c | 178 +++ drivers/net/hinic/hinic_pmd_tx.c | 92

[dpdk-dev] [PATCH v5 11/15] net/hinic: add hinic PMD build and doc files

2019-06-19 Thread Ziyang Xuan
Add build and doc files along with hinic_pmd_ethdev.c which just includes PMD register and log initialization for compilation. Signed-off-by: Ziyang Xuan --- MAINTAINERS | 9 + config/common_base | 5 + config/common_linux

[dpdk-dev] [PATCH v5 10/15] net/hinic: add various headers

2019-06-19 Thread Ziyang Xuan
Add various headers that define mgmt commands, cmdq commands, rx data structures, tx data structures, private adapter data structures and basic defines for use in the code. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_compat.h | 256 ++ drivers/net/hinic/base

[dpdk-dev] [PATCH v5 09/15] net/hinic/base: add context and work queue support

2019-06-19 Thread Ziyang Xuan
Work queue is used for cmdq and tx/rx buff description. Nic business needs to configure cmdq context and txq/rxq context. This patch adds data structures and function codes for work queue and context. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_nicio.c | 894

[dpdk-dev] [PATCH v5 08/15] net/hinic/base: add nic business configurations

2019-06-19 Thread Ziyang Xuan
The items of configurations and queries for nic business include MAC, VLAN, MTU, RSS and so on. These configurations and queries are handled by mgmt module. This patch introduces related data structures and function codes. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_niccfg.c

[dpdk-dev] [PATCH v5 07/15] net/hinic/base: add code about hardware operation

2019-06-19 Thread Ziyang Xuan
Add code for hardware operation, including configuration, query and so on. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_cfg.c | 208 drivers/net/hinic/base/hinic_pmd_cfg.h | 145 +++ drivers/net/hinic/base/hinic_pmd_hwdev.c | 1414 ++ drivers

[dpdk-dev] [PATCH v5 06/15] net/hinic/base: add mgmt module function code

2019-06-19 Thread Ziyang Xuan
Mgmt module is a kinkd of administration module for the chip. It is responsible for handling administration command from host. It uses api channel. This patch adds related data structures, packaged interfaces and function codes. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base

[dpdk-dev] [PATCH v5 05/15] net/hinic/base: add eq mechanism function code

2019-06-19 Thread Ziyang Xuan
Eqs include aeq and ceq. PMD supports aeq only. Aeq is a kind of queue for mgmt asynchronous message and mgmt command response message. This patch introduces data structures, initialization, and related interfaces about aeq. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_eqs.c

[dpdk-dev] [PATCH v5 04/15] net/hinic/base: add support for cmdq mechanism

2019-06-19 Thread Ziyang Xuan
Micocode is named ucode in Hi1822. Its main responsibility is data transmission and reception. But it can also handle some administration works. It uses cmdq mechanism. This patch introduces data structures, initialization, interfaces, and commands sending functions of cmdq. Signed-off-by: Ziyang

[dpdk-dev] [PATCH v5 03/15] net/hinic/base: add api command channel code

2019-06-19 Thread Ziyang Xuan
Api command channel is for communicating with mgmt module of chip. This patch introduces data structures, initialization, interfaces, and commands sending functions of api command channel. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_api_cmd.c | 1042

[dpdk-dev] [PATCH v5 02/15] net/hinic/base: add HW interfaces of bar operation

2019-06-19 Thread Ziyang Xuan
This patch adds some HW interfaces for bar operatioin interfaces, including: mapped bar address geeting, HW attributes getting, msi-x reg operation, function type getting and so on. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_hwif.c | 474 drivers

[dpdk-dev] [PATCH v5 01/15] net/hinic/base: add HW registers definition

2019-06-19 Thread Ziyang Xuan
Add HW registers definition header file for Hi1822 NIC. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_csr.h | 160 + 1 file changed, 160 insertions(+) create mode 100644 drivers/net/hinic/base/hinic_csr.h diff --git a/drivers/net/hinic/base

[dpdk-dev] [PATCH v5 00/15] A new net PMD - hinic

2019-06-19 Thread Ziyang Xuan
and delete unnecessary files - Remove rte_panic - Subdivided patches Ziyang Xuan (15): net/hinic/base: add HW registers definition net/hinic/base: add HW interfaces of bar operation net/hinic/base: add api command channel code net/hinic/base: add support for cmdq mechanism net/hinic/base

[dpdk-dev] [PATCH v4 09/11] net/hinic: add RX module

2019-06-06 Thread Ziyang Xuan
Add code for RX module. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/Makefile | 2 +- drivers/net/hinic/hinic_pmd_rx.c | 902 +++ drivers/net/hinic/meson.build| 2 +- 3 files changed, 904 insertions(+), 2 deletions(-) create mode 100644 drivers/net

[dpdk-dev] [PATCH v4 07/11] net/hinic/base: add various headers

2019-06-06 Thread Ziyang Xuan
Add various headers that define mgmt commands, cmdq commands, rx data structures, tx data structures and basic defines for use in the code. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_compat.h | 239 drivers/net/hinic/base/hinic_port_cmd.h | 483

[dpdk-dev] [PATCH v4 03/11] net/hinic/base: add mgmt module interactive code

2019-06-06 Thread Ziyang Xuan
Add the structures, functionalities for interaction with mgmt module. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_hw_mgmt.h| 85 +++ drivers/net/hinic/base/hinic_pmd_mgmt.c | 617 ++ drivers/net/hinic/base/hinic_pmd_mgmt.h | 125 .../net

[dpdk-dev] [PATCH v4 04/11] net/hinic/base: add code about hardware operation

2019-06-06 Thread Ziyang Xuan
Add code for hardware operation, including configuration, query and so on. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_cfg.c | 269 drivers/net/hinic/base/hinic_pmd_cfg.h | 264 drivers/net/hinic/base/hinic_pmd_hw.h| 49 + drivers/net/hinic/base

[dpdk-dev] [PATCH v4 02/11] net/hinic/base: add command channels code

2019-06-06 Thread Ziyang Xuan
Admin channels include api channel and command queue, Api channel is for mgmt module. And command queue is for ucode module. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_api_cmd.c | 1037 drivers/net/hinic/base/hinic_pmd_api_cmd.h | 271 + drivers

[dpdk-dev] [PATCH v4 01/11] net/hinic/base: add registers for Huawei Hi1822 NIC

2019-06-06 Thread Ziyang Xuan
Add the registers that comprise the Huawei Hi1822 NIC. There is no functionality in this patch. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_csr.h | 164 + 1 file changed, 164 insertions(+) create mode 100644 drivers/net/hinic/base/hinic_csr.h diff

[dpdk-dev] [PATCH v4 11/11] net/hinic: add support for basic device operations

2019-06-06 Thread Ziyang Xuan
Add hinic PMD initialization and ethernet operatioins code. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/hinic_pmd_ethdev.c| 2125 +++ drivers/net/hinic/rte_pmd_hinic_version.map |4 + 2 files changed, 2129 insertions(+) create mode 100644 drivers/net/hinic

[dpdk-dev] [PATCH v4 10/11] net/hinic: add TX module

2019-06-06 Thread Ziyang Xuan
Add code for TX module Signed-off-by: Ziyang Xuan --- drivers/net/hinic/Makefile |2 +- drivers/net/hinic/hinic_pmd_tx.c | 1070 ++ drivers/net/hinic/meson.build|2 +- 3 files changed, 1072 insertions(+), 2 deletions(-) create mode 100644 drivers

[dpdk-dev] [PATCH v4 08/11] net/hinic: add hinic PMD build and doc files

2019-06-06 Thread Ziyang Xuan
Add build and doc files, and common code files. Signed-off-by: Ziyang Xuan --- MAINTAINERS | 9 + config/common_base | 5 + config/common_linux | 5 + config/defconfig_arm-armv7a-linuxapp-gcc | 1

[dpdk-dev] [PATCH v4 06/11] net/hinic/base: add code for nic business

2019-06-06 Thread Ziyang Xuan
Add code for nic business, including qps structures, qps configuration, wqs configuration for qps, nic business configuration functionalities. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_nic.h| 85 ++ drivers/net/hinic/base/hinic_pmd_niccfg.c | 1376

[dpdk-dev] [PATCH v4 05/11] net/hinic/base: add eqs and context code

2019-06-06 Thread Ziyang Xuan
Add code for eq. Aeq is a kind queue for mgmt asynchronous message and mgmt command response message. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_ctx_def.h | 184 ++ drivers/net/hinic/base/hinic_pmd_dpdev.h | 146 + drivers/net/hinic/base/hinic_pmd_eqs.c | 725

[dpdk-dev] [PATCH v4 00/11] A new net PMD - hinic

2019-06-06 Thread Ziyang Xuan
errors - Fix i686-native-linuxapp-gcc compilation errors v4: - Update doc hinic.ini and hini.rst - Remove x86-32, i686, BSD, Power8, ARMv7 compilations - Fit to newest IPV4 and IPV6 uppercase Ziyang Xuan (11): net/hinic/base: add registers for Huawei Hi1822 NIC net/hinic/base: add command

[dpdk-dev] [PATCH v3 11/11] net/hinic: add support for basic device operations

2019-06-03 Thread Ziyang Xuan
Add hinic PMD initialization and ethernet operatioins code. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/hinic_pmd_ethdev.c| 2125 +++ drivers/net/hinic/rte_pmd_hinic_version.map |4 + 2 files changed, 2129 insertions(+) create mode 100644 drivers/net/hinic

[dpdk-dev] [PATCH v3 10/11] net/hinic: add TX module

2019-06-03 Thread Ziyang Xuan
Add code for TX module Signed-off-by: Ziyang Xuan --- drivers/net/hinic/Makefile |2 +- drivers/net/hinic/hinic_pmd_tx.c | 1070 ++ drivers/net/hinic/meson.build|2 +- 3 files changed, 1072 insertions(+), 2 deletions(-) create mode 100644 drivers

[dpdk-dev] [PATCH v3 08/11] net/hinic: add hinic PMD build and doc files

2019-06-03 Thread Ziyang Xuan
Add build and doc files, and common code files. Signed-off-by: Ziyang Xuan --- MAINTAINERS | 9 + config/common_base | 5 + doc/guides/nics/features/hinic.ini | 32 ++ doc/guides/nics/hinic.rst| 49 ++ drivers/net/Makefile

[dpdk-dev] [PATCH v3 09/11] net/hinic: add RX module

2019-06-03 Thread Ziyang Xuan
Add code for RX module. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/Makefile | 2 +- drivers/net/hinic/hinic_pmd_rx.c | 902 +++ drivers/net/hinic/meson.build| 2 +- 3 files changed, 904 insertions(+), 2 deletions(-) create mode 100644 drivers/net

[dpdk-dev] [PATCH v3 07/11] net/hinic/base: add various headers

2019-06-03 Thread Ziyang Xuan
Add various headers that define mgmt commands, cmdq commands, rx data structures, tx data structures and basic defines for use in the code. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_compat.h | 239 drivers/net/hinic/base/hinic_port_cmd.h | 483

[dpdk-dev] [PATCH v3 06/11] net/hinic/base: add code for nic business

2019-06-03 Thread Ziyang Xuan
Add code for nic business, including qps structures, qps configuration, wqs configuration for qps, nic business configuration functionalities. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_nic.h| 85 ++ drivers/net/hinic/base/hinic_pmd_niccfg.c | 1376

[dpdk-dev] [PATCH v3 05/11] net/hinic/base: add eqs and context code

2019-06-03 Thread Ziyang Xuan
Add code for eq. Aeq is a kind queue for mgmt asynchronous message and mgmt command response message. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_ctx_def.h | 184 ++ drivers/net/hinic/base/hinic_pmd_dpdev.h | 146 + drivers/net/hinic/base/hinic_pmd_eqs.c | 725

[dpdk-dev] [PATCH v3 04/11] net/hinic/base: add code about hardware operation

2019-06-03 Thread Ziyang Xuan
Add code for hardware operation, including configuration, query and so on. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_cfg.c | 269 drivers/net/hinic/base/hinic_pmd_cfg.h | 264 drivers/net/hinic/base/hinic_pmd_hw.h| 49 + drivers/net/hinic/base

[dpdk-dev] [PATCH v3 03/11] net/hinic/base: add mgmt module interactive code

2019-06-03 Thread Ziyang Xuan
Add the structures, functionalities for interaction with mgmt module. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_hw_mgmt.h| 85 +++ drivers/net/hinic/base/hinic_pmd_mgmt.c | 617 ++ drivers/net/hinic/base/hinic_pmd_mgmt.h | 125 .../net

[dpdk-dev] [PATCH v3 01/11] net/hinic/base: add registers for Huawei Hi1822 NIC

2019-06-03 Thread Ziyang Xuan
Add the registers that comprise the Huawei Hi1822 NIC. There is no functionality in this patch. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_csr.h | 164 + 1 file changed, 164 insertions(+) create mode 100644 drivers/net/hinic/base/hinic_csr.h diff

[dpdk-dev] [PATCH v3 02/11] net/hinic/base: add command channels code

2019-06-03 Thread Ziyang Xuan
Admin channels include api channel and command queue, Api channel is for mgmt module. And command queue is for ucode module. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_api_cmd.c | 1037 drivers/net/hinic/base/hinic_pmd_api_cmd.h | 271 + drivers

[dpdk-dev] [PATCH v3 00/11] A new net PMD - hinic

2019-06-03 Thread Ziyang Xuan
errors - Fix i686-native-linuxapp-gcc compilation errors Ziyang Xuan (11): net/hinic/base: add registers for Huawei Hi1822 NIC net/hinic/base: add command channels code net/hinic/base: add mgmt module interactive code net/hinic/base: add code about hardware operation net/hinic/base: add

[dpdk-dev] [PATCH v2 09/11] net/hinic: add RX module

2019-05-28 Thread Ziyang Xuan
Add code for RX module. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/Makefile | 2 +- drivers/net/hinic/hinic_pmd_rx.c | 919 +++ 2 files changed, 920 insertions(+), 1 deletion(-) create mode 100644 drivers/net/hinic/hinic_pmd_rx.c diff --git a/drivers

[dpdk-dev] [PATCH v2 10/11] net/hinic: add TX module

2019-05-28 Thread Ziyang Xuan
Add code for TX module Signed-off-by: Ziyang Xuan --- drivers/net/hinic/Makefile |2 +- drivers/net/hinic/hinic_pmd_tx.c | 1070 ++ 2 files changed, 1071 insertions(+), 1 deletion(-) create mode 100644 drivers/net/hinic/hinic_pmd_tx.c diff --git a/drivers

[dpdk-dev] [PATCH v2 11/11] net/hinic: add support for basic device operations

2019-05-28 Thread Ziyang Xuan
Add hinic PMD initialization and ethernet operatioins code. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/Makefile |2 +- drivers/net/hinic/hinic_pmd_ethdev.c| 2157 +++ drivers/net/hinic/rte_pmd_hinic_version.map |4 + 3 files changed, 2162

[dpdk-dev] [PATCH v2 08/11] net/hinic: add hinic PMD build and doc files

2019-05-28 Thread Ziyang Xuan
Add build and doc files, and common code files. Signed-off-by: Ziyang Xuan --- MAINTAINERS | 9 + config/common_base | 5 + doc/guides/nics/features/hinic.ini | 32 ++ doc/guides/nics/hinic.rst | 49 ++ drivers/net/Makefile

[dpdk-dev] [PATCH v2 07/11] net/hinic/base: add various headers

2019-05-28 Thread Ziyang Xuan
Add various headers that define mgmt commands, cmdq commands, rx data structures, tx data structures and basic defines for use in the code. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_compat.h | 252 drivers/net/hinic/base/hinic_port_cmd.h | 494

[dpdk-dev] [PATCH v2 06/11] net/hinic/base: add code for nic business

2019-05-28 Thread Ziyang Xuan
Add code for nic business, including qps structures, qps configuration, wqs configuration for qps, nic business configuration functionalities. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_nic.h| 85 ++ drivers/net/hinic/base/hinic_pmd_niccfg.c | 1408

[dpdk-dev] [PATCH v2 05/11] net/hinic/base: add eqs and context code

2019-05-28 Thread Ziyang Xuan
Add code for eq. Aeq is a kind queue for mgmt asynchronous message and mgmt command response message. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_ctx_def.h | 195 ++ drivers/net/hinic/base/hinic_pmd_dpdev.h | 149 + drivers/net/hinic/base/hinic_pmd_eqs.c | 725

[dpdk-dev] [PATCH v2 04/11] net/hinic/base: add code about hardware operation

2019-05-28 Thread Ziyang Xuan
Add code for hardware operation, including configuration, query and so on. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_cfg.c | 269 drivers/net/hinic/base/hinic_pmd_cfg.h | 264 drivers/net/hinic/base/hinic_pmd_hw.h| 49 + drivers/net/hinic/base

[dpdk-dev] [PATCH v2 03/11] net/hinic/base: add mgmt module interactive code

2019-05-28 Thread Ziyang Xuan
Add the structures, functionalities for interaction with mgmt module. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_hw_mgmt.h| 85 +++ drivers/net/hinic/base/hinic_pmd_mgmt.c | 619 ++ drivers/net/hinic/base/hinic_pmd_mgmt.h | 125 .../net

[dpdk-dev] [PATCH v2 02/11] net/hinic/base: add command channels code

2019-05-28 Thread Ziyang Xuan
Admin channels include api channel and command queue, Api channel is for mgmt module. And command queue is for ucode module. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_api_cmd.c | 1040 drivers/net/hinic/base/hinic_pmd_api_cmd.h | 271 + drivers

[dpdk-dev] [PATCH v2 01/11] net/hinic/base: add registers for Huawei Hi1822 NIC

2019-05-28 Thread Ziyang Xuan
Add the registers that comprise the Huawei Hi1822 NIC. There is no functionality in this patch. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_csr.h | 164 + 1 file changed, 164 insertions(+) create mode 100644 drivers/net/hinic/base/hinic_csr.h diff

[dpdk-dev] [PATCH v2 00/11] A new net PMD - hinic

2019-05-28 Thread Ziyang Xuan
, configure, info get. 2. RX/TX queue operations: setup/release, start/stop. 3. RX/TX. Stats: 1. statistics and extended statistics. --- v2: - Fix arm64 compilation issue. - Fix some checkpatch checks issues - Fix patches thread issue. - Fit to the newest rte_ prefix patch Ziyang Xuan (11): net

[dpdk-dev] [PATCH 11/11] net/hinic: add support for basic device operations

2019-05-21 Thread Ziyang Xuan
Add hinic PMD initialization and ethernet operatioins code. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/Makefile |2 +- drivers/net/hinic/hinic_pmd_ethdev.c| 2157 +++ drivers/net/hinic/rte_pmd_hinic_version.map |4 + 3 files changed

[dpdk-dev] [PATCH 10/11] net/hinic: add TX module

2019-05-21 Thread Ziyang Xuan
Add code for TX module Signed-off-by: Ziyang Xuan --- drivers/net/hinic/Makefile |2 +- drivers/net/hinic/hinic_pmd_tx.c | 1036 ++ 2 files changed, 1037 insertions(+), 1 deletion(-) create mode 100644 drivers/net/hinic/hinic_pmd_tx.c diff --git a

[dpdk-dev] [PATCH 09/11] net/hinic: add RX module

2019-05-21 Thread Ziyang Xuan
Add code for RX module. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/Makefile | 2 +- drivers/net/hinic/hinic_pmd_rx.c | 906 +++ 2 files changed, 907 insertions(+), 1 deletion(-) create mode 100644 drivers/net/hinic/hinic_pmd_rx.c diff --git a

[dpdk-dev] [PATCH 08/11] net/hinic: add hinic PMD build and doc files

2019-05-21 Thread Ziyang Xuan
Add build and doc files, and common code files. Signed-off-by: Ziyang Xuan --- MAINTAINERS | 9 + config/common_base | 5 + doc/guides/nics/features/hinic.ini | 32 ++ drivers/net/Makefile| 1 + drivers/net/hinic/Makefile

[dpdk-dev] [PATCH 07/11] net/hinic/base: add various headers

2019-05-21 Thread Ziyang Xuan
Add various headers that define mgmt commands, cmdq commands, rx data structures, tx data structures and basic defines for use in the code. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_compat.h | 257 + drivers/net/hinic/base/hinic_port_cmd.h | 494

[dpdk-dev] [PATCH 06/11] net/hinic/base: add code for nic business

2019-05-21 Thread Ziyang Xuan
Add code for nic business, including qps structures, qps configuration, wqs configuration for qps, nic business configuration functionalities. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_nic.h| 85 ++ drivers/net/hinic/base/hinic_pmd_niccfg.c | 1408

[dpdk-dev] [PATCH 05/11] net/hinic/base: add eqs and context code

2019-05-21 Thread Ziyang Xuan
Add code for eq. Aeq is a kind queue for mgmt asynchronous message and mgmt command response message. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_ctx_def.h | 201 + drivers/net/hinic/base/hinic_pmd_dpdev.h | 149 +++ drivers/net/hinic/base/hinic_pmd_eqs.c | 736

[dpdk-dev] [PATCH 04/11] net/hinic/base: add code about hardware operation

2019-05-21 Thread Ziyang Xuan
Add code for hardware operation, including configuration, query and so on. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_cfg.c | 269 ++ drivers/net/hinic/base/hinic_pmd_cfg.h | 264 + drivers/net/hinic/base/hinic_pmd_hw.h| 49 + drivers/net/hinic/base

[dpdk-dev] [PATCH 03/11] net/hinic/base: add mgmt module interactive code

2019-05-21 Thread Ziyang Xuan
Add the structures, functionalities for interaction with mgmt module. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_hw_mgmt.h| 85 +++ drivers/net/hinic/base/hinic_pmd_mgmt.c | 619 ++ drivers/net/hinic/base/hinic_pmd_mgmt.h

[dpdk-dev] [PATCH 02/11] net/hinic/base: add command channels code

2019-05-21 Thread Ziyang Xuan
Admin channels include api channel and command queue, Api channel is for mgmt module. And command queue is for ucode module. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_pmd_api_cmd.c | 1040 drivers/net/hinic/base/hinic_pmd_api_cmd.h | 271

[dpdk-dev] [PATCH 01/11] net/hinic/base: add registers for Huawei Hi1822 NIC

2019-05-21 Thread Ziyang Xuan
Add the registers that comprise the Huawei Hi1822 NIC. There is no functionality in this patch. Signed-off-by: Ziyang Xuan --- drivers/net/hinic/base/hinic_csr.h | 172 + 1 file changed, 172 insertions(+) create mode 100644 drivers/net/hinic/base/hinic_csr.h

[dpdk-dev] [PATCH 00/11] A new net PMD - hinic

2019-05-21 Thread Ziyang Xuan
, configure, info get. 2. RX/TX queue operations: setup/release, start/stop. 3. RX/TX. Stats: 1. statistics and extended statistics. Ziyang Xuan (11): net/hinic/base: add registers for Huawei Hi1822 NIC net/hinic/base: add command channels code net/hinic/base: add mgmt module interactive code

  1   2   >