[PATCH v3 03/32] net/sssnic: support probe and remove

2023-08-31 Thread wanry
From: Renyong Wan Register device ID for 3SNIC ethernet adapter to support PCI ethdev probe and remove. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_hw.h | 11 + drivers/net/sssnic/sssnic_ethdev.c | 37 + 2 files

[PATCH v3 01/32] net/sssnic: add build and doc infrastructure

2023-08-31 Thread wanry
From: Renyong Wan Adding minimum PMD code, doc and build infrastructure for sssnic. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed 'Title underline too short' in doc/guides/nics/sssnic.rst. * Removed error.h from including files. --- .mailmap

[PATCH v3 02/32] net/sssnic: add log type and log macros

2023-08-31 Thread wanry
From: Renyong Wan Adding log macros to print runtime messages and trace functions. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/sssnic_ethdev.c | 13 drivers/net/sssnic/sssnic_log.h| 51 ++ 2 files changed, 64 insertions

[PATCH v3 04/32] net/sssnic: initialize hardware base

2023-08-31 Thread wanry
From: Renyong Wan Initializing hardware base make hardware ready to be access. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/meson.build | 13 ++ drivers/net/sssnic/base/sssnic_hw.c | 207 +++ drivers/net/sssnic/base/sssnic_hw.h

[PATCH v3 07/32] net/sssnic/base: add mailbox support

2023-08-31 Thread wanry
From: Renyong Wan Mailbox is a message channel used to communicate between PF and VF as well as driver and hardware functions. Mailbox messages are received by driver through event queue, and sent by driver through registers of mailbox. There are two transfer modes for sending mailbox message, on

[PATCH v3 06/32] net/sssnic/base: add message definition and utility

2023-08-31 Thread wanry
From: Renyong Wan sssnic message is used to encapsulate sssnic command for transmission between driver and firmware. sssnic message is sent by driver via mail box and is received by driver via event queue. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from inc

[PATCH v3 10/32] net/sssnic: add dev configure and infos get

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_api.c | 33 drivers/net/sssnic/base/sssnic_api.h | 8 +++ drivers/net/sssnic/base/sssnic_cmd.h | 14 + drivers/net/sssnic/base/sssnic_hw.c | 33 +++- drivers/ne

[PATCH v3 09/32] net/sssnic/base: add control queue

2023-08-31 Thread wanry
From: Renyong Wan Control queue is used for communication between driver and datapath code of firmware. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed variable 'cmd_len' is uninitialized when used. --- drivers/net/sssnic/base/meson.build| 2 + drivers/net/sssnic/b

[PATCH v3 11/32] net/sssnic: add dev MAC ops

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 2 + drivers/net/sssnic/base/sssnic_api.c | 174 + drivers/net/sssnic/base/sssnic_api.h | 4 + drivers/net/sssnic/base/sssnic_cmd.h | 25 +++ drivers/net/sssn

[PATCH v3 13/32] net/sssnic: support link status event

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed 'EINVAL' undeclared. --- doc/guides/nics/features/sssnic.ini| 1 + drivers/net/sssnic/base/meson.build| 1 + drivers/net/sssnic/base/sssnic_exception.c | 116 + drive

[PATCH v3 12/32] net/sssnic: support dev link status

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/base/sssnic_api.c| 127 drivers/net/sssnic/base/sssnic_api.h| 14 +++

[PATCH v3 15/32] net/sssnic: support Tx queue setup and release

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- drivers/net/sssnic/meson.build| 1 + drivers/net/sssnic/sssnic_ethdev.c| 4 + drivers/net/sssnic/sssnic_ethdev.h| 1 + drivers/net/sssnic/sssnic_eth

[PATCH v3 14/32] net/sssnic: support Rx queue setup and release

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- drivers/net/sssnic/meson.build| 1 + drivers/net/sssnic/sssnic_ethdev.c| 4 + drivers/net/sssnic/sssnic_ethdev.h| 2 + drivers/net/sssnic/sssnic_eth

[PATCH v3 17/32] net/sssnic: support Tx queue start and stop

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/sssnic_ethdev.c| 2 + drivers/net/sssnic/sssnic_ethdev_tx.c | 155 ++ drivers/net/sssnic/sssnic_ethdev_tx.h | 4 + 4 fil

[PATCH v3 18/32] net/sssnic: add Rx interrupt support

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/base/sssnic_hw.c | 14 +++ drivers/net/sssnic/base/sssnic_hw.h | 2 + drivers/net/sssnic/sssnic_ethdev.c| 2 + drivers/net/sssnic/sssnic_et

[PATCH v3 19/32] net/sssnic: support dev start and stop

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_api.c | 508 ++ drivers/net/sssnic/base/sssnic_api.h | 257 + drivers/net/sssnic/base/sssnic_cmd.h | 100 + drivers/net/sssnic/base/sssnic_misc.

[PATCH v3 20/32] net/sssnic: support dev close and reset

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/sssnic_ethdev.c | 32 ++ 1 file changed, 32 insertions(+) diff --git a/drivers/net/sssnic/sssnic_ethdev.c b/drivers/net/sssnic/sssnic_ethdev.c index 8201a1e3c4..b59c4fd3

[PATCH v3 21/32] net/sssnic: add allmulticast and promiscuous ops

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 2 + drivers/net/sssnic/sssnic_ethdev.c | 72 + 2 files changed, 74 insertions(+) diff --git a/doc/guides/nics/features/sssnic.ini b/doc/guides/nics

[PATCH v3 22/32] net/sssnic: add basic and extended stats ops

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- doc/guides/nics/features/sssnic.ini | 3 + drivers/net/sssnic/base/sssnic_api.c | 154 + drivers/net/sssnic/base/sssnic_api.h | 116 +++ driver

[PATCH v3 23/32] net/sssnic: support Rx packet burst

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed wrong format of printing uint64_t. --- doc/guides/nics/features/sssnic.ini | 2 + drivers/net/sssnic/sssnic_ethdev.c| 2 + drivers/net/sssnic/sssnic_ethdev_rx.c | 167 ++ d

[PATCH v3 25/32] net/sssnic: add RSS support

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- doc/guides/nics/features/sssnic.ini| 4 + drivers/net/sssnic/base/sssnic_api.c | 338 ++ drivers/net/sssnic/base/sssnic_api.h | 36 +++ dri

[PATCH v3 24/32] net/sssnic: support Tx packet burst

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed wrong format of printing uint64_t. --- doc/guides/nics/features/sssnic.ini | 5 + drivers/net/sssnic/sssnic_ethdev.c| 1 + drivers/net/sssnic/sssnic_ethdev_tx.c | 404 ++ d

[PATCH v3 26/32] net/sssnic: support dev MTU set

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/sssnic_ethdev.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/sssnic/sssnic_ethdev.c b/drivers/net/sssnic/sssnic_ethdev.c index a00e96bebe..b086e91d2d 100644 --- a/drivers/n

[PATCH v3 27/32] net/sssnic: support dev queue info get

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/sssnic_ethdev.c| 2 ++ drivers/net/sssnic/sssnic_ethdev_rx.c | 13 + drivers/net/sssnic/sssnic_ethdev_rx.h | 2 ++ drivers/net/sssnic/sssnic_ethdev_tx.c | 11 +++ drivers/ne

[PATCH v3 29/32] net/sssnic: add dev flow control ops

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/base/sssnic_api.c | 68 drivers/net/sssnic/base/sssnic_api.h | 4 ++ drivers/net/sssnic/base/sssnic_cmd.h | 11 + driver

[PATCH v3 30/32] net/sssnic: support VLAN offload and filter

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 2 + drivers/net/sssnic/base/sssnic_api.c | 34 +++ drivers/net/sssnic/base/sssnic_api.h | 1 + drivers/net/sssnic/base/sssnic_cmd.h | 9 +++ drivers/net/sssnic/sssnic_

[PATCH v3 28/32] net/sssnic: support dev firmware version get

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/base/sssnic_api.c | 36 drivers/net/sssnic/base/sssnic_api.h | 9 +++ drivers/net/sssnic/base/sssnic_cmd.h | 8 +++

[PATCH v3 31/32] net/sssnic: add generic flow ops

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed 'mask->hdr.src_addr' will always evaluate to 'true'. * Removed error.h from including files. --- doc/guides/nics/features/sssnic.ini | 12 + drivers/net/sssnic/base/sssnic_api.c| 264 ++ driv

[PATCH v3 32/32] net/sssnic: add VF dev support

2023-08-31 Thread wanry
From: Renyong Wan In comparison to PF, VF PMD does not support the following features: 1. link up and link down set 2. promiscuous enable and disable 3. MAC stats in extend xstats Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_api.c | 42

[PATCH v3 08/32] net/sssnic/base: add work queue

2023-08-31 Thread wanry
From: Renyong Wan Work queue is used to maintain hardware queue information by driver, it is usually used in control queue, rx queue and tx queue. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- drivers/net/sssnic/base/meson.build|

[PATCH v3 05/32] net/sssnic: add event queue

2023-08-31 Thread wanry
From: Renyong Wan Event queue is intended for receiving event from hardware as well as mailbox response message. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/meson.build | 1 + drivers/net/sssnic/base/sssnic_eventq.c | 426 d

[PATCH v3 16/32] net/sssnic: support Rx queue start and stop

2023-08-31 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_api.c | 63 + drivers/net/sssnic/base/sssnic_api.h | 2 + drivers/net/sssnic/base/sssnic_cmd.h | 49 drivers/net/sssnic/sssnic_ethdev.c| 2 + drivers/net/sssnic/sssn

[PATCH v4 01/32] net/sssnic: add build and doc infrastructure

2023-09-01 Thread wanry
From: Renyong Wan Adding minimum PMD code, doc and build infrastructure for sssnic. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed 'Title underline too short' in doc/guides/nics/sssnic.rst. * Removed error.h from including files. --- .mailmap

[PATCH v4 02/32] net/sssnic: add log type and log macros

2023-09-01 Thread wanry
From: Renyong Wan Adding log macros to print runtime messages and trace functions. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/sssnic_ethdev.c | 13 drivers/net/sssnic/sssnic_log.h| 51 ++ 2 files changed, 64 insertions

[PATCH v4 04/32] net/sssnic: initialize hardware base

2023-09-01 Thread wanry
From: Renyong Wan Initializing hardware base make hardware ready to be access. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/meson.build | 13 ++ drivers/net/sssnic/base/sssnic_hw.c | 207 +++ drivers/net/sssnic/base/sssnic_hw.h

[PATCH v4 03/32] net/sssnic: support probe and remove

2023-09-01 Thread wanry
From: Renyong Wan Register device ID for 3SNIC ethernet adapter to support PCI ethdev probe and remove. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_hw.h | 11 + drivers/net/sssnic/sssnic_ethdev.c | 37 + 2 files

[PATCH v4 06/32] net/sssnic/base: add message definition and utility

2023-09-01 Thread wanry
From: Renyong Wan sssnic message is used to encapsulate sssnic command for transmission between driver and firmware. sssnic message is sent by driver via mail box and is received by driver via event queue. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from inc

[PATCH v4 05/32] net/sssnic: add event queue

2023-09-01 Thread wanry
From: Renyong Wan Event queue is intended for receiving event from hardware as well as mailbox response message. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v4: * Fixed dereferencing type-punned pointer. * Fixed coding style issue of COMPLEX_MACRO. --- drivers/net/sssnic/base/me

[PATCH v4 08/32] net/sssnic/base: add work queue

2023-09-01 Thread wanry
From: Renyong Wan Work queue is used to maintain hardware queue information by driver, it is usually used in control queue, rx queue and tx queue. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- drivers/net/sssnic/base/meson.build|

[PATCH v4 07/32] net/sssnic/base: add mailbox support

2023-09-01 Thread wanry
From: Renyong Wan Mailbox is a message channel used to communicate between PF and VF as well as driver and hardware functions. Mailbox messages are received by driver through event queue, and sent by driver through registers of mailbox. There are two transfer modes for sending mailbox message, on

[PATCH v4 10/32] net/sssnic: add dev configure and infos get

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_api.c | 33 drivers/net/sssnic/base/sssnic_api.h | 8 +++ drivers/net/sssnic/base/sssnic_cmd.h | 14 + drivers/net/sssnic/base/sssnic_hw.c | 33 +++- drivers/ne

[PATCH v4 09/32] net/sssnic/base: add control queue

2023-09-01 Thread wanry
From: Renyong Wan Control queue is used for communication between driver and datapath code of firmware. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed variable 'cmd_len' is uninitialized when used. --- drivers/net/sssnic/base/meson.build| 2 + drivers/net/sssnic/b

[PATCH v4 15/32] net/sssnic: support Tx queue setup and release

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. v4: * Fixed coding style issue of REPEATED_WORD. --- drivers/net/sssnic/meson.build| 1 + drivers/net/sssnic/sssnic_ethdev.c| 4 + drivers/net/sssnic/sssnic_

[PATCH v4 12/32] net/sssnic: support dev link status

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/base/sssnic_api.c| 127 drivers/net/sssnic/base/sssnic_api.h| 14 +++

[PATCH v4 11/32] net/sssnic: add dev MAC ops

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 2 + drivers/net/sssnic/base/sssnic_api.c | 174 + drivers/net/sssnic/base/sssnic_api.h | 4 + drivers/net/sssnic/base/sssnic_cmd.h | 25 +++ drivers/net/sssn

[PATCH v4 16/32] net/sssnic: support Rx queue start and stop

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_api.c | 63 + drivers/net/sssnic/base/sssnic_api.h | 2 + drivers/net/sssnic/base/sssnic_cmd.h | 49 drivers/net/sssnic/sssnic_ethdev.c| 2 + drivers/net/sssnic/sssn

[PATCH v4 13/32] net/sssnic: support link status event

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed 'EINVAL' undeclared. --- doc/guides/nics/features/sssnic.ini| 1 + drivers/net/sssnic/base/meson.build| 1 + drivers/net/sssnic/base/sssnic_exception.c | 116 + drive

[PATCH v4 17/32] net/sssnic: support Tx queue start and stop

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/sssnic_ethdev.c| 2 + drivers/net/sssnic/sssnic_ethdev_tx.c | 155 ++ drivers/net/sssnic/sssnic_ethdev_tx.h | 4 + 4 fil

[PATCH v4 14/32] net/sssnic: support Rx queue setup and release

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- drivers/net/sssnic/meson.build| 1 + drivers/net/sssnic/sssnic_ethdev.c| 4 + drivers/net/sssnic/sssnic_ethdev.h| 2 + drivers/net/sssnic/sssnic_eth

[PATCH v4 18/32] net/sssnic: add Rx interrupt support

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/base/sssnic_hw.c | 14 +++ drivers/net/sssnic/base/sssnic_hw.h | 2 + drivers/net/sssnic/sssnic_ethdev.c| 2 + drivers/net/sssnic/sssnic_et

[PATCH v4 20/32] net/sssnic: support dev close and reset

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/sssnic_ethdev.c | 32 ++ 1 file changed, 32 insertions(+) diff --git a/drivers/net/sssnic/sssnic_ethdev.c b/drivers/net/sssnic/sssnic_ethdev.c index 8201a1e3c4..b59c4fd3

[PATCH v4 19/32] net/sssnic: support dev start and stop

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_api.c | 508 ++ drivers/net/sssnic/base/sssnic_api.h | 257 + drivers/net/sssnic/base/sssnic_cmd.h | 100 + drivers/net/sssnic/base/sssnic_misc.

[PATCH v4 23/32] net/sssnic: support Rx packet burst

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed wrong format of printing uint64_t. --- doc/guides/nics/features/sssnic.ini | 2 + drivers/net/sssnic/sssnic_ethdev.c| 2 + drivers/net/sssnic/sssnic_ethdev_rx.c | 167 ++ d

[PATCH v4 22/32] net/sssnic: add basic and extended stats ops

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- doc/guides/nics/features/sssnic.ini | 3 + drivers/net/sssnic/base/sssnic_api.c | 154 + drivers/net/sssnic/base/sssnic_api.h | 116 +++ driver

[PATCH v4 21/32] net/sssnic: add allmulticast and promiscuous ops

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 2 + drivers/net/sssnic/sssnic_ethdev.c | 72 + 2 files changed, 74 insertions(+) diff --git a/doc/guides/nics/features/sssnic.ini b/doc/guides/nics

[PATCH v4 24/32] net/sssnic: support Tx packet burst

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed wrong format of printing uint64_t. --- doc/guides/nics/features/sssnic.ini | 5 + drivers/net/sssnic/sssnic_ethdev.c| 1 + drivers/net/sssnic/sssnic_ethdev_tx.c | 404 ++ d

[PATCH v4 26/32] net/sssnic: support dev MTU set

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/sssnic_ethdev.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/sssnic/sssnic_ethdev.c b/drivers/net/sssnic/sssnic_ethdev.c index a00e96bebe..b086e91d2d 100644 --- a/drivers/n

[PATCH v4 25/32] net/sssnic: add RSS support

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- doc/guides/nics/features/sssnic.ini| 4 + drivers/net/sssnic/base/sssnic_api.c | 338 ++ drivers/net/sssnic/base/sssnic_api.h | 36 +++ dri

[PATCH v4 27/32] net/sssnic: support dev queue info get

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/sssnic_ethdev.c| 2 ++ drivers/net/sssnic/sssnic_ethdev_rx.c | 13 + drivers/net/sssnic/sssnic_ethdev_rx.h | 2 ++ drivers/net/sssnic/sssnic_ethdev_tx.c | 11 +++ drivers/ne

[PATCH v4 29/32] net/sssnic: add dev flow control ops

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/base/sssnic_api.c | 68 drivers/net/sssnic/base/sssnic_api.h | 4 ++ drivers/net/sssnic/base/sssnic_cmd.h | 11 + driver

[PATCH v4 28/32] net/sssnic: support dev firmware version get

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/base/sssnic_api.c | 36 drivers/net/sssnic/base/sssnic_api.h | 9 +++ drivers/net/sssnic/base/sssnic_cmd.h | 8 +++

[PATCH v4 30/32] net/sssnic: support VLAN offload and filter

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 2 + drivers/net/sssnic/base/sssnic_api.c | 34 +++ drivers/net/sssnic/base/sssnic_api.h | 1 + drivers/net/sssnic/base/sssnic_cmd.h | 9 +++ drivers/net/sssnic/sssnic_

[PATCH v4 31/32] net/sssnic: add generic flow ops

2023-09-01 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed 'mask->hdr.src_addr' will always evaluate to 'true'. * Removed error.h from including files. --- doc/guides/nics/features/sssnic.ini | 12 + drivers/net/sssnic/base/sssnic_api.c| 264 ++ driv

[PATCH v4 32/32] net/sssnic: add VF dev support

2023-09-01 Thread wanry
From: Renyong Wan In comparison to PF, VF PMD does not support the following features: 1. link up and link down set 2. promiscuous enable and disable 3. MAC stats in extend xstats Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_api.c | 42

[PATCH v5 01/32] net/sssnic: add build and doc infrastructure

2023-09-03 Thread wanry
From: Renyong Wan Adding minimum PMD code, doc and build infrastructure for sssnic. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed 'Title underline too short' in doc/guides/nics/sssnic.rst. * Removed error.h from including files. v5: * Fixed rebase mistake. * Fixed inco

[PATCH v5 02/32] net/sssnic: add log type and log macros

2023-09-03 Thread wanry
From: Renyong Wan Adding log macros to print runtime messages and trace functions. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/sssnic_ethdev.c | 13 drivers/net/sssnic/sssnic_log.h| 51 ++ 2 files changed, 64 insertions

[PATCH v5 03/32] net/sssnic: support probe and remove

2023-09-03 Thread wanry
From: Renyong Wan Register device ID for 3SNIC ethernet adapter to support PCI ethdev probe and remove. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_hw.h | 11 + drivers/net/sssnic/sssnic_ethdev.c | 37 + 2 files

[PATCH v5 04/32] net/sssnic: initialize hardware base

2023-09-03 Thread wanry
From: Renyong Wan Initializing hardware base make hardware ready to be access. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/meson.build | 13 ++ drivers/net/sssnic/base/sssnic_hw.c | 207 +++ drivers/net/sssnic/base/sssnic_hw.h

[PATCH v5 05/32] net/sssnic: add event queue

2023-09-03 Thread wanry
From: Renyong Wan Event queue is intended for receiving event from hardware as well as mailbox response message. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v4: * Fixed dereferencing type-punned pointer. * Fixed coding style issue of COMPLEX_MACRO. --- drivers/net/sssnic/base/me

[PATCH v5 06/32] net/sssnic/base: add message definition and utility

2023-09-03 Thread wanry
From: Renyong Wan sssnic message is used to encapsulate sssnic command for transmission between driver and firmware. sssnic message is sent by driver via mail box and is received by driver via event queue. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from inc

[PATCH v5 08/32] net/sssnic/base: add work queue

2023-09-03 Thread wanry
From: Renyong Wan Work queue is used to maintain hardware queue information by driver, it is usually used in control queue, rx queue and tx queue. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- drivers/net/sssnic/base/meson.build|

[PATCH v5 07/32] net/sssnic/base: add mailbox support

2023-09-03 Thread wanry
From: Renyong Wan Mailbox is a message channel used to communicate between PF and VF as well as driver and hardware functions. Mailbox messages are received by driver through event queue, and sent by driver through registers of mailbox. There are two transfer modes for sending mailbox message, on

[PATCH v5 09/32] net/sssnic/base: add control queue

2023-09-03 Thread wanry
From: Renyong Wan Control queue is used for communication between driver and datapath code of firmware. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed variable 'cmd_len' is uninitialized when used. --- drivers/net/sssnic/base/meson.build| 2 + drivers/net/sssnic/b

[PATCH v5 11/32] net/sssnic: add dev MAC ops

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 2 + drivers/net/sssnic/base/sssnic_api.c | 174 + drivers/net/sssnic/base/sssnic_api.h | 4 + drivers/net/sssnic/base/sssnic_cmd.h | 25 +++ drivers/net/sssn

[PATCH v5 14/32] net/sssnic: support Rx queue setup and release

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- drivers/net/sssnic/meson.build| 1 + drivers/net/sssnic/sssnic_ethdev.c| 4 + drivers/net/sssnic/sssnic_ethdev.h| 2 + drivers/net/sssnic/sssnic_eth

[PATCH v5 13/32] net/sssnic: support link status event

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed 'EINVAL' undeclared. --- doc/guides/nics/features/sssnic.ini| 1 + drivers/net/sssnic/base/meson.build| 1 + drivers/net/sssnic/base/sssnic_exception.c | 116 + drive

[PATCH v5 12/32] net/sssnic: support dev link status

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/base/sssnic_api.c| 127 drivers/net/sssnic/base/sssnic_api.h| 14 +++

[PATCH v5 17/32] net/sssnic: support Tx queue start and stop

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/sssnic_ethdev.c| 2 + drivers/net/sssnic/sssnic_ethdev_tx.c | 155 ++ drivers/net/sssnic/sssnic_ethdev_tx.h | 4 + 4 fil

[PATCH v5 10/32] net/sssnic: add dev configure and infos get

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_api.c | 33 drivers/net/sssnic/base/sssnic_api.h | 8 +++ drivers/net/sssnic/base/sssnic_cmd.h | 14 + drivers/net/sssnic/base/sssnic_hw.c | 33 +++- drivers/ne

[PATCH v5 18/32] net/sssnic: add Rx interrupt support

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/base/sssnic_hw.c | 14 +++ drivers/net/sssnic/base/sssnic_hw.h | 2 + drivers/net/sssnic/sssnic_ethdev.c| 2 + drivers/net/sssnic/sssnic_et

[PATCH v5 15/32] net/sssnic: support Tx queue setup and release

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. v4: * Fixed coding style issue of REPEATED_WORD. --- drivers/net/sssnic/meson.build| 1 + drivers/net/sssnic/sssnic_ethdev.c| 4 + drivers/net/sssnic/sssnic_

[PATCH v5 20/32] net/sssnic: support dev close and reset

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/sssnic_ethdev.c | 32 ++ 1 file changed, 32 insertions(+) diff --git a/drivers/net/sssnic/sssnic_ethdev.c b/drivers/net/sssnic/sssnic_ethdev.c index 8201a1e3c4..b59c4fd3

[PATCH v5 16/32] net/sssnic: support Rx queue start and stop

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_api.c | 63 + drivers/net/sssnic/base/sssnic_api.h | 2 + drivers/net/sssnic/base/sssnic_cmd.h | 49 drivers/net/sssnic/sssnic_ethdev.c| 2 + drivers/net/sssnic/sssn

[PATCH v5 19/32] net/sssnic: support dev start and stop

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_api.c | 508 ++ drivers/net/sssnic/base/sssnic_api.h | 257 + drivers/net/sssnic/base/sssnic_cmd.h | 100 + drivers/net/sssnic/base/sssnic_misc.

[PATCH v5 21/32] net/sssnic: add allmulticast and promiscuous ops

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 2 + drivers/net/sssnic/sssnic_ethdev.c | 72 + 2 files changed, 74 insertions(+) diff --git a/doc/guides/nics/features/sssnic.ini b/doc/guides/nics

[PATCH v5 23/32] net/sssnic: support Rx packet burst

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed wrong format of printing uint64_t. --- doc/guides/nics/features/sssnic.ini | 2 + drivers/net/sssnic/sssnic_ethdev.c| 2 + drivers/net/sssnic/sssnic_ethdev_rx.c | 167 ++ d

[PATCH v5 22/32] net/sssnic: add basic and extended stats ops

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- doc/guides/nics/features/sssnic.ini | 3 + drivers/net/sssnic/base/sssnic_api.c | 154 + drivers/net/sssnic/base/sssnic_api.h | 116 +++ driver

[PATCH v5 24/32] net/sssnic: support Tx packet burst

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed wrong format of printing uint64_t. --- doc/guides/nics/features/sssnic.ini | 5 + drivers/net/sssnic/sssnic_ethdev.c| 1 + drivers/net/sssnic/sssnic_ethdev_tx.c | 404 ++ d

[PATCH v5 30/32] net/sssnic: support VLAN offload and filter

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 2 + drivers/net/sssnic/base/sssnic_api.c | 34 +++ drivers/net/sssnic/base/sssnic_api.h | 1 + drivers/net/sssnic/base/sssnic_cmd.h | 9 +++ drivers/net/sssnic/sssnic_

[PATCH v5 25/32] net/sssnic: add RSS support

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Removed error.h from including files. --- doc/guides/nics/features/sssnic.ini| 4 + drivers/net/sssnic/base/sssnic_api.c | 338 ++ drivers/net/sssnic/base/sssnic_api.h | 36 +++ dri

[PATCH v5 29/32] net/sssnic: add dev flow control ops

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/base/sssnic_api.c | 68 drivers/net/sssnic/base/sssnic_api.h | 4 ++ drivers/net/sssnic/base/sssnic_cmd.h | 11 + driver

[PATCH v5 27/32] net/sssnic: support dev queue info get

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/sssnic_ethdev.c| 2 ++ drivers/net/sssnic/sssnic_ethdev_rx.c | 13 + drivers/net/sssnic/sssnic_ethdev_rx.h | 2 ++ drivers/net/sssnic/sssnic_ethdev_tx.c | 11 +++ drivers/ne

[PATCH v5 28/32] net/sssnic: support dev firmware version get

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- doc/guides/nics/features/sssnic.ini | 1 + drivers/net/sssnic/base/sssnic_api.c | 36 drivers/net/sssnic/base/sssnic_api.h | 9 +++ drivers/net/sssnic/base/sssnic_cmd.h | 8 +++

[PATCH v5 32/32] net/sssnic: add VF dev support

2023-09-03 Thread wanry
From: Renyong Wan In comparison to PF, VF PMD does not support the following features: 1. link up and link down set 2. promiscuous enable and disable 3. MAC stats in extend xstats Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_api.c | 42

[PATCH v5 31/32] net/sssnic: add generic flow ops

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- v2: * Fixed 'mask->hdr.src_addr' will always evaluate to 'true'. * Removed error.h from including files. --- doc/guides/nics/features/sssnic.ini | 12 + drivers/net/sssnic/base/sssnic_api.c| 264 ++ driv

[PATCH v5 26/32] net/sssnic: support dev MTU set

2023-09-03 Thread wanry
From: Renyong Wan Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/sssnic_ethdev.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/sssnic/sssnic_ethdev.c b/drivers/net/sssnic/sssnic_ethdev.c index a00e96bebe..b086e91d2d 100644 --- a/drivers/n

[PATCH 01/32] net/sssnic: add build and doc infrastructure

2023-08-29 Thread wanry
From: Renyong Wan Adding minimum PMD code, doc and build infrastructure for sssnic. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- .mailmap| 5 +- MAINTAINERS | 8 doc/guides/nics/features/sssnic.ini | 9 doc/guides/n

[PATCH 02/32] net/sssnic: add log type and log macros

2023-08-29 Thread wanry
From: Renyong Wan Adding log macros to print runtime messages and trace functions. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/sssnic_ethdev.c | 13 drivers/net/sssnic/sssnic_log.h| 51 ++ 2 files changed, 64 insertions

[PATCH 03/32] net/sssnic: support probe and remove

2023-08-29 Thread wanry
From: Renyong Wan Register device ID for 3SNIC ethernet adapter to support PCI ethdev probe and remove. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/sssnic_hw.h | 11 + drivers/net/sssnic/sssnic_ethdev.c | 37 + 2 files

[PATCH 05/32] net/sssnic: add event queue

2023-08-29 Thread wanry
From: Renyong Wan Event queue is intended for receiving event from hardware as well as mailbox response message. Signed-off-by: Steven Song Signed-off-by: Renyong Wan --- drivers/net/sssnic/base/meson.build | 1 + drivers/net/sssnic/base/sssnic_eventq.c | 426 d

  1   2   >