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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
,
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
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
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
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
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
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
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
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
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
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
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
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
,
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
100 matches
Mail list logo