Skip to contentSkip to conversation

net/liquidio: removed LiquidIO ethdev driver

PATCH Superseded [email protected] 3 participants 4 messages Apr 28, 2023 – May 17, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/liquidio: removed LiquidIO ethdev driver

From: Jerin Jacob <[email protected]>

The LiquidIO product line has been substituted with CN9K/CN10K OCTEON product line smart NICs located at drivers/net/octeon_ep/.

DPDK 20.08 has categorized the LiquidIO driver as UNMAINTAINED because of the absence of updates in the driver.

Due to the above reasons, the driver removed from DPDK 23.07.

Also removed deprecation notice entry for the removal in doc/guides/rel_notes/deprecation.rst.

---
 MAINTAINERS                              |    8 -
 doc/guides/nics/features/liquidio.ini    |   29 -
 doc/guides/nics/index.rst                |    1 -
 doc/guides/nics/liquidio.rst             |  169 --
 doc/guides/rel_notes/deprecation.rst     |    7 -
 doc/guides/rel_notes/release_23_07.rst   |    9 +-
 drivers/net/liquidio/base/lio_23xx_reg.h |  165 --
 drivers/net/liquidio/base/lio_23xx_vf.c  |  513 ------
 drivers/net/liquidio/base/lio_23xx_vf.h  |   63 -
 drivers/net/liquidio/base/lio_hw_defs.h  |  239 ---
 drivers/net/liquidio/base/lio_mbox.c     |  246 ---
 drivers/net/liquidio/base/lio_mbox.h     |  102 -
 drivers/net/liquidio/lio_ethdev.c        | 2147 ----------------------
 drivers/net/liquidio/lio_ethdev.h        |  179 --
 drivers/net/liquidio/lio_logs.h          |   58 -
 drivers/net/liquidio/lio_rxtx.c          | 1804 ------------------
 drivers/net/liquidio/lio_rxtx.h          |  740 --------
 drivers/net/liquidio/lio_struct.h        |  661 -------
 drivers/net/liquidio/meson.build         |   16 -
 drivers/net/meson.build                  |    1 -
 20 files changed, 1 insertion(+), 7156 deletions(-)
 delete mode 100644 doc/guides/nics/features/liquidio.ini
 delete mode 100644 doc/guides/nics/liquidio.rst
 delete mode 100644 drivers/net/liquidio/base/lio_23xx_reg.h
 delete mode 100644 drivers/net/liquidio/base/lio_23xx_vf.c
 delete mode 100644 drivers/net/liquidio/base/lio_23xx_vf.h
 delete mode 100644 drivers/net/liquidio/base/lio_hw_defs.h
 delete mode 100644 drivers/net/liquidio/base/lio_mbox.c
 delete mode 100644 drivers/net/liquidio/base/lio_mbox.h
 delete mode 100644 drivers/net/liquidio/lio_ethdev.c
 delete mode 100644 drivers/net/liquidio/lio_ethdev.h
 delete mode 100644 drivers/net/liquidio/lio_logs.h
 delete mode 100644 drivers/net/liquidio/lio_rxtx.c
 delete mode 100644 drivers/net/liquidio/lio_rxtx.h
 delete mode 100644 drivers/net/liquidio/lio_struct.h
 delete mode 100644 drivers/net/liquidio/meson.build
MAINTAINERS +0 -8
index 8df23e5099..0157c26dd2 100644
@@ -681,14 +681,6 @@ F: drivers/net/thunderx/
 F: doc/guides/nics/thunderx.rst
 F: doc/guides/nics/features/thunderx.ini
 
-Cavium LiquidIO - UNMAINTAINED
-M: Shijith Thotton <[email protected]>
-M: Srisivasubramanian Srinivasan <[email protected]>
-T: git://dpdk.org/next/dpdk-next-net-mrvl
-F: drivers/net/liquidio/
-F: doc/guides/nics/liquidio.rst
-F: doc/guides/nics/features/liquidio.ini
-
 Cavium OCTEON TX
 M: Harman Kalra <[email protected]>
 T: git://dpdk.org/next/dpdk-next-net-mrvl
doc/guides/nics/features/liquidio.ini deleted +0 -29
deleted file mode 100644
index a8bde282e0..0000000000
@@ -1,29 +0,0 @@
-;
-; Supported features of the 'LiquidIO' network poll mode driver.
-;
-; Refer to default.ini for the full list of available PMD features.
-;
-[Features]
-Speed capabilities   = Y
-Link status          = Y
-Link status event    = Y
-MTU update           = Y
-Scattered Rx         = Y
-Promiscuous mode     = Y
-Allmulticast mode    = Y
-RSS hash             = Y
-RSS key update       = Y
-RSS reta update      = Y
-VLAN filter          = Y
-CRC offload          = Y
-VLAN offload         = P
-L3 checksum offload  = Y
-L4 checksum offload  = Y
-Inner L3 checksum    = Y
-Inner L4 checksum    = Y
-Basic stats          = Y
-Extended stats       = Y
-Multiprocess aware   = Y
-Linux                = Y
-x86-64               = Y
-Usage doc            = Y
doc/guides/nics/index.rst +0 -1
index 5c9d1edf5e..31296822e5 100644
@@ -44,7 +44,6 @@ Network Interface Controller Drivers
     ipn3ke
     ixgbe
     kni
-    liquidio
     mana
     memif
     mlx4
doc/guides/nics/liquidio.rst deleted +0 -169

169 lines not on this page · raw message

doc/guides/rel_notes/deprecation.rst +0 -7
index dcc1ca1696..8e1cdd677a 100644
@@ -121,13 +121,6 @@ Deprecation Notices
 * net/bnx2x: Starting from DPDK 23.07, the Marvell QLogic bnx2x driver will be removed.
   This decision has been made to alleviate the burden of maintaining a discontinued product.
 
-* net/liquidio: Remove LiquidIO ethdev driver.
-  The LiquidIO product line has been substituted
-  with CN9K/CN10K OCTEON product line smart NICs located in ``drivers/net/octeon_ep/``.
-  DPDK 20.08 has categorized the LiquidIO driver as UNMAINTAINED
-  because of the absence of updates in the driver.
-  Due to the above reasons, the driver will be unavailable from DPDK 23.07.
-
 * cryptodev: The function ``rte_cryptodev_cb_fn`` will be updated
   to have another parameter ``qp_id`` to return the queue pair ID
   which got error interrupt to the application,
doc/guides/rel_notes/release_23_07.rst +1 -8
index a9b1293689..4d505b607a 100644
@@ -59,14 +59,7 @@ New Features
 Removed Items
 -------------
 
-.. This section should contain removed items in this release. Sample format:
-
-   * Add a short 1-2 sentence description of the removed item
-     in the past tense.
-
-   This section is a comment. Do not overwrite or remove it.
-   Also, make sure to start the actual text at the margin.
-   =======================================================
+* Removed LiquidIO ethdev driver located at ``drivers/net/liquidio/``
 
 
 API Changes
drivers/net/liquidio/base/lio_23xx_reg.h deleted +0 -165

165 lines not on this page · raw message

drivers/net/liquidio/base/lio_23xx_vf.c deleted +0 -513

513 lines not on this page · raw message

drivers/net/liquidio/base/lio_23xx_vf.h deleted +0 -63

63 lines not on this page · raw message

drivers/net/liquidio/base/lio_hw_defs.h deleted +0 -239

239 lines not on this page · raw message

drivers/net/liquidio/base/lio_mbox.c deleted +0 -246

246 lines not on this page · raw message

drivers/net/liquidio/base/lio_mbox.h deleted +0 -102

102 lines not on this page · raw message

drivers/net/liquidio/lio_ethdev.c deleted +0 -2147

1,425 lines not on this page · raw message

drivers/net/liquidio/lio_ethdev.h deleted +0 -179

179 lines not on this page · raw message

drivers/net/liquidio/lio_logs.h deleted +0 -58

58 lines not on this page · raw message

drivers/net/liquidio/lio_rxtx.c deleted +0 -1804

1,804 lines not on this page · raw message

drivers/net/liquidio/lio_rxtx.h deleted +0 -740

740 lines not on this page · raw message

drivers/net/liquidio/lio_struct.h deleted +0 -661

661 lines not on this page · raw message

drivers/net/liquidio/meson.build deleted +0 -16
deleted file mode 100644
index ebadbf3dea..0000000000

Lines of this file are not shown. View the raw message.

drivers/net/meson.build +0 -1
index b1df17ce8c..f68bbc27a7 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.40.1

Part of the diff is not shown here. View the raw message.

#1 lore raw
Quoted 43 lines · On 4/28/2023 11:31 AM, [email protected] wrote:

From: Jerin Jacob <[email protected]>

The LiquidIO product line has been substituted with CN9K/CN10K OCTEON product line smart NICs located at drivers/net/octeon_ep/.

DPDK 20.08 has categorized the LiquidIO driver as UNMAINTAINED because of the absence of updates in the driver.

Due to the above reasons, the driver removed from DPDK 23.07.

Also removed deprecation notice entry for the removal in doc/guides/rel_notes/deprecation.rst.

---
 MAINTAINERS                              |    8 -
 doc/guides/nics/features/liquidio.ini    |   29 -
 doc/guides/nics/index.rst                |    1 -
 doc/guides/nics/liquidio.rst             |  169 --
 doc/guides/rel_notes/deprecation.rst     |    7 -
 doc/guides/rel_notes/release_23_07.rst   |    9 +-
 drivers/net/liquidio/base/lio_23xx_reg.h |  165 --
 drivers/net/liquidio/base/lio_23xx_vf.c  |  513 ------
 drivers/net/liquidio/base/lio_23xx_vf.h  |   63 -
 drivers/net/liquidio/base/lio_hw_defs.h  |  239 ---
 drivers/net/liquidio/base/lio_mbox.c     |  246 ---
 drivers/net/liquidio/base/lio_mbox.h     |  102 -
 drivers/net/liquidio/lio_ethdev.c        | 2147 ----------------------
 drivers/net/liquidio/lio_ethdev.h        |  179 --
 drivers/net/liquidio/lio_logs.h          |   58 -
 drivers/net/liquidio/lio_rxtx.c          | 1804 ------------------
 drivers/net/liquidio/lio_rxtx.h          |  740 --------
 drivers/net/liquidio/lio_struct.h        |  661 -------
 drivers/net/liquidio/meson.build         |   16 -
 drivers/net/meson.build                  |    1 -
 20 files changed, 1 insertion(+), 7156 deletions(-)
 delete mode 100644 doc/guides/nics/features/liquidio.ini
 delete mode 100644 doc/guides/nics/liquidio.rst
 delete mode 100644 drivers/net/liquidio/base/lio_23xx_reg.h
 delete mode 100644 drivers/net/liquidio/base/lio_23xx_vf.c
 delete mode 100644 drivers/net/liquidio/base/lio_23xx_vf.h
 delete mode 100644 drivers/net/liquidio/base/lio_hw_defs.h
 delete mode 100644 drivers/net/liquidio/base/lio_mbox.c
Quoted 9 lines
 delete mode 100644 drivers/net/liquidio/base/lio_mbox.h
 delete mode 100644 drivers/net/liquidio/lio_ethdev.c
 delete mode 100644 drivers/net/liquidio/lio_ethdev.h
 delete mode 100644 drivers/net/liquidio/lio_logs.h
 delete mode 100644 drivers/net/liquidio/lio_rxtx.c
 delete mode 100644 drivers/net/liquidio/lio_rxtx.h
 delete mode 100644 drivers/net/liquidio/lio_struct.h
 delete mode 100644 drivers/net/liquidio/meson.build

This cause warning in the ABI check script [1], not because there is an ABI breakage, but because how script works, that needs to be fixed as well.

[1]
Checking ABI compatibility of build-gcc-shared .../dpdk-next-net/devtools/../devtools/check-abi.sh /tmp/dpdk-abiref/v22.11.1/build-gcc-shared .../dpdk-next-net/build-gcc-shared/install
Error: cannot find librte_net_liquidio.so.23.0 in .../dpdk-next-net/build-gcc-shared/install

<...>

Quoted 7 lines
doc/guides/rel_notes/release_23_07.rst +0 -1
@@ -59,14 +59,7 @@ New Features
 Removed Items
 -------------
 
-.. This section should contain removed items in this release. Sample format:

doc/guides/rel_notes/release_23_07.rst New Features · line 64

Quoted 10 lines
doc/guides/rel_notes/release_23_07.rst +1 -7
-
-   * Add a short 1-2 sentence description of the removed item
-     in the past tense.
-
-   This section is a comment. Do not overwrite or remove it.
-   Also, make sure to start the actual text at the margin.
-   =======================================================
+* Removed LiquidIO ethdev driver located at ``drivers/net/liquidio/``
 
 

No need to remove the section comment.

Rest looks good to me.

#2 lore raw

PATCH v2 1/1 net/liquidio: remove LiquidIO ethdev driver

In reply to [email protected]

From: Jerin Jacob <[email protected]>

The LiquidIO product line has been substituted with CN9K/CN10K OCTEON product line smart NICs located at drivers/net/octeon_ep/.

DPDK 20.08 has categorized the LiquidIO driver as UNMAINTAINED because of the absence of updates in the driver.

Due to the above reasons, the driver removed from DPDK 23.07.

Also removed deprecation notice entry for the removal in doc/guides/rel_notes/deprecation.rst and skipped removed driver file in ABI check in devtools/libabigail.abignore.

---
v2:
- Skip driver ABI check (Ferruh)
- Addressed the review comments in
http://patches.dpdk.org/project/dpdk/patch/[email protected]/ (Ferruh)

 MAINTAINERS                              |    8 -
 devtools/libabigail.abignore             |    1 +
 doc/guides/nics/features/liquidio.ini    |   29 -
 doc/guides/nics/index.rst                |    1 -
 doc/guides/nics/liquidio.rst             |  169 --
 doc/guides/rel_notes/deprecation.rst     |    7 -
 doc/guides/rel_notes/release_23_07.rst   |    2 +
 drivers/net/liquidio/base/lio_23xx_reg.h |  165 --
 drivers/net/liquidio/base/lio_23xx_vf.c  |  513 ------
 drivers/net/liquidio/base/lio_23xx_vf.h  |   63 -
 drivers/net/liquidio/base/lio_hw_defs.h  |  239 ---
 drivers/net/liquidio/base/lio_mbox.c     |  246 ---
 drivers/net/liquidio/base/lio_mbox.h     |  102 -
 drivers/net/liquidio/lio_ethdev.c        | 2147 ----------------------
 drivers/net/liquidio/lio_ethdev.h        |  179 --
 drivers/net/liquidio/lio_logs.h          |   58 -
 drivers/net/liquidio/lio_rxtx.c          | 1804 ------------------
 drivers/net/liquidio/lio_rxtx.h          |  740 --------
 drivers/net/liquidio/lio_struct.h        |  661 -------
 drivers/net/liquidio/meson.build         |   16 -
 drivers/net/meson.build                  |    1 -
 21 files changed, 3 insertions(+), 7148 deletions(-)
 delete mode 100644 doc/guides/nics/features/liquidio.ini
 delete mode 100644 doc/guides/nics/liquidio.rst
 delete mode 100644 drivers/net/liquidio/base/lio_23xx_reg.h
 delete mode 100644 drivers/net/liquidio/base/lio_23xx_vf.c
 delete mode 100644 drivers/net/liquidio/base/lio_23xx_vf.h
 delete mode 100644 drivers/net/liquidio/base/lio_hw_defs.h
 delete mode 100644 drivers/net/liquidio/base/lio_mbox.c
 delete mode 100644 drivers/net/liquidio/base/lio_mbox.h
 delete mode 100644 drivers/net/liquidio/lio_ethdev.c
 delete mode 100644 drivers/net/liquidio/lio_ethdev.h
 delete mode 100644 drivers/net/liquidio/lio_logs.h
 delete mode 100644 drivers/net/liquidio/lio_rxtx.c
 delete mode 100644 drivers/net/liquidio/lio_rxtx.h
 delete mode 100644 drivers/net/liquidio/lio_struct.h
 delete mode 100644 drivers/net/liquidio/meson.build
MAINTAINERS +0 -8
index 8df23e5099..0157c26dd2 100644
@@ -681,14 +681,6 @@ F: drivers/net/thunderx/
 F: doc/guides/nics/thunderx.rst
 F: doc/guides/nics/features/thunderx.ini
 
-Cavium LiquidIO - UNMAINTAINED
-M: Shijith Thotton <[email protected]>
-M: Srisivasubramanian Srinivasan <[email protected]>
-T: git://dpdk.org/next/dpdk-next-net-mrvl
-F: drivers/net/liquidio/
-F: doc/guides/nics/liquidio.rst
-F: doc/guides/nics/features/liquidio.ini
-
 Cavium OCTEON TX
 M: Harman Kalra <[email protected]>
 T: git://dpdk.org/next/dpdk-next-net-mrvl
devtools/libabigail.abignore +1 -0
index 3ff51509de..c0361bfc7b 100644
@@ -25,6 +25,7 @@
 ;
 ; SKIP_LIBRARY=librte_common_mlx5_glue
 ; SKIP_LIBRARY=librte_net_mlx4_glue
+; SKIP_LIBRARY=librte_net_liquidio
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ; Experimental APIs exceptions ;
doc/guides/nics/features/liquidio.ini deleted +0 -29
deleted file mode 100644
index a8bde282e0..0000000000
@@ -1,29 +0,0 @@
-;
-; Supported features of the 'LiquidIO' network poll mode driver.
-;
-; Refer to default.ini for the full list of available PMD features.
-;
-[Features]
-Speed capabilities   = Y
-Link status          = Y
-Link status event    = Y
-MTU update           = Y
-Scattered Rx         = Y
-Promiscuous mode     = Y
-Allmulticast mode    = Y
-RSS hash             = Y
-RSS key update       = Y
-RSS reta update      = Y
-VLAN filter          = Y
-CRC offload          = Y
-VLAN offload         = P
-L3 checksum offload  = Y
-L4 checksum offload  = Y
-Inner L3 checksum    = Y
-Inner L4 checksum    = Y
-Basic stats          = Y
-Extended stats       = Y
-Multiprocess aware   = Y
-Linux                = Y
-x86-64               = Y
-Usage doc            = Y
doc/guides/nics/index.rst +0 -1
index 5c9d1edf5e..31296822e5 100644
@@ -44,7 +44,6 @@ Network Interface Controller Drivers
     ipn3ke
     ixgbe
     kni
-    liquidio
     mana
     memif
     mlx4
doc/guides/nics/liquidio.rst deleted +0 -169

169 lines not on this page · raw message

doc/guides/rel_notes/deprecation.rst +0 -7
index dcc1ca1696..8e1cdd677a 100644
@@ -121,13 +121,6 @@ Deprecation Notices
 * net/bnx2x: Starting from DPDK 23.07, the Marvell QLogic bnx2x driver will be removed.
   This decision has been made to alleviate the burden of maintaining a discontinued product.
 
-* net/liquidio: Remove LiquidIO ethdev driver.
-  The LiquidIO product line has been substituted
-  with CN9K/CN10K OCTEON product line smart NICs located in ``drivers/net/octeon_ep/``.
-  DPDK 20.08 has categorized the LiquidIO driver as UNMAINTAINED
-  because of the absence of updates in the driver.
-  Due to the above reasons, the driver will be unavailable from DPDK 23.07.
-
 * cryptodev: The function ``rte_cryptodev_cb_fn`` will be updated
   to have another parameter ``qp_id`` to return the queue pair ID
   which got error interrupt to the application,
doc/guides/rel_notes/release_23_07.rst +2 -0
index a9b1293689..f13a7b32b6 100644
@@ -68,6 +68,8 @@ Removed Items
    Also, make sure to start the actual text at the margin.
    =======================================================
 
+* Removed LiquidIO ethdev driver located at ``drivers/net/liquidio/``
+
 
 API Changes
 -----------
drivers/net/liquidio/base/lio_23xx_reg.h deleted +0 -165

165 lines not on this page · raw message

drivers/net/liquidio/base/lio_23xx_vf.c deleted +0 -513

513 lines not on this page · raw message

drivers/net/liquidio/base/lio_23xx_vf.h deleted +0 -63

63 lines not on this page · raw message

drivers/net/liquidio/base/lio_hw_defs.h deleted +0 -239

239 lines not on this page · raw message

drivers/net/liquidio/base/lio_mbox.c deleted +0 -246

246 lines not on this page · raw message

drivers/net/liquidio/base/lio_mbox.h deleted +0 -102

102 lines not on this page · raw message

drivers/net/liquidio/lio_ethdev.c deleted +0 -2147

1,425 lines not on this page · raw message

drivers/net/liquidio/lio_ethdev.h deleted +0 -179

179 lines not on this page · raw message

drivers/net/liquidio/lio_logs.h deleted +0 -58

58 lines not on this page · raw message

drivers/net/liquidio/lio_rxtx.c deleted +0 -1804

1,804 lines not on this page · raw message

drivers/net/liquidio/lio_rxtx.h deleted +0 -740

740 lines not on this page · raw message

drivers/net/liquidio/lio_struct.h deleted +0 -661

661 lines not on this page · raw message

drivers/net/liquidio/meson.build deleted +0 -16
deleted file mode 100644
index ebadbf3dea..0000000000

Lines of this file are not shown. View the raw message.

drivers/net/meson.build +0 -1
index b1df17ce8c..f68bbc27a7 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.40.1

Part of the diff is not shown here. View the raw message.

Applied
#3 lore raw

Re: [dpdk-dev] [PATCH v2] net/liquidio: remove LiquidIO ethdev driver

Quoted 15 lines · On Mon, May 8, 2023 at 7:15 PM <[email protected]> wrote:

From: Jerin Jacob <[email protected]>

The LiquidIO product line has been substituted with CN9K/CN10K OCTEON product line smart NICs located at drivers/net/octeon_ep/.

DPDK 20.08 has categorized the LiquidIO driver as UNMAINTAINED because of the absence of updates in the driver.

Due to the above reasons, the driver removed from DPDK 23.07.

Also removed deprecation notice entry for the removal in doc/guides/rel_notes/deprecation.rst and skipped removed driver file in ABI check in devtools/libabigail.abignore.

Quoted 6 lines

---
v2:
- Skip driver ABI check (Ferruh)
- Addressed the review comments in
http://patches.dpdk.org/project/dpdk/patch/[email protected]/ (Ferruh)

Applied to dpdk-next-net-mrvl/for-next-net. Thanks

Quoted 7,349 lines
 MAINTAINERS                              |    8 -
 devtools/libabigail.abignore             |    1 +
 doc/guides/nics/features/liquidio.ini    |   29 -
 doc/guides/nics/index.rst                |    1 -
 doc/guides/nics/liquidio.rst             |  169 --
 doc/guides/rel_notes/deprecation.rst     |    7 -
 doc/guides/rel_notes/release_23_07.rst   |    2 +
 drivers/net/liquidio/base/lio_23xx_reg.h |  165 --
 drivers/net/liquidio/base/lio_23xx_vf.c  |  513 ------
 drivers/net/liquidio/base/lio_23xx_vf.h  |   63 -
 drivers/net/liquidio/base/lio_hw_defs.h  |  239 ---
 drivers/net/liquidio/base/lio_mbox.c     |  246 ---
 drivers/net/liquidio/base/lio_mbox.h     |  102 -
 drivers/net/liquidio/lio_ethdev.c        | 2147 ----------------------
 drivers/net/liquidio/lio_ethdev.h        |  179 --
 drivers/net/liquidio/lio_logs.h          |   58 -
 drivers/net/liquidio/lio_rxtx.c          | 1804 ------------------
 drivers/net/liquidio/lio_rxtx.h          |  740 --------
 drivers/net/liquidio/lio_struct.h        |  661 -------
 drivers/net/liquidio/meson.build         |   16 -
 drivers/net/meson.build                  |    1 -
 21 files changed, 3 insertions(+), 7148 deletions(-)
 delete mode 100644 doc/guides/nics/features/liquidio.ini
 delete mode 100644 doc/guides/nics/liquidio.rst
 delete mode 100644 drivers/net/liquidio/base/lio_23xx_reg.h
 delete mode 100644 drivers/net/liquidio/base/lio_23xx_vf.c
 delete mode 100644 drivers/net/liquidio/base/lio_23xx_vf.h
 delete mode 100644 drivers/net/liquidio/base/lio_hw_defs.h
 delete mode 100644 drivers/net/liquidio/base/lio_mbox.c
 delete mode 100644 drivers/net/liquidio/base/lio_mbox.h
 delete mode 100644 drivers/net/liquidio/lio_ethdev.c
 delete mode 100644 drivers/net/liquidio/lio_ethdev.h
 delete mode 100644 drivers/net/liquidio/lio_logs.h
 delete mode 100644 drivers/net/liquidio/lio_rxtx.c
 delete mode 100644 drivers/net/liquidio/lio_rxtx.h
 delete mode 100644 drivers/net/liquidio/lio_struct.h
 delete mode 100644 drivers/net/liquidio/meson.build
MAINTAINERS +0 -8
index 8df23e5099..0157c26dd2 100644
@@ -681,14 +681,6 @@ F: drivers/net/thunderx/
 F: doc/guides/nics/thunderx.rst
 F: doc/guides/nics/features/thunderx.ini
 
-Cavium LiquidIO - UNMAINTAINED
-M: Shijith Thotton <[email protected]>
-M: Srisivasubramanian Srinivasan <[email protected]>
-T: git://dpdk.org/next/dpdk-next-net-mrvl
-F: drivers/net/liquidio/
-F: doc/guides/nics/liquidio.rst
-F: doc/guides/nics/features/liquidio.ini
-
 Cavium OCTEON TX
 M: Harman Kalra <[email protected]>
 T: git://dpdk.org/next/dpdk-next-net-mrvl
devtools/libabigail.abignore +1 -0
index 3ff51509de..c0361bfc7b 100644
@@ -25,6 +25,7 @@
 ;
 ; SKIP_LIBRARY=librte_common_mlx5_glue
 ; SKIP_LIBRARY=librte_net_mlx4_glue
+; SKIP_LIBRARY=librte_net_liquidio
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ; Experimental APIs exceptions ;
doc/guides/nics/features/liquidio.ini deleted +0 -29
deleted file mode 100644
index a8bde282e0..0000000000
@@ -1,29 +0,0 @@
-;
-; Supported features of the 'LiquidIO' network poll mode driver.
-;
-; Refer to default.ini for the full list of available PMD features.
-;
-[Features]
-Speed capabilities   = Y
-Link status          = Y
-Link status event    = Y
-MTU update           = Y
-Scattered Rx         = Y
-Promiscuous mode     = Y
-Allmulticast mode    = Y
-RSS hash             = Y
-RSS key update       = Y
-RSS reta update      = Y
-VLAN filter          = Y
-CRC offload          = Y
-VLAN offload         = P
-L3 checksum offload  = Y
-L4 checksum offload  = Y
-Inner L3 checksum    = Y
-Inner L4 checksum    = Y
-Basic stats          = Y
-Extended stats       = Y
-Multiprocess aware   = Y
-Linux                = Y
-x86-64               = Y
-Usage doc            = Y
doc/guides/nics/index.rst +0 -1
index 5c9d1edf5e..31296822e5 100644
@@ -44,7 +44,6 @@ Network Interface Controller Drivers
     ipn3ke
     ixgbe
     kni
-    liquidio
     mana
     memif
     mlx4
doc/guides/nics/liquidio.rst deleted +0 -169
deleted file mode 100644
index f893b3b539..0000000000
@@ -1,169 +0,0 @@
-..  SPDX-License-Identifier: BSD-3-Clause
-    Copyright(c) 2017 Cavium, Inc
-
-LiquidIO VF Poll Mode Driver
-============================
-
-The LiquidIO VF PMD library (**librte_net_liquidio**) provides poll mode driver support for
-Cavium LiquidIO® II server adapter VFs. PF management and VF creation can be
-done using kernel driver.
-
-More information can be found at `Cavium Official Website
-<http://cavium.com/LiquidIO_Adapters.html>`_.
-
-Supported LiquidIO Adapters
------------------------------
-
-- LiquidIO II CN2350 210SV/225SV
-- LiquidIO II CN2350 210SVPT
-- LiquidIO II CN2360 210SV/225SV
-- LiquidIO II CN2360 210SVPT
-
-
-SR-IOV: Prerequisites and Sample Application Notes
---------------------------------------------------
-
-This section provides instructions to configure SR-IOV with Linux OS.
-
-#. Verify SR-IOV and ARI capabilities are enabled on the adapter using ``lspci``:
-
-   .. code-block:: console
-
-      lspci -s <slot> -vvv
-
-   Example output:
-
-   .. code-block:: console
-
-      [...]
-      Capabilities: [148 v1] Alternative Routing-ID Interpretation (ARI)
-      [...]
-      Capabilities: [178 v1] Single Root I/O Virtualization (SR-IOV)
-      [...]
-      Kernel driver in use: LiquidIO
-
-#. Load the kernel module:
-
-   .. code-block:: console
-
-      modprobe liquidio
-
-#. Bring up the PF ports:
-
-   .. code-block:: console
-
-      ifconfig p4p1 up
-      ifconfig p4p2 up
-
-#. Change PF MTU if required:
-
-   .. code-block:: console
-
-      ifconfig p4p1 mtu 9000
-      ifconfig p4p2 mtu 9000
-
-#. Create VF device(s):
-
-   Echo number of VFs to be created into ``"sriov_numvfs"`` sysfs entry
-   of the parent PF.
-
-   .. code-block:: console
-
-      echo 1 > /sys/bus/pci/devices/0000:03:00.0/sriov_numvfs
-      echo 1 > /sys/bus/pci/devices/0000:03:00.1/sriov_numvfs
-
-#. Assign VF MAC address:
-
-   Assign MAC address to the VF using iproute2 utility. The syntax is::
-
-      ip link set <PF iface> vf <VF id> mac <macaddr>
-
-   Example output:
-
-   .. code-block:: console
-
-      ip link set p4p1 vf 0 mac F2:A8:1B:5E:B4:66
-
-#. Assign VF(s) to VM.
-
-   The VF devices may be passed through to the guest VM using qemu or
-   virt-manager or virsh etc.
-
-   Example qemu guest launch command:
-
-   .. code-block:: console
-
-      ./qemu-system-x86_64 -name lio-vm -machine accel=kvm \
-      -cpu host -m 4096 -smp 4 \
-      -drive file=<disk_file>,if=none,id=disk1,format=<type> \
-      -device virtio-blk-pci,scsi=off,drive=disk1,id=virtio-disk1,bootindex=1 \
-      -device vfio-pci,host=03:00.3 -device vfio-pci,host=03:08.3
-
-#. Running testpmd
-
-   Refer to the document
-   :ref:`compiling and testing a PMD for a NIC <pmd_build_and_test>` to run
-   ``testpmd`` application.
-
-   .. note::
-
-      Use ``igb_uio`` instead of ``vfio-pci`` in VM.
-
-   Example output:
-
-   .. code-block:: console
-
-      [...]
-      EAL: PCI device 0000:03:00.3 on NUMA socket 0
-      EAL:   probe driver: 177d:9712 net_liovf
-      EAL:   using IOMMU type 1 (Type 1)
-      PMD: net_liovf[03:00.3]INFO: DEVICE : CN23XX VF
-      EAL: PCI device 0000:03:08.3 on NUMA socket 0
-      EAL:   probe driver: 177d:9712 net_liovf
-      PMD: net_liovf[03:08.3]INFO: DEVICE : CN23XX VF
-      Interactive-mode selected
-      USER1: create a new mbuf pool <mbuf_pool_socket_0>: n=171456, size=2176, socket=0
-      Configuring Port 0 (socket 0)
-      PMD: net_liovf[03:00.3]INFO: Starting port 0
-      Port 0: F2:A8:1B:5E:B4:66
-      Configuring Port 1 (socket 0)
-      PMD: net_liovf[03:08.3]INFO: Starting port 1
-      Port 1: 32:76:CC:EE:56:D7
-      Checking link statuses...
-      Port 0 Link Up - speed 10000 Mbps - full-duplex
-      Port 1 Link Up - speed 10000 Mbps - full-duplex
-      Done
-      testpmd>
-
-#. Enabling VF promiscuous mode
-
-   One VF per PF can be marked as trusted for promiscuous mode.
-
-   .. code-block:: console
-
-      ip link set dev <PF iface> vf <VF id> trust on
-
-
-Limitations
------------
-
-VF MTU
-~~~~~~
-
-VF MTU is limited by PF MTU. Raise PF value before configuring VF for larger packet size.
-
-VLAN offload
-~~~~~~~~~~~~
-
-Tx VLAN insertion is not supported and consequently VLAN offload feature is
-marked partial.
-
-Ring size
-~~~~~~~~~
-
-Number of descriptors for Rx/Tx ring should be in the range 128 to 512.
-
-CRC stripping
-~~~~~~~~~~~~~
-
-LiquidIO adapters strip ethernet FCS of every packet coming to the host interface.
doc/guides/rel_notes/deprecation.rst +0 -7
index dcc1ca1696..8e1cdd677a 100644
@@ -121,13 +121,6 @@ Deprecation Notices
 * net/bnx2x: Starting from DPDK 23.07, the Marvell QLogic bnx2x driver will be removed.
   This decision has been made to alleviate the burden of maintaining a discontinued product.
 
-* net/liquidio: Remove LiquidIO ethdev driver.
-  The LiquidIO product line has been substituted
-  with CN9K/CN10K OCTEON product line smart NICs located in ``drivers/net/octeon_ep/``.
-  DPDK 20.08 has categorized the LiquidIO driver as UNMAINTAINED
-  because of the absence of updates in the driver.
-  Due to the above reasons, the driver will be unavailable from DPDK 23.07.
-
 * cryptodev: The function ``rte_cryptodev_cb_fn`` will be updated
   to have another parameter ``qp_id`` to return the queue pair ID
   which got error interrupt to the application,
doc/guides/rel_notes/release_23_07.rst +2 -0
index a9b1293689..f13a7b32b6 100644
@@ -68,6 +68,8 @@ Removed Items
    Also, make sure to start the actual text at the margin.
    =======================================================
 
+* Removed LiquidIO ethdev driver located at ``drivers/net/liquidio/``
+
 
 API Changes
 -----------
drivers/net/liquidio/base/lio_23xx_reg.h deleted +0 -165
deleted file mode 100644
index 9f28504b53..0000000000
@@ -1,165 +0,0 @@
-/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2017 Cavium, Inc
- */
-
-#ifndef _LIO_23XX_REG_H_
-#define _LIO_23XX_REG_H_
-
-/* ###################### REQUEST QUEUE ######################### */
-
-/* 64 registers for Input Queues Start Addr - SLI_PKT(0..63)_INSTR_BADDR */
-#define CN23XX_SLI_PKT_INSTR_BADDR_START64     0x10010
-
-/* 64 registers for Input Doorbell - SLI_PKT(0..63)_INSTR_BAOFF_DBELL */
-#define CN23XX_SLI_PKT_INSTR_BADDR_DBELL_START 0x10020
-
-/* 64 registers for Input Queue size - SLI_PKT(0..63)_INSTR_FIFO_RSIZE */
-#define CN23XX_SLI_PKT_INSTR_FIFO_RSIZE_START  0x10030
-
-/* 64 registers for Input Queue Instr Count - SLI_PKT_IN_DONE(0..63)_CNTS */
-#define CN23XX_SLI_PKT_IN_DONE_CNTS_START64    0x10040
-
-/* 64 registers (64-bit) - ES, RO, NS, Arbitration for Input Queue Data &
- * gather list fetches. SLI_PKT(0..63)_INPUT_CONTROL.
- */
-#define CN23XX_SLI_PKT_INPUT_CONTROL_START64   0x10000
-
-/* ------- Request Queue Macros --------- */
-
-/* Each Input Queue register is at a 16-byte Offset in BAR0 */
-#define CN23XX_IQ_OFFSET                       0x20000
-
-#define CN23XX_SLI_IQ_PKT_CONTROL64(iq)                                        \
-       (CN23XX_SLI_PKT_INPUT_CONTROL_START64 + ((iq) * CN23XX_IQ_OFFSET))
-
-#define CN23XX_SLI_IQ_BASE_ADDR64(iq)                                  \
-       (CN23XX_SLI_PKT_INSTR_BADDR_START64 + ((iq) * CN23XX_IQ_OFFSET))
-
-#define CN23XX_SLI_IQ_SIZE(iq)                                         \
-       (CN23XX_SLI_PKT_INSTR_FIFO_RSIZE_START + ((iq) * CN23XX_IQ_OFFSET))
-
-#define CN23XX_SLI_IQ_DOORBELL(iq)                                     \
-       (CN23XX_SLI_PKT_INSTR_BADDR_DBELL_START + ((iq) * CN23XX_IQ_OFFSET))
-
-#define CN23XX_SLI_IQ_INSTR_COUNT64(iq)                                        \
-       (CN23XX_SLI_PKT_IN_DONE_CNTS_START64 + ((iq) * CN23XX_IQ_OFFSET))
-
-/* Number of instructions to be read in one MAC read request.
- * setting to Max value(4)
- */
-#define CN23XX_PKT_INPUT_CTL_RDSIZE                    (3 << 25)
-#define CN23XX_PKT_INPUT_CTL_IS_64B                    (1 << 24)
-#define CN23XX_PKT_INPUT_CTL_RST                       (1 << 23)
-#define CN23XX_PKT_INPUT_CTL_QUIET                     (1 << 28)
-#define CN23XX_PKT_INPUT_CTL_RING_ENB                  (1 << 22)
-#define CN23XX_PKT_INPUT_CTL_DATA_ES_64B_SWAP          (1 << 6)
-#define CN23XX_PKT_INPUT_CTL_USE_CSR                   (1 << 4)
-#define CN23XX_PKT_INPUT_CTL_GATHER_ES_64B_SWAP                (2)
-
-/* These bits[47:44] select the Physical function number within the MAC */
-#define CN23XX_PKT_INPUT_CTL_PF_NUM_POS                45
-/* These bits[43:32] select the function number within the PF */
-#define CN23XX_PKT_INPUT_CTL_VF_NUM_POS                32
-
-#if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN
-#define CN23XX_PKT_INPUT_CTL_MASK                      \
-       (CN23XX_PKT_INPUT_CTL_RDSIZE |                  \
-        CN23XX_PKT_INPUT_CTL_DATA_ES_64B_SWAP |        \
-        CN23XX_PKT_INPUT_CTL_USE_CSR)
-#elif RTE_BYTE_ORDER == RTE_BIG_ENDIAN
-#define CN23XX_PKT_INPUT_CTL_MASK                      \
-       (CN23XX_PKT_INPUT_CTL_RDSIZE |                  \
-        CN23XX_PKT_INPUT_CTL_DATA_ES_64B_SWAP |        \
-        CN23XX_PKT_INPUT_CTL_USE_CSR |                 \
-        CN23XX_PKT_INPUT_CTL_GATHER_ES_64B_SWAP)
-#endif
-
-/* ############################ OUTPUT QUEUE ######################### */
-
-/* 64 registers for Output queue control - SLI_PKT(0..63)_OUTPUT_CONTROL */
-#define CN23XX_SLI_PKT_OUTPUT_CONTROL_START    0x10050
-
-/* 64 registers for Output queue buffer and info size
- * SLI_PKT(0..63)_OUT_SIZE
- */
-#define CN23XX_SLI_PKT_OUT_SIZE                        0x10060
-
-/* 64 registers for Output Queue Start Addr - SLI_PKT(0..63)_SLIST_BADDR */
-#define CN23XX_SLI_SLIST_BADDR_START64         0x10070
-
-/* 64 registers for Output Queue Packet Credits
- * SLI_PKT(0..63)_SLIST_BAOFF_DBELL
- */
-#define CN23XX_SLI_PKT_SLIST_BAOFF_DBELL_START 0x10080
-
-/* 64 registers for Output Queue size - SLI_PKT(0..63)_SLIST_FIFO_RSIZE */
-#define CN23XX_SLI_PKT_SLIST_FIFO_RSIZE_START  0x10090
-
-/* 64 registers for Output Queue Packet Count - SLI_PKT(0..63)_CNTS */
-#define CN23XX_SLI_PKT_CNTS_START              0x100B0
-
-/* Each Output Queue register is at a 16-byte Offset in BAR0 */
-#define CN23XX_OQ_OFFSET                       0x20000
-
-/* ------- Output Queue Macros --------- */
-
-#define CN23XX_SLI_OQ_PKT_CONTROL(oq)                                  \
-       (CN23XX_SLI_PKT_OUTPUT_CONTROL_START + ((oq) * CN23XX_OQ_OFFSET))
-
-#define CN23XX_SLI_OQ_BASE_ADDR64(oq)                                  \
-       (CN23XX_SLI_SLIST_BADDR_START64 + ((oq) * CN23XX_OQ_OFFSET))
-
-#define CN23XX_SLI_OQ_SIZE(oq)                                         \
-       (CN23XX_SLI_PKT_SLIST_FIFO_RSIZE_START + ((oq) * CN23XX_OQ_OFFSET))
-
-#define CN23XX_SLI_OQ_BUFF_INFO_SIZE(oq)                               \
-       (CN23XX_SLI_PKT_OUT_SIZE + ((oq) * CN23XX_OQ_OFFSET))
-
-#define CN23XX_SLI_OQ_PKTS_SENT(oq)                                    \
-       (CN23XX_SLI_PKT_CNTS_START + ((oq) * CN23XX_OQ_OFFSET))
-
-#define CN23XX_SLI_OQ_PKTS_CREDIT(oq)                                  \
-       (CN23XX_SLI_PKT_SLIST_BAOFF_DBELL_START + ((oq) * CN23XX_OQ_OFFSET))
-
-/* ------------------ Masks ---------------- */
-#define CN23XX_PKT_OUTPUT_CTL_IPTR             (1 << 11)
-#define CN23XX_PKT_OUTPUT_CTL_ES               (1 << 9)
-#define CN23XX_PKT_OUTPUT_CTL_NSR              (1 << 8)
-#define CN23XX_PKT_OUTPUT_CTL_ROR              (1 << 7)
-#define CN23XX_PKT_OUTPUT_CTL_DPTR             (1 << 6)
-#define CN23XX_PKT_OUTPUT_CTL_BMODE            (1 << 5)
-#define CN23XX_PKT_OUTPUT_CTL_ES_P             (1 << 3)
-#define CN23XX_PKT_OUTPUT_CTL_NSR_P            (1 << 2)
-#define CN23XX_PKT_OUTPUT_CTL_ROR_P            (1 << 1)
-#define CN23XX_PKT_OUTPUT_CTL_RING_ENB         (1 << 0)
-
-/* Rings per Virtual Function [RO] */
-#define CN23XX_PKT_INPUT_CTL_RPVF_MASK         0x3F
-#define CN23XX_PKT_INPUT_CTL_RPVF_POS          48
-
-/* These bits[47:44][RO] give the Physical function
- * number info within the MAC
- */
-#define CN23XX_PKT_INPUT_CTL_PF_NUM_MASK       0x7
-
-/* These bits[43:32][RO] give the virtual function
- * number info within the PF
- */
-#define CN23XX_PKT_INPUT_CTL_VF_NUM_MASK       0x1FFF
-
-/* ######################### Mailbox Reg Macros ######################## */
-#define CN23XX_SLI_PKT_PF_VF_MBOX_SIG_START    0x10200
-#define CN23XX_VF_SLI_PKT_MBOX_INT_START       0x10210
-
-#define CN23XX_SLI_MBOX_OFFSET                 0x20000
-#define CN23XX_SLI_MBOX_SIG_IDX_OFFSET         0x8
-
-#define CN23XX_SLI_PKT_PF_VF_MBOX_SIG(q, idx)                          \
-       (CN23XX_SLI_PKT_PF_VF_MBOX_SIG_START +                          \
-        ((q) * CN23XX_SLI_MBOX_OFFSET +                                \
-         (idx) * CN23XX_SLI_MBOX_SIG_IDX_OFFSET))
-
-#define CN23XX_VF_SLI_PKT_MBOX_INT(q)                                  \
-       (CN23XX_VF_SLI_PKT_MBOX_INT_START + ((q) * CN23XX_SLI_MBOX_OFFSET))
-
-#endif /* _LIO_23XX_REG_H_ */
drivers/net/liquidio/base/lio_23xx_vf.c deleted +0 -513
deleted file mode 100644
index c6b8310b71..0000000000
@@ -1,513 +0,0 @@
-/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2017 Cavium, Inc
- */
-
-#include <string.h>
-
-#include <ethdev_driver.h>
-#include <rte_cycles.h>
-#include <rte_malloc.h>
-
-#include "lio_logs.h"
-#include "lio_23xx_vf.h"
-#include "lio_23xx_reg.h"
-#include "lio_mbox.h"
-
-static int
-cn23xx_vf_reset_io_queues(struct lio_device *lio_dev, uint32_t num_queues)
-{
-       uint32_t loop = CN23XX_VF_BUSY_READING_REG_LOOP_COUNT;
-       uint64_t d64, q_no;
-       int ret_val = 0;
-
-       PMD_INIT_FUNC_TRACE();
-
-       for (q_no = 0; q_no < num_queues; q_no++) {
-               /* set RST bit to 1. This bit applies to both IQ and OQ */
-               d64 = lio_read_csr64(lio_dev,
-                                    CN23XX_SLI_IQ_PKT_CONTROL64(q_no));
-               d64 = d64 | CN23XX_PKT_INPUT_CTL_RST;
-               lio_write_csr64(lio_dev, CN23XX_SLI_IQ_PKT_CONTROL64(q_no),
-                               d64);
-       }
-
-       /* wait until the RST bit is clear or the RST and QUIET bits are set */
-       for (q_no = 0; q_no < num_queues; q_no++) {
-               volatile uint64_t reg_val;
-
-               reg_val = lio_read_csr64(lio_dev,
-                                        CN23XX_SLI_IQ_PKT_CONTROL64(q_no));
-               while ((reg_val & CN23XX_PKT_INPUT_CTL_RST) &&
-                               !(reg_val & CN23XX_PKT_INPUT_CTL_QUIET) &&
-                               loop) {
-                       reg_val = lio_read_csr64(
-                                       lio_dev,
-                                       CN23XX_SLI_IQ_PKT_CONTROL64(q_no));
-                       loop = loop - 1;
-               }
-
-               if (loop == 0) {
-                       lio_dev_err(lio_dev,
-                                   "clearing the reset reg failed or setting the quiet reg failed for qno: %lu\n",
-                                   (unsigned long)q_no);
-                       return -1;
-               }
-
-               reg_val = reg_val & ~CN23XX_PKT_INPUT_CTL_RST;
-               lio_write_csr64(lio_dev, CN23XX_SLI_IQ_PKT_CONTROL64(q_no),
-                               reg_val);
-
-               reg_val = lio_read_csr64(
-                   lio_dev, CN23XX_SLI_IQ_PKT_CONTROL64(q_no));
-               if (reg_val & CN23XX_PKT_INPUT_CTL_RST) {
-                       lio_dev_err(lio_dev,
-                                   "clearing the reset failed for qno: %lu\n",
-                                   (unsigned long)q_no);
-                       ret_val = -1;
-               }
-       }
-
-       return ret_val;
-}
-
-static int
-cn23xx_vf_setup_global_input_regs(struct lio_device *lio_dev)
-{
-       uint64_t q_no;
-       uint64_t d64;
-
-       PMD_INIT_FUNC_TRACE();
-
-       if (cn23xx_vf_reset_io_queues(lio_dev,
-                                     lio_dev->sriov_info.rings_per_vf))
-               return -1;
-
-       for (q_no = 0; q_no < (lio_dev->sriov_info.rings_per_vf); q_no++) {
-               lio_write_csr64(lio_dev, CN23XX_SLI_IQ_DOORBELL(q_no),
-                               0xFFFFFFFF);
-
-               d64 = lio_read_csr64(lio_dev,
-                                    CN23XX_SLI_IQ_INSTR_COUNT64(q_no));
-
-               d64 &= 0xEFFFFFFFFFFFFFFFL;
-
-               lio_write_csr64(lio_dev, CN23XX_SLI_IQ_INSTR_COUNT64(q_no),
-                               d64);
-
-               /* Select ES, RO, NS, RDSIZE,DPTR Fomat#0 for
-                * the Input Queues
-                */
-               lio_write_csr64(lio_dev, CN23XX_SLI_IQ_PKT_CONTROL64(q_no),
-                               CN23XX_PKT_INPUT_CTL_MASK);
-       }
-
-       return 0;
-}
-
-static void
-cn23xx_vf_setup_global_output_regs(struct lio_device *lio_dev)
-{
-       uint32_t reg_val;
-       uint32_t q_no;
-
-       PMD_INIT_FUNC_TRACE();
-
-       for (q_no = 0; q_no < lio_dev->sriov_info.rings_per_vf; q_no++) {
-               lio_write_csr(lio_dev, CN23XX_SLI_OQ_PKTS_CREDIT(q_no),
-                             0xFFFFFFFF);
-
-               reg_val =
-                   lio_read_csr(lio_dev, CN23XX_SLI_OQ_PKTS_SENT(q_no));
-
-               reg_val &= 0xEFFFFFFFFFFFFFFFL;
-
-               lio_write_csr(lio_dev, CN23XX_SLI_OQ_PKTS_SENT(q_no), reg_val);
-
-               reg_val =
-                   lio_read_csr(lio_dev, CN23XX_SLI_OQ_PKT_CONTROL(q_no));
-
-               /* set IPTR & DPTR */
-               reg_val |=
-                   (CN23XX_PKT_OUTPUT_CTL_IPTR | CN23XX_PKT_OUTPUT_CTL_DPTR);
-
-               /* reset BMODE */
-               reg_val &= ~(CN23XX_PKT_OUTPUT_CTL_BMODE);
-
-               /* No Relaxed Ordering, No Snoop, 64-bit Byte swap
-                * for Output Queue Scatter List
-                * reset ROR_P, NSR_P
-                */
-               reg_val &= ~(CN23XX_PKT_OUTPUT_CTL_ROR_P);
-               reg_val &= ~(CN23XX_PKT_OUTPUT_CTL_NSR_P);
-
-#if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN
-               reg_val &= ~(CN23XX_PKT_OUTPUT_CTL_ES_P);
-#elif RTE_BYTE_ORDER == RTE_BIG_ENDIAN
-               reg_val |= (CN23XX_PKT_OUTPUT_CTL_ES_P);
-#endif
-               /* No Relaxed Ordering, No Snoop, 64-bit Byte swap
-                * for Output Queue Data
-                * reset ROR, NSR
-                */
-               reg_val &= ~(CN23XX_PKT_OUTPUT_CTL_ROR);
-               reg_val &= ~(CN23XX_PKT_OUTPUT_CTL_NSR);
-               /* set the ES bit */
-               reg_val |= (CN23XX_PKT_OUTPUT_CTL_ES);
-
-               /* write all the selected settings */
-               lio_write_csr(lio_dev, CN23XX_SLI_OQ_PKT_CONTROL(q_no),
-                             reg_val);
-       }
-}
-
-static int
-cn23xx_vf_setup_device_regs(struct lio_device *lio_dev)
-{
-       PMD_INIT_FUNC_TRACE();
-
-       if (cn23xx_vf_setup_global_input_regs(lio_dev))
-               return -1;
-
-       cn23xx_vf_setup_global_output_regs(lio_dev);
-
-       return 0;
-}
-
-static void
-cn23xx_vf_setup_iq_regs(struct lio_device *lio_dev, uint32_t iq_no)
-{
-       struct lio_instr_queue *iq = lio_dev->instr_queue[iq_no];
-       uint64_t pkt_in_done = 0;
-
-       PMD_INIT_FUNC_TRACE();
-
-       /* Write the start of the input queue's ring and its size */
-       lio_write_csr64(lio_dev, CN23XX_SLI_IQ_BASE_ADDR64(iq_no),
-                       iq->base_addr_dma);
-       lio_write_csr(lio_dev, CN23XX_SLI_IQ_SIZE(iq_no), iq->nb_desc);
-
-       /* Remember the doorbell & instruction count register addr
-        * for this queue
-        */
-       iq->doorbell_reg = (uint8_t *)lio_dev->hw_addr +
-                               CN23XX_SLI_IQ_DOORBELL(iq_no);
-       iq->inst_cnt_reg = (uint8_t *)lio_dev->hw_addr +
-                               CN23XX_SLI_IQ_INSTR_COUNT64(iq_no);
-       lio_dev_dbg(lio_dev, "InstQ[%d]:dbell reg @ 0x%p instcnt_reg @ 0x%p\n",
-                   iq_no, iq->doorbell_reg, iq->inst_cnt_reg);
-
-       /* Store the current instruction counter (used in flush_iq
-        * calculation)
-        */
-       pkt_in_done = rte_read64(iq->inst_cnt_reg);
-
-       /* Clear the count by writing back what we read, but don't
-        * enable data traffic here
-        */
-       rte_write64(pkt_in_done, iq->inst_cnt_reg);
-}
-
-static void
-cn23xx_vf_setup_oq_regs(struct lio_device *lio_dev, uint32_t oq_no)
-{
-       struct lio_droq *droq = lio_dev->droq[oq_no];
-
-       PMD_INIT_FUNC_TRACE();
-
-       lio_write_csr64(lio_dev, CN23XX_SLI_OQ_BASE_ADDR64(oq_no),
-                       droq->desc_ring_dma);
-       lio_write_csr(lio_dev, CN23XX_SLI_OQ_SIZE(oq_no), droq->nb_desc);
-
-       lio_write_csr(lio_dev, CN23XX_SLI_OQ_BUFF_INFO_SIZE(oq_no),
-                     (droq->buffer_size | (OCTEON_RH_SIZE << 16)));
-
-       /* Get the mapped address of the pkt_sent and pkts_credit regs */
-       droq->pkts_sent_reg = (uint8_t *)lio_dev->hw_addr +
-                                       CN23XX_SLI_OQ_PKTS_SENT(oq_no);
-       droq->pkts_credit_reg = (uint8_t *)lio_dev->hw_addr +
-                                       CN23XX_SLI_OQ_PKTS_CREDIT(oq_no);
-}
-
-static void
-cn23xx_vf_free_mbox(struct lio_device *lio_dev)
-{
-       PMD_INIT_FUNC_TRACE();
-
-       rte_free(lio_dev->mbox[0]);
-       lio_dev->mbox[0] = NULL;
-
-       rte_free(lio_dev->mbox);
-       lio_dev->mbox = NULL;
-}
-
-static int
-cn23xx_vf_setup_mbox(struct lio_device *lio_dev)
-{
-       struct lio_mbox *mbox;
-
-       PMD_INIT_FUNC_TRACE();
-
-       if (lio_dev->mbox == NULL) {
-               lio_dev->mbox = rte_zmalloc(NULL, sizeof(void *), 0);
-               if (lio_dev->mbox == NULL)
-                       return -ENOMEM;
-       }
-
-       mbox = rte_zmalloc(NULL, sizeof(struct lio_mbox), 0);
-       if (mbox == NULL) {
-               rte_free(lio_dev->mbox);
-               lio_dev->mbox = NULL;
-               return -ENOMEM;
-       }
-
-       rte_spinlock_init(&mbox->lock);
-
-       mbox->lio_dev = lio_dev;
-
-       mbox->q_no = 0;
-
-       mbox->state = LIO_MBOX_STATE_IDLE;
-
-       /* VF mbox interrupt reg */
-       mbox->mbox_int_reg = (uint8_t *)lio_dev->hw_addr +
-                               CN23XX_VF_SLI_PKT_MBOX_INT(0);
-       /* VF reads from SIG0 reg */
-       mbox->mbox_read_reg = (uint8_t *)lio_dev->hw_addr +
-                               CN23XX_SLI_PKT_PF_VF_MBOX_SIG(0, 0);
-       /* VF writes into SIG1 reg */
-       mbox->mbox_write_reg = (uint8_t *)lio_dev->hw_addr +
-                               CN23XX_SLI_PKT_PF_VF_MBOX_SIG(0, 1);
-
-       lio_dev->mbox[0] = mbox;
-
-       rte_write64(LIO_PFVFSIG, mbox->mbox_read_reg);
-
-       return 0;
-}
-
-static int
-cn23xx_vf_enable_io_queues(struct lio_device *lio_dev)
-{
-       uint32_t q_no;
-
-       PMD_INIT_FUNC_TRACE();
-
-       for (q_no = 0; q_no < lio_dev->num_iqs; q_no++) {
-               uint64_t reg_val;
-
-               /* set the corresponding IQ IS_64B bit */
-               if (lio_dev->io_qmask.iq64B & (1ULL << q_no)) {
-                       reg_val = lio_read_csr64(
-                                       lio_dev,
-                                       CN23XX_SLI_IQ_PKT_CONTROL64(q_no));
-                       reg_val = reg_val | CN23XX_PKT_INPUT_CTL_IS_64B;
-                       lio_write_csr64(lio_dev,
-                                       CN23XX_SLI_IQ_PKT_CONTROL64(q_no),
-                                       reg_val);
-               }
-
-               /* set the corresponding IQ ENB bit */
-               if (lio_dev->io_qmask.iq & (1ULL << q_no)) {
-                       reg_val = lio_read_csr64(
-                                       lio_dev,
-                                       CN23XX_SLI_IQ_PKT_CONTROL64(q_no));
-                       reg_val = reg_val | CN23XX_PKT_INPUT_CTL_RING_ENB;
-                       lio_write_csr64(lio_dev,
-                                       CN23XX_SLI_IQ_PKT_CONTROL64(q_no),
-                                       reg_val);
-               }
-       }
-       for (q_no = 0; q_no < lio_dev->num_oqs; q_no++) {
-               uint32_t reg_val;
-
-               /* set the corresponding OQ ENB bit */
-               if (lio_dev->io_qmask.oq & (1ULL << q_no)) {
-                       reg_val = lio_read_csr(
-                                       lio_dev,
-                                       CN23XX_SLI_OQ_PKT_CONTROL(q_no));
-                       reg_val = reg_val | CN23XX_PKT_OUTPUT_CTL_RING_ENB;
-                       lio_write_csr(lio_dev,
-                                     CN23XX_SLI_OQ_PKT_CONTROL(q_no),
-                                     reg_val);
-               }
-       }
-
-       return 0;
-}
-
-static void
-cn23xx_vf_disable_io_queues(struct lio_device *lio_dev)
-{
-       uint32_t num_queues;
-
-       PMD_INIT_FUNC_TRACE();
-
-       /* per HRM, rings can only be disabled via reset operation,
-        * NOT via SLI_PKT()_INPUT/OUTPUT_CONTROL[ENB]
-        */
-       num_queues = lio_dev->num_iqs;
-       if (num_queues < lio_dev->num_oqs)
-               num_queues = lio_dev->num_oqs;
-
-       cn23xx_vf_reset_io_queues(lio_dev, num_queues);
-}
-
-void
-cn23xx_vf_ask_pf_to_do_flr(struct lio_device *lio_dev)
-{
-       struct lio_mbox_cmd mbox_cmd;
-
-       memset(&mbox_cmd, 0, sizeof(struct lio_mbox_cmd));
-       mbox_cmd.msg.s.type = LIO_MBOX_REQUEST;
-       mbox_cmd.msg.s.resp_needed = 0;
-       mbox_cmd.msg.s.cmd = LIO_VF_FLR_REQUEST;
-       mbox_cmd.msg.s.len = 1;
-       mbox_cmd.q_no = 0;
-       mbox_cmd.recv_len = 0;
-       mbox_cmd.recv_status = 0;
-       mbox_cmd.fn = NULL;
-       mbox_cmd.fn_arg = 0;
-
-       lio_mbox_write(lio_dev, &mbox_cmd);
-}
-
-static void
-cn23xx_pfvf_hs_callback(struct lio_device *lio_dev,
-                       struct lio_mbox_cmd *cmd, void *arg)
-{
-       uint32_t major = 0;
-
-       PMD_INIT_FUNC_TRACE();
-
-       rte_memcpy((uint8_t *)&lio_dev->pfvf_hsword, cmd->msg.s.params, 6);
-       if (cmd->recv_len > 1) {
-               struct lio_version *lio_ver = (struct lio_version *)cmd->data;
-
-               major = lio_ver->major;
-               major = major << 16;
-       }
-
-       rte_atomic64_set((rte_atomic64_t *)arg, major | 1);
-}
-
-int
-cn23xx_pfvf_handshake(struct lio_device *lio_dev)
-{
-       struct lio_mbox_cmd mbox_cmd;
-       struct lio_version *lio_ver = (struct lio_version *)&mbox_cmd.data[0];
-       uint32_t q_no, count = 0;
-       rte_atomic64_t status;
-       uint32_t pfmajor;
-       uint32_t vfmajor;
-       uint32_t ret;
-
-       PMD_INIT_FUNC_TRACE();
-
-       /* Sending VF_ACTIVE indication to the PF driver */
-       lio_dev_dbg(lio_dev, "requesting info from PF\n");
-
-       mbox_cmd.msg.mbox_msg64 = 0;
-       mbox_cmd.msg.s.type = LIO_MBOX_REQUEST;
-       mbox_cmd.msg.s.resp_needed = 1;
-       mbox_cmd.msg.s.cmd = LIO_VF_ACTIVE;
-       mbox_cmd.msg.s.len = 2;
-       mbox_cmd.data[0] = 0;
-       lio_ver->major = LIO_BASE_MAJOR_VERSION;
-       lio_ver->minor = LIO_BASE_MINOR_VERSION;
-       lio_ver->micro = LIO_BASE_MICRO_VERSION;
-       mbox_cmd.q_no = 0;
-       mbox_cmd.recv_len = 0;
-       mbox_cmd.recv_status = 0;
-       mbox_cmd.fn = (lio_mbox_callback)cn23xx_pfvf_hs_callback;
-       mbox_cmd.fn_arg = (void *)&status;
-
-       if (lio_mbox_write(lio_dev, &mbox_cmd)) {
-               lio_dev_err(lio_dev, "Write to mailbox failed\n");
-               return -1;
-       }
-
-       rte_atomic64_set(&status, 0);
-
-       do {
-               rte_delay_ms(1);
-       } while ((rte_atomic64_read(&status) == 0) && (count++ < 10000));
-
-       ret = rte_atomic64_read(&status);
-       if (ret == 0) {
-               lio_dev_err(lio_dev, "cn23xx_pfvf_handshake timeout\n");
-               return -1;
-       }
-
-       for (q_no = 0; q_no < lio_dev->num_iqs; q_no++)
-               lio_dev->instr_queue[q_no]->txpciq.s.pkind =
-                                               lio_dev->pfvf_hsword.pkind;
-
-       vfmajor = LIO_BASE_MAJOR_VERSION;
-       pfmajor = ret >> 16;
-       if (pfmajor != vfmajor) {
-               lio_dev_err(lio_dev,
-                           "VF LiquidIO driver (major version %d) is not compatible with LiquidIO PF driver (major version %d)\n",
-                           vfmajor, pfmajor);
-               ret = -EPERM;
-       } else {
-               lio_dev_dbg(lio_dev,
-                           "VF LiquidIO driver (major version %d), LiquidIO PF driver (major version %d)\n",
-                           vfmajor, pfmajor);
-               ret = 0;
-       }
-
-       lio_dev_dbg(lio_dev, "got data from PF pkind is %d\n",
-                   lio_dev->pfvf_hsword.pkind);
-
-       return ret;
-}
-
-void
-cn23xx_vf_handle_mbox(struct lio_device *lio_dev)
-{
-       uint64_t mbox_int_val;
-
-       /* read and clear by writing 1 */
-       mbox_int_val = rte_read64(lio_dev->mbox[0]->mbox_int_reg);
-       rte_write64(mbox_int_val, lio_dev->mbox[0]->mbox_int_reg);
-       if (lio_mbox_read(lio_dev->mbox[0]))
-               lio_mbox_process_message(lio_dev->mbox[0]);
-}
-
-int
-cn23xx_vf_setup_device(struct lio_device *lio_dev)
-{
-       uint64_t reg_val;
-
-       PMD_INIT_FUNC_TRACE();
-
-       /* INPUT_CONTROL[RPVF] gives the VF IOq count */
-       reg_val = lio_read_csr64(lio_dev, CN23XX_SLI_IQ_PKT_CONTROL64(0));
-
-       lio_dev->pf_num = (reg_val >> CN23XX_PKT_INPUT_CTL_PF_NUM_POS) &
-                               CN23XX_PKT_INPUT_CTL_PF_NUM_MASK;
-       lio_dev->vf_num = (reg_val >> CN23XX_PKT_INPUT_CTL_VF_NUM_POS) &
-                               CN23XX_PKT_INPUT_CTL_VF_NUM_MASK;
-
-       reg_val = reg_val >> CN23XX_PKT_INPUT_CTL_RPVF_POS;
-
-       lio_dev->sriov_info.rings_per_vf =
-                               reg_val & CN23XX_PKT_INPUT_CTL_RPVF_MASK;
-
-       lio_dev->default_config = lio_get_conf(lio_dev);
-       if (lio_dev->default_config == NULL)
-               return -1;
-
-       lio_dev->fn_list.setup_iq_regs          = cn23xx_vf_setup_iq_regs;
-       lio_dev->fn_list.setup_oq_regs          = cn23xx_vf_setup_oq_regs;
-       lio_dev->fn_list.setup_mbox             = cn23xx_vf_setup_mbox;
-       lio_dev->fn_list.free_mbox              = cn23xx_vf_free_mbox;
-
-       lio_dev->fn_list.setup_device_regs      = cn23xx_vf_setup_device_regs;
-
-       lio_dev->fn_list.enable_io_queues       = cn23xx_vf_enable_io_queues;
-       lio_dev->fn_list.disable_io_queues      = cn23xx_vf_disable_io_queues;
-
-       return 0;
-}
-
drivers/net/liquidio/base/lio_23xx_vf.h deleted +0 -63
deleted file mode 100644
index 8e5362db15..0000000000
@@ -1,63 +0,0 @@
-/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2017 Cavium, Inc
- */
-
-#ifndef _LIO_23XX_VF_H_
-#define _LIO_23XX_VF_H_
-
-#include <stdio.h>
-
-#include "lio_struct.h"
-
-static const struct lio_config default_cn23xx_conf     = {
-       .card_type                              = LIO_23XX,
-       .card_name                              = LIO_23XX_NAME,
-       /** IQ attributes */
-       .iq                                     = {
-               .max_iqs                        = CN23XX_CFG_IO_QUEUES,
-               .pending_list_size              =
-                       (CN23XX_MAX_IQ_DESCRIPTORS * CN23XX_CFG_IO_QUEUES),
-               .instr_type                     = OCTEON_64BYTE_INSTR,
-       },
-
-       /** OQ attributes */
-       .oq                                     = {
-               .max_oqs                        = CN23XX_CFG_IO_QUEUES,
-               .info_ptr                       = OCTEON_OQ_INFOPTR_MODE,
-               .refill_threshold               = CN23XX_OQ_REFIL_THRESHOLD,
-       },
-
-       .num_nic_ports                          = CN23XX_DEFAULT_NUM_PORTS,
-       .num_def_rx_descs                       = CN23XX_MAX_OQ_DESCRIPTORS,
-       .num_def_tx_descs                       = CN23XX_MAX_IQ_DESCRIPTORS,
-       .def_rx_buf_size                        = CN23XX_OQ_BUF_SIZE,
-};
-
-static inline const struct lio_config *
-lio_get_conf(struct lio_device *lio_dev)
-{
-       const struct lio_config *default_lio_conf = NULL;
-
-       /* check the LIO Device model & return the corresponding lio
-        * configuration
-        */
-       default_lio_conf = &default_cn23xx_conf;
-
-       if (default_lio_conf == NULL) {
-               lio_dev_err(lio_dev, "Configuration verification failed\n");
-               return NULL;
-       }
-
-       return default_lio_conf;
-}
-
-#define CN23XX_VF_BUSY_READING_REG_LOOP_COUNT  100000
-
-void cn23xx_vf_ask_pf_to_do_flr(struct lio_device *lio_dev);
-
-int cn23xx_pfvf_handshake(struct lio_device *lio_dev);
-
-int cn23xx_vf_setup_device(struct lio_device  *lio_dev);
-
-void cn23xx_vf_handle_mbox(struct lio_device *lio_dev);
-#endif /* _LIO_23XX_VF_H_  */
drivers/net/liquidio/base/lio_hw_defs.h deleted +0 -239
deleted file mode 100644
index 5e119c1241..0000000000
@@ -1,239 +0,0 @@
-/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2017 Cavium, Inc
- */
-
-#ifndef _LIO_HW_DEFS_H_
-#define _LIO_HW_DEFS_H_
-
-#include <rte_io.h>
-
-#ifndef PCI_VENDOR_ID_CAVIUM
-#define PCI_VENDOR_ID_CAVIUM   0x177D
-#endif
-
-#define LIO_CN23XX_VF_VID      0x9712
-
-/* CN23xx subsystem device ids */
-#define PCI_SUBSYS_DEV_ID_CN2350_210           0x0004
-#define PCI_SUBSYS_DEV_ID_CN2360_210           0x0005
-#define PCI_SUBSYS_DEV_ID_CN2360_225           0x0006
-#define PCI_SUBSYS_DEV_ID_CN2350_225           0x0007
-#define PCI_SUBSYS_DEV_ID_CN2350_210SVPN3      0x0008
-#define PCI_SUBSYS_DEV_ID_CN2360_210SVPN3      0x0009
-#define PCI_SUBSYS_DEV_ID_CN2350_210SVPT       0x000a
-#define PCI_SUBSYS_DEV_ID_CN2360_210SVPT       0x000b
-
-/* --------------------------CONFIG VALUES------------------------ */
-
-/* CN23xx IQ configuration macros */
-#define CN23XX_MAX_RINGS_PER_PF                        64
-#define CN23XX_MAX_RINGS_PER_VF                        8
-
-#define CN23XX_MAX_INPUT_QUEUES                        CN23XX_MAX_RINGS_PER_PF
-#define CN23XX_MAX_IQ_DESCRIPTORS              512
-#define CN23XX_MIN_IQ_DESCRIPTORS              128
-
-#define CN23XX_MAX_OUTPUT_QUEUES               CN23XX_MAX_RINGS_PER_PF
-#define CN23XX_MAX_OQ_DESCRIPTORS              512
-#define CN23XX_MIN_OQ_DESCRIPTORS              128
-#define CN23XX_OQ_BUF_SIZE                     1536
-
-#define CN23XX_OQ_REFIL_THRESHOLD              16
-
-#define CN23XX_DEFAULT_NUM_PORTS               1
-
-#define CN23XX_CFG_IO_QUEUES                   CN23XX_MAX_RINGS_PER_PF
-
-/* common OCTEON configuration macros */
-#define OCTEON_64BYTE_INSTR                    64
-#define OCTEON_OQ_INFOPTR_MODE                 1
-
-/* Max IOQs per LIO Link */
-#define LIO_MAX_IOQS_PER_IF                    64
-
-/* Wait time in milliseconds for FLR */
-#define LIO_PCI_FLR_WAIT                       100
-
-enum lio_card_type {
-       LIO_23XX /* 23xx */
-};
-
-#define LIO_23XX_NAME "23xx"
-
-#define LIO_DEV_RUNNING                0xc
-
-#define LIO_OQ_REFILL_THRESHOLD_CFG(cfg)                               \
-               ((cfg)->default_config->oq.refill_threshold)
-#define LIO_NUM_DEF_TX_DESCS_CFG(cfg)                                  \
-               ((cfg)->default_config->num_def_tx_descs)
-
-#define LIO_IQ_INSTR_TYPE(cfg)         ((cfg)->default_config->iq.instr_type)
-
-/* The following config values are fixed and should not be modified. */
-
-/* Maximum number of Instruction queues */
-#define LIO_MAX_INSTR_QUEUES(lio_dev)          CN23XX_MAX_RINGS_PER_VF
-
-#define LIO_MAX_POSSIBLE_INSTR_QUEUES          CN23XX_MAX_INPUT_QUEUES
-#define LIO_MAX_POSSIBLE_OUTPUT_QUEUES         CN23XX_MAX_OUTPUT_QUEUES
-
-#define LIO_DEVICE_NAME_LEN            32
-#define LIO_BASE_MAJOR_VERSION         1
-#define LIO_BASE_MINOR_VERSION         5
-#define LIO_BASE_MICRO_VERSION         1
-
-#define LIO_FW_VERSION_LENGTH          32
-
-#define LIO_Q_RECONF_MIN_VERSION       "1.7.0"
-#define LIO_VF_TRUST_MIN_VERSION       "1.7.1"
-
-/** Tag types used by Octeon cores in its work. */
-enum octeon_tag_type {
-       OCTEON_ORDERED_TAG      = 0,
-       OCTEON_ATOMIC_TAG       = 1,
-};
-
-/* pre-defined host->NIC tag values */
-#define LIO_CONTROL    (0x11111110)
-#define LIO_DATA(i)    (0x11111111 + (i))
-
-/* used for NIC operations */
-#define LIO_OPCODE     1
-
-/* Subcodes are used by host driver/apps to identify the sub-operation
- * for the core. They only need to by unique for a given subsystem.
- */
-#define LIO_OPCODE_SUBCODE(op, sub)            \
-               ((((op) & 0x0f) << 8) | ((sub) & 0x7f))
-
-/** LIO_OPCODE subcodes */
-/* This subcode is sent by core PCI driver to indicate cores are ready. */
-#define LIO_OPCODE_NW_DATA             0x02 /* network packet data */
-#define LIO_OPCODE_CMD                 0x03
-#define LIO_OPCODE_INFO                        0x04
-#define LIO_OPCODE_PORT_STATS          0x05
-#define LIO_OPCODE_IF_CFG              0x09
-
-#define LIO_MIN_RX_BUF_SIZE            64
-#define LIO_MAX_RX_PKTLEN              (64 * 1024)
-
-/* NIC Command types */
-#define LIO_CMD_CHANGE_MTU             0x1
-#define LIO_CMD_CHANGE_DEVFLAGS                0x3
-#define LIO_CMD_RX_CTL                 0x4
-#define LIO_CMD_CLEAR_STATS            0x6
-#define LIO_CMD_SET_RSS                        0xD
-#define LIO_CMD_TNL_RX_CSUM_CTL                0x10
-#define LIO_CMD_TNL_TX_CSUM_CTL                0x11
-#define LIO_CMD_ADD_VLAN_FILTER                0x17
-#define LIO_CMD_DEL_VLAN_FILTER                0x18
-#define LIO_CMD_VXLAN_PORT_CONFIG      0x19
-#define LIO_CMD_QUEUE_COUNT_CTL                0x1f
-
-#define LIO_CMD_VXLAN_PORT_ADD         0x0
-#define LIO_CMD_VXLAN_PORT_DEL         0x1
-#define LIO_CMD_RXCSUM_ENABLE          0x0
-#define LIO_CMD_TXCSUM_ENABLE          0x0
-
-/* RX(packets coming from wire) Checksum verification flags */
-/* TCP/UDP csum */
-#define LIO_L4_CSUM_VERIFIED           0x1
-#define LIO_IP_CSUM_VERIFIED           0x2
-
-/* RSS */
-#define LIO_RSS_PARAM_DISABLE_RSS              0x10
-#define LIO_RSS_PARAM_HASH_KEY_UNCHANGED       0x08
-#define LIO_RSS_PARAM_ITABLE_UNCHANGED         0x04
-#define LIO_RSS_PARAM_HASH_INFO_UNCHANGED      0x02
-
-#define LIO_RSS_HASH_IPV4                      0x100
-#define LIO_RSS_HASH_TCP_IPV4                  0x200
-#define LIO_RSS_HASH_IPV6                      0x400
-#define LIO_RSS_HASH_TCP_IPV6                  0x1000
-#define LIO_RSS_HASH_IPV6_EX                   0x800
-#define LIO_RSS_HASH_TCP_IPV6_EX               0x2000
-
-#define LIO_RSS_OFFLOAD_ALL (          \
-               LIO_RSS_HASH_IPV4 |     \
-               LIO_RSS_HASH_TCP_IPV4 | \
-               LIO_RSS_HASH_IPV6 |     \
-               LIO_RSS_HASH_TCP_IPV6 | \
-               LIO_RSS_HASH_IPV6_EX |  \
-               LIO_RSS_HASH_TCP_IPV6_EX)
-
-#define LIO_RSS_MAX_TABLE_SZ           128
-#define LIO_RSS_MAX_KEY_SZ             40
-#define LIO_RSS_PARAM_SIZE             16
-
-/* Interface flags communicated between host driver and core app. */
-enum lio_ifflags {
-       LIO_IFFLAG_PROMISC      = 0x01,
-       LIO_IFFLAG_ALLMULTI     = 0x02,
-       LIO_IFFLAG_UNICAST      = 0x10
-};
-
-/* Routines for reading and writing CSRs */
-#ifdef RTE_LIBRTE_LIO_DEBUG_REGS
-#define lio_write_csr(lio_dev, reg_off, value)                         \
-       do {                                                            \
-               typeof(lio_dev) _dev = lio_dev;                         \
-               typeof(reg_off) _reg_off = reg_off;                     \
-               typeof(value) _value = value;                           \
-               PMD_REGS_LOG(_dev,                                      \
-                            "Write32: Reg: 0x%08lx Val: 0x%08lx\n",    \
-                            (unsigned long)_reg_off,                   \
-                            (unsigned long)_value);                    \
-               rte_write32(_value, _dev->hw_addr + _reg_off);          \
-       } while (0)
-
-#define lio_write_csr64(lio_dev, reg_off, val64)                       \
-       do {                                                            \
-               typeof(lio_dev) _dev = lio_dev;                         \
-               typeof(reg_off) _reg_off = reg_off;                     \
-               typeof(val64) _val64 = val64;                           \
-               PMD_REGS_LOG(                                           \
-                   _dev,                                               \
-                   "Write64: Reg: 0x%08lx Val: 0x%016llx\n",           \
-                   (unsigned long)_reg_off,                            \
-                   (unsigned long long)_val64);                        \
-               rte_write64(_val64, _dev->hw_addr + _reg_off);          \
-       } while (0)
-
-#define lio_read_csr(lio_dev, reg_off)                                 \
-       ({                                                              \
-               typeof(lio_dev) _dev = lio_dev;                         \
-               typeof(reg_off) _reg_off = reg_off;                     \
-               uint32_t val = rte_read32(_dev->hw_addr + _reg_off);    \
-               PMD_REGS_LOG(_dev,                                      \
-                            "Read32: Reg: 0x%08lx Val: 0x%08lx\n",     \
-                            (unsigned long)_reg_off,                   \
-                            (unsigned long)val);                       \
-               val;                                                    \
-       })
-
-#define lio_read_csr64(lio_dev, reg_off)                               \
-       ({                                                              \
-               typeof(lio_dev) _dev = lio_dev;                         \
-               typeof(reg_off) _reg_off = reg_off;                     \
-               uint64_t val64 = rte_read64(_dev->hw_addr + _reg_off);  \
-               PMD_REGS_LOG(                                           \
-                   _dev,                                               \
-                   "Read64: Reg: 0x%08lx Val: 0x%016llx\n",            \
-                   (unsigned long)_reg_off,                            \
-                   (unsigned long long)val64);                         \
-               val64;                                                  \
-       })
-#else
-#define lio_write_csr(lio_dev, reg_off, value)                         \
-       rte_write32(value, (lio_dev)->hw_addr + (reg_off))
-
-#define lio_write_csr64(lio_dev, reg_off, val64)                       \
-       rte_write64(val64, (lio_dev)->hw_addr + (reg_off))
-
-#define lio_read_csr(lio_dev, reg_off)                                 \
-       rte_read32((lio_dev)->hw_addr + (reg_off))
-
-#define lio_read_csr64(lio_dev, reg_off)                               \
-       rte_read64((lio_dev)->hw_addr + (reg_off))
-#endif
-#endif /* _LIO_HW_DEFS_H_ */
drivers/net/liquidio/base/lio_mbox.c deleted +0 -246
deleted file mode 100644
index 2ac2b1b334..0000000000
@@ -1,246 +0,0 @@
-/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2017 Cavium, Inc
- */
-
-#include <ethdev_driver.h>
-#include <rte_cycles.h>
-
-#include "lio_logs.h"
-#include "lio_struct.h"
-#include "lio_mbox.h"
-
-/**
- * lio_mbox_read:
- * @mbox: Pointer mailbox
- *
- * Reads the 8-bytes of data from the mbox register
- * Writes back the acknowledgment indicating completion of read
- */
-int
-lio_mbox_read(struct lio_mbox *mbox)
-{
-       union lio_mbox_message msg;
-       int ret = 0;
-
-       msg.mbox_msg64 = rte_read64(mbox->mbox_read_reg);
-
-       if ((msg.mbox_msg64 == LIO_PFVFACK) || (msg.mbox_msg64 == LIO_PFVFSIG))
-               return 0;
-
-       if (mbox->state & LIO_MBOX_STATE_REQ_RECEIVING) {
-               mbox->mbox_req.data[mbox->mbox_req.recv_len - 1] =
-                                       msg.mbox_msg64;
-               mbox->mbox_req.recv_len++;
-       } else {
-               if (mbox->state & LIO_MBOX_STATE_RES_RECEIVING) {
-                       mbox->mbox_resp.data[mbox->mbox_resp.recv_len - 1] =
-                                       msg.mbox_msg64;
-                       mbox->mbox_resp.recv_len++;
-               } else {
-                       if ((mbox->state & LIO_MBOX_STATE_IDLE) &&
-                                       (msg.s.type == LIO_MBOX_REQUEST)) {
-                               mbox->state &= ~LIO_MBOX_STATE_IDLE;
-                               mbox->state |= LIO_MBOX_STATE_REQ_RECEIVING;
-                               mbox->mbox_req.msg.mbox_msg64 = msg.mbox_msg64;
-                               mbox->mbox_req.q_no = mbox->q_no;
-                               mbox->mbox_req.recv_len = 1;
-                       } else {
-                               if ((mbox->state &
-                                    LIO_MBOX_STATE_RES_PENDING) &&
-                                   (msg.s.type == LIO_MBOX_RESPONSE)) {
-                                       mbox->state &=
-                                               ~LIO_MBOX_STATE_RES_PENDING;
-                                       mbox->state |=
-                                               LIO_MBOX_STATE_RES_RECEIVING;
-                                       mbox->mbox_resp.msg.mbox_msg64 =
-                                                               msg.mbox_msg64;
-                                       mbox->mbox_resp.q_no = mbox->q_no;
-                                       mbox->mbox_resp.recv_len = 1;
-                               } else {
-                                       rte_write64(LIO_PFVFERR,
-                                                   mbox->mbox_read_reg);
-                                       mbox->state |= LIO_MBOX_STATE_ERROR;
-                                       return -1;
-                               }
-                       }
-               }
-       }
-
-       if (mbox->state & LIO_MBOX_STATE_REQ_RECEIVING) {
-               if (mbox->mbox_req.recv_len < msg.s.len) {
-                       ret = 0;
-               } else {
-                       mbox->state &= ~LIO_MBOX_STATE_REQ_RECEIVING;
-                       mbox->state |= LIO_MBOX_STATE_REQ_RECEIVED;
-                       ret = 1;
-               }
-       } else {
-               if (mbox->state & LIO_MBOX_STATE_RES_RECEIVING) {
-                       if (mbox->mbox_resp.recv_len < msg.s.len) {
-                               ret = 0;
-                       } else {
-                               mbox->state &= ~LIO_MBOX_STATE_RES_RECEIVING;
-                               mbox->state |= LIO_MBOX_STATE_RES_RECEIVED;
-                               ret = 1;
-                       }
-               } else {
-                       RTE_ASSERT(0);
-               }
-       }
-
-       rte_write64(LIO_PFVFACK, mbox->mbox_read_reg);
-
-       return ret;
-}
-
-/**
- * lio_mbox_write:
- * @lio_dev: Pointer lio device
- * @mbox_cmd: Cmd to send to mailbox.
- *
- * Populates the queue specific mbox structure
- * with cmd information.
- * Write the cmd to mbox register
- */
-int
-lio_mbox_write(struct lio_device *lio_dev,
-              struct lio_mbox_cmd *mbox_cmd)
-{
-       struct lio_mbox *mbox = lio_dev->mbox[mbox_cmd->q_no];
-       uint32_t count, i, ret = LIO_MBOX_STATUS_SUCCESS;
-
-       if ((mbox_cmd->msg.s.type == LIO_MBOX_RESPONSE) &&
-                       !(mbox->state & LIO_MBOX_STATE_REQ_RECEIVED))
-               return LIO_MBOX_STATUS_FAILED;
-
-       if ((mbox_cmd->msg.s.type == LIO_MBOX_REQUEST) &&
-                       !(mbox->state & LIO_MBOX_STATE_IDLE))
-               return LIO_MBOX_STATUS_BUSY;
-
-       if (mbox_cmd->msg.s.type == LIO_MBOX_REQUEST) {
-               rte_memcpy(&mbox->mbox_resp, mbox_cmd,
-                          sizeof(struct lio_mbox_cmd));
-               mbox->state = LIO_MBOX_STATE_RES_PENDING;
-       }
-
-       count = 0;
-
-       while (rte_read64(mbox->mbox_write_reg) != LIO_PFVFSIG) {
-               rte_delay_ms(1);
-               if (count++ == 1000) {
-                       ret = LIO_MBOX_STATUS_FAILED;
-                       break;
-               }
-       }
-
-       if (ret == LIO_MBOX_STATUS_SUCCESS) {
-               rte_write64(mbox_cmd->msg.mbox_msg64, mbox->mbox_write_reg);
-               for (i = 0; i < (uint32_t)(mbox_cmd->msg.s.len - 1); i++) {
-                       count = 0;
-                       while (rte_read64(mbox->mbox_write_reg) !=
-                                       LIO_PFVFACK) {
-                               rte_delay_ms(1);
-                               if (count++ == 1000) {
-                                       ret = LIO_MBOX_STATUS_FAILED;
-                                       break;
-                               }
-                       }
-                       rte_write64(mbox_cmd->data[i], mbox->mbox_write_reg);
-               }
-       }
-
-       if (mbox_cmd->msg.s.type == LIO_MBOX_RESPONSE) {
-               mbox->state = LIO_MBOX_STATE_IDLE;
-               rte_write64(LIO_PFVFSIG, mbox->mbox_read_reg);
-       } else {
-               if ((!mbox_cmd->msg.s.resp_needed) ||
-                               (ret == LIO_MBOX_STATUS_FAILED)) {
-                       mbox->state &= ~LIO_MBOX_STATE_RES_PENDING;
-                       if (!(mbox->state & (LIO_MBOX_STATE_REQ_RECEIVING |
-                                            LIO_MBOX_STATE_REQ_RECEIVED)))
-                               mbox->state = LIO_MBOX_STATE_IDLE;
-               }
-       }
-
-       return ret;
-}
-
-/**
- * lio_mbox_process_cmd:
- * @mbox: Pointer mailbox
- * @mbox_cmd: Pointer to command received
- *
- * Process the cmd received in mbox
- */
-static int
-lio_mbox_process_cmd(struct lio_mbox *mbox,
-                    struct lio_mbox_cmd *mbox_cmd)
-{
-       struct lio_device *lio_dev = mbox->lio_dev;
-
-       if (mbox_cmd->msg.s.cmd == LIO_CORES_CRASHED)
-               lio_dev_err(lio_dev, "Octeon core(s) crashed or got stuck!\n");
-
-       return 0;
-}
-
-/**
- * Process the received mbox message.
- */
-int
-lio_mbox_process_message(struct lio_mbox *mbox)
-{
-       struct lio_mbox_cmd mbox_cmd;
-
-       if (mbox->state & LIO_MBOX_STATE_ERROR) {
-               if (mbox->state & (LIO_MBOX_STATE_RES_PENDING |
-                                  LIO_MBOX_STATE_RES_RECEIVING)) {
-                       rte_memcpy(&mbox_cmd, &mbox->mbox_resp,
-                                  sizeof(struct lio_mbox_cmd));
-                       mbox->state = LIO_MBOX_STATE_IDLE;
-                       rte_write64(LIO_PFVFSIG, mbox->mbox_read_reg);
-                       mbox_cmd.recv_status = 1;
-                       if (mbox_cmd.fn)
-                               mbox_cmd.fn(mbox->lio_dev, &mbox_cmd,
-                                           mbox_cmd.fn_arg);
-
-                       return 0;
-               }
-
-               mbox->state = LIO_MBOX_STATE_IDLE;
-               rte_write64(LIO_PFVFSIG, mbox->mbox_read_reg);
-
-               return 0;
-       }
-
-       if (mbox->state & LIO_MBOX_STATE_RES_RECEIVED) {
-               rte_memcpy(&mbox_cmd, &mbox->mbox_resp,
-                          sizeof(struct lio_mbox_cmd));
-               mbox->state = LIO_MBOX_STATE_IDLE;
-               rte_write64(LIO_PFVFSIG, mbox->mbox_read_reg);
-               mbox_cmd.recv_status = 0;
-               if (mbox_cmd.fn)
-                       mbox_cmd.fn(mbox->lio_dev, &mbox_cmd, mbox_cmd.fn_arg);
-
-               return 0;
-       }
-
-       if (mbox->state & LIO_MBOX_STATE_REQ_RECEIVED) {
-               rte_memcpy(&mbox_cmd, &mbox->mbox_req,
-                          sizeof(struct lio_mbox_cmd));
-               if (!mbox_cmd.msg.s.resp_needed) {
-                       mbox->state &= ~LIO_MBOX_STATE_REQ_RECEIVED;
-                       if (!(mbox->state & LIO_MBOX_STATE_RES_PENDING))
-                               mbox->state = LIO_MBOX_STATE_IDLE;
-                       rte_write64(LIO_PFVFSIG, mbox->mbox_read_reg);
-               }
-
-               lio_mbox_process_cmd(mbox, &mbox_cmd);
-
-               return 0;
-       }
-
-       RTE_ASSERT(0);
-
-       return 0;
-}
drivers/net/liquidio/base/lio_mbox.h deleted +0 -102
deleted file mode 100644
index 457917e91f..0000000000
@@ -1,102 +0,0 @@
-/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2017 Cavium, Inc
- */
-
-#ifndef _LIO_MBOX_H_
-#define _LIO_MBOX_H_
-
-#include <stdint.h>
-
-#include <rte_spinlock.h>
-
-/* Macros for Mail Box Communication */
-
-#define LIO_MBOX_DATA_MAX                      32
-
-#define LIO_VF_ACTIVE                          0x1
-#define LIO_VF_FLR_REQUEST                     0x2
-#define LIO_CORES_CRASHED                      0x3
-
-/* Macro for Read acknowledgment */
-#define LIO_PFVFACK                            0xffffffffffffffff
-#define LIO_PFVFSIG                            0x1122334455667788
-#define LIO_PFVFERR                            0xDEADDEADDEADDEAD
-
-enum lio_mbox_cmd_status {
-       LIO_MBOX_STATUS_SUCCESS         = 0,
-       LIO_MBOX_STATUS_FAILED          = 1,
-       LIO_MBOX_STATUS_BUSY            = 2
-};
-
-enum lio_mbox_message_type {
-       LIO_MBOX_REQUEST        = 0,
-       LIO_MBOX_RESPONSE       = 1
-};
-
-union lio_mbox_message {
-       uint64_t mbox_msg64;
-       struct {
-               uint16_t type : 1;
-               uint16_t resp_needed : 1;
-               uint16_t cmd : 6;
-               uint16_t len : 8;
-               uint8_t params[6];
-       } s;
-};
-
-typedef void (*lio_mbox_callback)(void *, void *, void *);
-
-struct lio_mbox_cmd {
-       union lio_mbox_message msg;
-       uint64_t data[LIO_MBOX_DATA_MAX];
-       uint32_t q_no;
-       uint32_t recv_len;
-       uint32_t recv_status;
-       lio_mbox_callback fn;
-       void *fn_arg;
-};
-
-enum lio_mbox_state {
-       LIO_MBOX_STATE_IDLE             = 1,
-       LIO_MBOX_STATE_REQ_RECEIVING    = 2,
-       LIO_MBOX_STATE_REQ_RECEIVED     = 4,
-       LIO_MBOX_STATE_RES_PENDING      = 8,
-       LIO_MBOX_STATE_RES_RECEIVING    = 16,
-       LIO_MBOX_STATE_RES_RECEIVED     = 16,
-       LIO_MBOX_STATE_ERROR            = 32
-};
-
-struct lio_mbox {
-       /* A spinlock to protect access to this q_mbox. */
-       rte_spinlock_t lock;
-
-       struct lio_device *lio_dev;
-
-       uint32_t q_no;
-
-       enum lio_mbox_state state;
-
-       /* SLI_MAC_PF_MBOX_INT for PF, SLI_PKT_MBOX_INT for VF. */
-       void *mbox_int_reg;
-
-       /* SLI_PKT_PF_VF_MBOX_SIG(0) for PF,
-        * SLI_PKT_PF_VF_MBOX_SIG(1) for VF.
-        */
-       void *mbox_write_reg;
-
-       /* SLI_PKT_PF_VF_MBOX_SIG(1) for PF,
-        * SLI_PKT_PF_VF_MBOX_SIG(0) for VF.
-        */
-       void *mbox_read_reg;
-
-       struct lio_mbox_cmd mbox_req;
-
-       struct lio_mbox_cmd mbox_resp;
-
-};
-
-int lio_mbox_read(struct lio_mbox *mbox);
-int lio_mbox_write(struct lio_device *lio_dev,
-                  struct lio_mbox_cmd *mbox_cmd);
-int lio_mbox_process_message(struct lio_mbox *mbox);
-#endif /* _LIO_MBOX_H_ */
drivers/net/liquidio/lio_ethdev.c deleted +0 -2147
deleted file mode 100644
index ebcfbb1a5c..0000000000
@@ -1,2147 +0,0 @@
-/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2017 Cavium, Inc
- */
-
-#include <rte_string_fns.h>
-#include <ethdev_driver.h>
-#include <ethdev_pci.h>
-#include <rte_cycles.h>
-#include <rte_malloc.h>
-#include <rte_alarm.h>
-#include <rte_ether.h>
-
-#include "lio_logs.h"
-#include "lio_23xx_vf.h"
-#include "lio_ethdev.h"
-#include "lio_rxtx.h"
-
-/* Default RSS key in use */
-static uint8_t lio_rss_key[40] = {
-       0x6D, 0x5A, 0x56, 0xDA, 0x25, 0x5B, 0x0E, 0xC2,
-       0x41, 0x67, 0x25, 0x3D, 0x43, 0xA3, 0x8F, 0xB0,
-       0xD0, 0xCA, 0x2B, 0xCB, 0xAE, 0x7B, 0x30, 0xB4,
-       0x77, 0xCB, 0x2D, 0xA3, 0x80, 0x30, 0xF2, 0x0C,
-       0x6A, 0x42, 0xB7, 0x3B, 0xBE, 0xAC, 0x01, 0xFA,
-};
-
-static const struct rte_eth_desc_lim lio_rx_desc_lim = {
-       .nb_max         = CN23XX_MAX_OQ_DESCRIPTORS,
-       .nb_min         = CN23XX_MIN_OQ_DESCRIPTORS,
-       .nb_align       = 1,
-};
-
-static const struct rte_eth_desc_lim lio_tx_desc_lim = {
-       .nb_max         = CN23XX_MAX_IQ_DESCRIPTORS,
-       .nb_min         = CN23XX_MIN_IQ_DESCRIPTORS,
-       .nb_align       = 1,
-};
-
-/* Wait for control command to reach nic. */
-static uint16_t
-lio_wait_for_ctrl_cmd(struct lio_device *lio_dev,
-                     struct lio_dev_ctrl_cmd *ctrl_cmd)
-{
-       uint16_t timeout = LIO_MAX_CMD_TIMEOUT;
-
-       while ((ctrl_cmd->cond == 0) && --timeout) {
-               lio_flush_iq(lio_dev, lio_dev->instr_queue[0]);
-               rte_delay_ms(1);
-       }
-
-       return !timeout;
-}
-
-/**
- * \brief Send Rx control command
- * @param eth_dev Pointer to the structure rte_eth_dev
- * @param start_stop whether to start or stop
- */
-static int
-lio_send_rx_ctrl_cmd(struct rte_eth_dev *eth_dev, int start_stop)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       struct lio_dev_ctrl_cmd ctrl_cmd;
-       struct lio_ctrl_pkt ctrl_pkt;
-
-       /* flush added to prevent cmd failure
-        * incase the queue is full
-        */
-       lio_flush_iq(lio_dev, lio_dev->instr_queue[0]);
-
-       memset(&ctrl_pkt, 0, sizeof(struct lio_ctrl_pkt));
-       memset(&ctrl_cmd, 0, sizeof(struct lio_dev_ctrl_cmd));
-
-       ctrl_cmd.eth_dev = eth_dev;
-       ctrl_cmd.cond = 0;
-
-       ctrl_pkt.ncmd.s.cmd = LIO_CMD_RX_CTL;
-       ctrl_pkt.ncmd.s.param1 = start_stop;
-       ctrl_pkt.ctrl_cmd = &ctrl_cmd;
-
-       if (lio_send_ctrl_pkt(lio_dev, &ctrl_pkt)) {
-               lio_dev_err(lio_dev, "Failed to send RX Control message\n");
-               return -1;
-       }
-
-       if (lio_wait_for_ctrl_cmd(lio_dev, &ctrl_cmd)) {
-               lio_dev_err(lio_dev, "RX Control command timed out\n");
-               return -1;
-       }
-
-       return 0;
-}
-
-/* store statistics names and its offset in stats structure */
-struct rte_lio_xstats_name_off {
-       char name[RTE_ETH_XSTATS_NAME_SIZE];
-       unsigned int offset;
-};
-
-static const struct rte_lio_xstats_name_off rte_lio_stats_strings[] = {
-       {"rx_pkts", offsetof(struct octeon_rx_stats, total_rcvd)},
-       {"rx_bytes", offsetof(struct octeon_rx_stats, bytes_rcvd)},
-       {"rx_broadcast_pkts", offsetof(struct octeon_rx_stats, total_bcst)},
-       {"rx_multicast_pkts", offsetof(struct octeon_rx_stats, total_mcst)},
-       {"rx_flow_ctrl_pkts", offsetof(struct octeon_rx_stats, ctl_rcvd)},
-       {"rx_fifo_err", offsetof(struct octeon_rx_stats, fifo_err)},
-       {"rx_dmac_drop", offsetof(struct octeon_rx_stats, dmac_drop)},
-       {"rx_fcs_err", offsetof(struct octeon_rx_stats, fcs_err)},
-       {"rx_jabber_err", offsetof(struct octeon_rx_stats, jabber_err)},
-       {"rx_l2_err", offsetof(struct octeon_rx_stats, l2_err)},
-       {"rx_vxlan_pkts", offsetof(struct octeon_rx_stats, fw_rx_vxlan)},
-       {"rx_vxlan_err", offsetof(struct octeon_rx_stats, fw_rx_vxlan_err)},
-       {"rx_lro_pkts", offsetof(struct octeon_rx_stats, fw_lro_pkts)},
-       {"tx_pkts", (offsetof(struct octeon_tx_stats, total_pkts_sent)) +
-                                               sizeof(struct octeon_rx_stats)},
-       {"tx_bytes", (offsetof(struct octeon_tx_stats, total_bytes_sent)) +
-                                               sizeof(struct octeon_rx_stats)},
-       {"tx_broadcast_pkts",
-               (offsetof(struct octeon_tx_stats, bcast_pkts_sent)) +
-                       sizeof(struct octeon_rx_stats)},
-       {"tx_multicast_pkts",
-               (offsetof(struct octeon_tx_stats, mcast_pkts_sent)) +
-                       sizeof(struct octeon_rx_stats)},
-       {"tx_flow_ctrl_pkts", (offsetof(struct octeon_tx_stats, ctl_sent)) +
-                                               sizeof(struct octeon_rx_stats)},
-       {"tx_fifo_err", (offsetof(struct octeon_tx_stats, fifo_err)) +
-                                               sizeof(struct octeon_rx_stats)},
-       {"tx_total_collisions", (offsetof(struct octeon_tx_stats,
-                                         total_collisions)) +
-                                               sizeof(struct octeon_rx_stats)},
-       {"tx_tso", (offsetof(struct octeon_tx_stats, fw_tso)) +
-                                               sizeof(struct octeon_rx_stats)},
-       {"tx_vxlan_pkts", (offsetof(struct octeon_tx_stats, fw_tx_vxlan)) +
-                                               sizeof(struct octeon_rx_stats)},
-};
-
-#define LIO_NB_XSTATS  RTE_DIM(rte_lio_stats_strings)
-
-/* Get hw stats of the port */
-static int
-lio_dev_xstats_get(struct rte_eth_dev *eth_dev, struct rte_eth_xstat *xstats,
-                  unsigned int n)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       uint16_t timeout = LIO_MAX_CMD_TIMEOUT;
-       struct octeon_link_stats *hw_stats;
-       struct lio_link_stats_resp *resp;
-       struct lio_soft_command *sc;
-       uint32_t resp_size;
-       unsigned int i;
-       int retval;
-
-       if (!lio_dev->intf_open) {
-               lio_dev_err(lio_dev, "Port %d down\n",
-                           lio_dev->port_id);
-               return -EINVAL;
-       }
-
-       if (n < LIO_NB_XSTATS)
-               return LIO_NB_XSTATS;
-
-       resp_size = sizeof(struct lio_link_stats_resp);
-       sc = lio_alloc_soft_command(lio_dev, 0, resp_size, 0);
-       if (sc == NULL)
-               return -ENOMEM;
-
-       resp = (struct lio_link_stats_resp *)sc->virtrptr;
-       lio_prepare_soft_command(lio_dev, sc, LIO_OPCODE,
-                                LIO_OPCODE_PORT_STATS, 0, 0, 0);
-
-       /* Setting wait time in seconds */
-       sc->wait_time = LIO_MAX_CMD_TIMEOUT / 1000;
-
-       retval = lio_send_soft_command(lio_dev, sc);
-       if (retval == LIO_IQ_SEND_FAILED) {
-               lio_dev_err(lio_dev, "failed to get port stats from firmware. status: %x\n",
-                           retval);
-               goto get_stats_fail;
-       }
-
-       while ((*sc->status_word == LIO_COMPLETION_WORD_INIT) && --timeout) {
-               lio_flush_iq(lio_dev, lio_dev->instr_queue[sc->iq_no]);
-               lio_process_ordered_list(lio_dev);
-               rte_delay_ms(1);
-       }
-
-       retval = resp->status;
-       if (retval) {
-               lio_dev_err(lio_dev, "failed to get port stats from firmware\n");
-               goto get_stats_fail;
-       }
-
-       lio_swap_8B_data((uint64_t *)(&resp->link_stats),
-                        sizeof(struct octeon_link_stats) >> 3);
-
-       hw_stats = &resp->link_stats;
-
-       for (i = 0; i < LIO_NB_XSTATS; i++) {
-               xstats[i].id = i;
-               xstats[i].value =
-                   *(uint64_t *)(((char *)hw_stats) +
-                                       rte_lio_stats_strings[i].offset);
-       }
-
-       lio_free_soft_command(sc);
-
-       return LIO_NB_XSTATS;
-
-get_stats_fail:
-       lio_free_soft_command(sc);
-
-       return -1;
-}
-
-static int
-lio_dev_xstats_get_names(struct rte_eth_dev *eth_dev,
-                        struct rte_eth_xstat_name *xstats_names,
-                        unsigned limit __rte_unused)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       unsigned int i;
-
-       if (!lio_dev->intf_open) {
-               lio_dev_err(lio_dev, "Port %d down\n",
-                           lio_dev->port_id);
-               return -EINVAL;
-       }
-
-       if (xstats_names == NULL)
-               return LIO_NB_XSTATS;
-
-       /* Note: limit checked in rte_eth_xstats_names() */
-
-       for (i = 0; i < LIO_NB_XSTATS; i++) {
-               snprintf(xstats_names[i].name, sizeof(xstats_names[i].name),
-                        "%s", rte_lio_stats_strings[i].name);
-       }
-
-       return LIO_NB_XSTATS;
-}
-
-/* Reset hw stats for the port */
-static int
-lio_dev_xstats_reset(struct rte_eth_dev *eth_dev)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       struct lio_dev_ctrl_cmd ctrl_cmd;
-       struct lio_ctrl_pkt ctrl_pkt;
-       int ret;
-
-       if (!lio_dev->intf_open) {
-               lio_dev_err(lio_dev, "Port %d down\n",
-                           lio_dev->port_id);
-               return -EINVAL;
-       }
-
-       /* flush added to prevent cmd failure
-        * incase the queue is full
-        */
-       lio_flush_iq(lio_dev, lio_dev->instr_queue[0]);
-
-       memset(&ctrl_pkt, 0, sizeof(struct lio_ctrl_pkt));
-       memset(&ctrl_cmd, 0, sizeof(struct lio_dev_ctrl_cmd));
-
-       ctrl_cmd.eth_dev = eth_dev;
-       ctrl_cmd.cond = 0;
-
-       ctrl_pkt.ncmd.s.cmd = LIO_CMD_CLEAR_STATS;
-       ctrl_pkt.ctrl_cmd = &ctrl_cmd;
-
-       ret = lio_send_ctrl_pkt(lio_dev, &ctrl_pkt);
-       if (ret != 0) {
-               lio_dev_err(lio_dev, "Failed to send clear stats command\n");
-               return ret;
-       }
-
-       ret = lio_wait_for_ctrl_cmd(lio_dev, &ctrl_cmd);
-       if (ret != 0) {
-               lio_dev_err(lio_dev, "Clear stats command timed out\n");
-               return ret;
-       }
-
-       /* clear stored per queue stats */
-       if (*eth_dev->dev_ops->stats_reset == NULL)
-               return 0;
-       return (*eth_dev->dev_ops->stats_reset)(eth_dev);
-}
-
-/* Retrieve the device statistics (# packets in/out, # bytes in/out, etc */
-static int
-lio_dev_stats_get(struct rte_eth_dev *eth_dev,
-                 struct rte_eth_stats *stats)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       struct lio_droq_stats *oq_stats;
-       struct lio_iq_stats *iq_stats;
-       struct lio_instr_queue *txq;
-       struct lio_droq *droq;
-       int i, iq_no, oq_no;
-       uint64_t bytes = 0;
-       uint64_t pkts = 0;
-       uint64_t drop = 0;
-
-       for (i = 0; i < eth_dev->data->nb_tx_queues; i++) {
-               iq_no = lio_dev->linfo.txpciq[i].s.q_no;
-               txq = lio_dev->instr_queue[iq_no];
-               if (txq != NULL) {
-                       iq_stats = &txq->stats;
-                       pkts += iq_stats->tx_done;
-                       drop += iq_stats->tx_dropped;
-                       bytes += iq_stats->tx_tot_bytes;
-               }
-       }
-
-       stats->opackets = pkts;
-       stats->obytes = bytes;
-       stats->oerrors = drop;
-
-       pkts = 0;
-       drop = 0;
-       bytes = 0;
-
-       for (i = 0; i < eth_dev->data->nb_rx_queues; i++) {
-               oq_no = lio_dev->linfo.rxpciq[i].s.q_no;
-               droq = lio_dev->droq[oq_no];
-               if (droq != NULL) {
-                       oq_stats = &droq->stats;
-                       pkts += oq_stats->rx_pkts_received;
-                       drop += (oq_stats->rx_dropped +
-                                       oq_stats->dropped_toomany +
-                                       oq_stats->dropped_nomem);
-                       bytes += oq_stats->rx_bytes_received;
-               }
-       }
-       stats->ibytes = bytes;
-       stats->ipackets = pkts;
-       stats->ierrors = drop;
-
-       return 0;
-}
-
-static int
-lio_dev_stats_reset(struct rte_eth_dev *eth_dev)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       struct lio_droq_stats *oq_stats;
-       struct lio_iq_stats *iq_stats;
-       struct lio_instr_queue *txq;
-       struct lio_droq *droq;
-       int i, iq_no, oq_no;
-
-       for (i = 0; i < eth_dev->data->nb_tx_queues; i++) {
-               iq_no = lio_dev->linfo.txpciq[i].s.q_no;
-               txq = lio_dev->instr_queue[iq_no];
-               if (txq != NULL) {
-                       iq_stats = &txq->stats;
-                       memset(iq_stats, 0, sizeof(struct lio_iq_stats));
-               }
-       }
-
-       for (i = 0; i < eth_dev->data->nb_rx_queues; i++) {
-               oq_no = lio_dev->linfo.rxpciq[i].s.q_no;
-               droq = lio_dev->droq[oq_no];
-               if (droq != NULL) {
-                       oq_stats = &droq->stats;
-                       memset(oq_stats, 0, sizeof(struct lio_droq_stats));
-               }
-       }
-
-       return 0;
-}
-
-static int
-lio_dev_info_get(struct rte_eth_dev *eth_dev,
-                struct rte_eth_dev_info *devinfo)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       struct rte_pci_device *pci_dev = RTE_ETH_DEV_TO_PCI(eth_dev);
-
-       switch (pci_dev->id.subsystem_device_id) {
-       /* CN23xx 10G cards */
-       case PCI_SUBSYS_DEV_ID_CN2350_210:
-       case PCI_SUBSYS_DEV_ID_CN2360_210:
-       case PCI_SUBSYS_DEV_ID_CN2350_210SVPN3:
-       case PCI_SUBSYS_DEV_ID_CN2360_210SVPN3:
-       case PCI_SUBSYS_DEV_ID_CN2350_210SVPT:
-       case PCI_SUBSYS_DEV_ID_CN2360_210SVPT:
-               devinfo->speed_capa = RTE_ETH_LINK_SPEED_10G;
-               break;
-       /* CN23xx 25G cards */
-       case PCI_SUBSYS_DEV_ID_CN2350_225:
-       case PCI_SUBSYS_DEV_ID_CN2360_225:
-               devinfo->speed_capa = RTE_ETH_LINK_SPEED_25G;
-               break;
-       default:
-               devinfo->speed_capa = RTE_ETH_LINK_SPEED_10G;
-               lio_dev_err(lio_dev,
-                           "Unknown CN23XX subsystem device id. Setting 10G as default link speed.\n");
-               return -EINVAL;
-       }
-
-       devinfo->max_rx_queues = lio_dev->max_rx_queues;
-       devinfo->max_tx_queues = lio_dev->max_tx_queues;
-
-       devinfo->min_rx_bufsize = LIO_MIN_RX_BUF_SIZE;
-       devinfo->max_rx_pktlen = LIO_MAX_RX_PKTLEN;
-
-       devinfo->max_mac_addrs = 1;
-
-       devinfo->rx_offload_capa = (RTE_ETH_RX_OFFLOAD_IPV4_CKSUM               |
-                                   RTE_ETH_RX_OFFLOAD_UDP_CKSUM                |
-                                   RTE_ETH_RX_OFFLOAD_TCP_CKSUM                |
-                                   RTE_ETH_RX_OFFLOAD_VLAN_STRIP               |
-                                   RTE_ETH_RX_OFFLOAD_RSS_HASH);
-       devinfo->tx_offload_capa = (RTE_ETH_TX_OFFLOAD_IPV4_CKSUM               |
-                                   RTE_ETH_TX_OFFLOAD_UDP_CKSUM                |
-                                   RTE_ETH_TX_OFFLOAD_TCP_CKSUM                |
-                                   RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM);
-
-       devinfo->rx_desc_lim = lio_rx_desc_lim;
-       devinfo->tx_desc_lim = lio_tx_desc_lim;
-
-       devinfo->reta_size = LIO_RSS_MAX_TABLE_SZ;
-       devinfo->hash_key_size = LIO_RSS_MAX_KEY_SZ;
-       devinfo->flow_type_rss_offloads = (RTE_ETH_RSS_IPV4                     |
-                                          RTE_ETH_RSS_NONFRAG_IPV4_TCP |
-                                          RTE_ETH_RSS_IPV6                     |
-                                          RTE_ETH_RSS_NONFRAG_IPV6_TCP |
-                                          RTE_ETH_RSS_IPV6_EX          |
-                                          RTE_ETH_RSS_IPV6_TCP_EX);
-       return 0;
-}
-
-static int
-lio_dev_mtu_set(struct rte_eth_dev *eth_dev, uint16_t mtu)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       struct lio_dev_ctrl_cmd ctrl_cmd;
-       struct lio_ctrl_pkt ctrl_pkt;
-
-       PMD_INIT_FUNC_TRACE();
-
-       if (!lio_dev->intf_open) {
-               lio_dev_err(lio_dev, "Port %d down, can't set MTU\n",
-                           lio_dev->port_id);
-               return -EINVAL;
-       }
-
-       /* flush added to prevent cmd failure
-        * incase the queue is full
-        */
-       lio_flush_iq(lio_dev, lio_dev->instr_queue[0]);
-
-       memset(&ctrl_pkt, 0, sizeof(struct lio_ctrl_pkt));
-       memset(&ctrl_cmd, 0, sizeof(struct lio_dev_ctrl_cmd));
-
-       ctrl_cmd.eth_dev = eth_dev;
-       ctrl_cmd.cond = 0;
-
-       ctrl_pkt.ncmd.s.cmd = LIO_CMD_CHANGE_MTU;
-       ctrl_pkt.ncmd.s.param1 = mtu;
-       ctrl_pkt.ctrl_cmd = &ctrl_cmd;
-
-       if (lio_send_ctrl_pkt(lio_dev, &ctrl_pkt)) {
-               lio_dev_err(lio_dev, "Failed to send command to change MTU\n");
-               return -1;
-       }
-
-       if (lio_wait_for_ctrl_cmd(lio_dev, &ctrl_cmd)) {
-               lio_dev_err(lio_dev, "Command to change MTU timed out\n");
-               return -1;
-       }
-
-       return 0;
-}
-
-static int
-lio_dev_rss_reta_update(struct rte_eth_dev *eth_dev,
-                       struct rte_eth_rss_reta_entry64 *reta_conf,
-                       uint16_t reta_size)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       struct lio_rss_ctx *rss_state = &lio_dev->rss_state;
-       struct lio_rss_set *rss_param;
-       struct lio_dev_ctrl_cmd ctrl_cmd;
-       struct lio_ctrl_pkt ctrl_pkt;
-       int i, j, index;
-
-       if (!lio_dev->intf_open) {
-               lio_dev_err(lio_dev, "Port %d down, can't update reta\n",
-                           lio_dev->port_id);
-               return -EINVAL;
-       }
-
-       if (reta_size != LIO_RSS_MAX_TABLE_SZ) {
-               lio_dev_err(lio_dev,
-                           "The size of hash lookup table configured (%d) doesn't match the number hardware can supported (%d)\n",
-                           reta_size, LIO_RSS_MAX_TABLE_SZ);
-               return -EINVAL;
-       }
-
-       /* flush added to prevent cmd failure
-        * incase the queue is full
-        */
-       lio_flush_iq(lio_dev, lio_dev->instr_queue[0]);
-
-       memset(&ctrl_pkt, 0, sizeof(struct lio_ctrl_pkt));
-       memset(&ctrl_cmd, 0, sizeof(struct lio_dev_ctrl_cmd));
-
-       rss_param = (struct lio_rss_set *)&ctrl_pkt.udd[0];
-
-       ctrl_cmd.eth_dev = eth_dev;
-       ctrl_cmd.cond = 0;
-
-       ctrl_pkt.ncmd.s.cmd = LIO_CMD_SET_RSS;
-       ctrl_pkt.ncmd.s.more = sizeof(struct lio_rss_set) >> 3;
-       ctrl_pkt.ctrl_cmd = &ctrl_cmd;
-
-       rss_param->param.flags = 0xF;
-       rss_param->param.flags &= ~LIO_RSS_PARAM_ITABLE_UNCHANGED;
-       rss_param->param.itablesize = LIO_RSS_MAX_TABLE_SZ;
-
-       for (i = 0; i < (reta_size / RTE_ETH_RETA_GROUP_SIZE); i++) {
-               for (j = 0; j < RTE_ETH_RETA_GROUP_SIZE; j++) {
-                       if ((reta_conf[i].mask) & ((uint64_t)1 << j)) {
-                               index = (i * RTE_ETH_RETA_GROUP_SIZE) + j;
-                               rss_state->itable[index] = reta_conf[i].reta[j];
-                       }
-               }
-       }
-
-       rss_state->itable_size = LIO_RSS_MAX_TABLE_SZ;
-       memcpy(rss_param->itable, rss_state->itable, rss_state->itable_size);
-
-       lio_swap_8B_data((uint64_t *)rss_param, LIO_RSS_PARAM_SIZE >> 3);
-
-       if (lio_send_ctrl_pkt(lio_dev, &ctrl_pkt)) {
-               lio_dev_err(lio_dev, "Failed to set rss hash\n");
-               return -1;
-       }
-
-       if (lio_wait_for_ctrl_cmd(lio_dev, &ctrl_cmd)) {
-               lio_dev_err(lio_dev, "Set rss hash timed out\n");
-               return -1;
-       }
-
-       return 0;
-}
-
-static int
-lio_dev_rss_reta_query(struct rte_eth_dev *eth_dev,
-                      struct rte_eth_rss_reta_entry64 *reta_conf,
-                      uint16_t reta_size)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       struct lio_rss_ctx *rss_state = &lio_dev->rss_state;
-       int i, num;
-
-       if (reta_size != LIO_RSS_MAX_TABLE_SZ) {
-               lio_dev_err(lio_dev,
-                           "The size of hash lookup table configured (%d) doesn't match the number hardware can supported (%d)\n",
-                           reta_size, LIO_RSS_MAX_TABLE_SZ);
-               return -EINVAL;
-       }
-
-       num = reta_size / RTE_ETH_RETA_GROUP_SIZE;
-
-       for (i = 0; i < num; i++) {
-               memcpy(reta_conf->reta,
-                      &rss_state->itable[i * RTE_ETH_RETA_GROUP_SIZE],
-                      RTE_ETH_RETA_GROUP_SIZE);
-               reta_conf++;
-       }
-
-       return 0;
-}
-
-static int
-lio_dev_rss_hash_conf_get(struct rte_eth_dev *eth_dev,
-                         struct rte_eth_rss_conf *rss_conf)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       struct lio_rss_ctx *rss_state = &lio_dev->rss_state;
-       uint8_t *hash_key = NULL;
-       uint64_t rss_hf = 0;
-
-       if (rss_state->hash_disable) {
-               lio_dev_info(lio_dev, "RSS disabled in nic\n");
-               rss_conf->rss_hf = 0;
-               return 0;
-       }
-
-       /* Get key value */
-       hash_key = rss_conf->rss_key;
-       if (hash_key != NULL)
-               memcpy(hash_key, rss_state->hash_key, rss_state->hash_key_size);
-
-       if (rss_state->ip)
-               rss_hf |= RTE_ETH_RSS_IPV4;
-       if (rss_state->tcp_hash)
-               rss_hf |= RTE_ETH_RSS_NONFRAG_IPV4_TCP;
-       if (rss_state->ipv6)
-               rss_hf |= RTE_ETH_RSS_IPV6;
-       if (rss_state->ipv6_tcp_hash)
-               rss_hf |= RTE_ETH_RSS_NONFRAG_IPV6_TCP;
-       if (rss_state->ipv6_ex)
-               rss_hf |= RTE_ETH_RSS_IPV6_EX;
-       if (rss_state->ipv6_tcp_ex_hash)
-               rss_hf |= RTE_ETH_RSS_IPV6_TCP_EX;
-
-       rss_conf->rss_hf = rss_hf;
-
-       return 0;
-}
-
-static int
-lio_dev_rss_hash_update(struct rte_eth_dev *eth_dev,
-                       struct rte_eth_rss_conf *rss_conf)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       struct lio_rss_ctx *rss_state = &lio_dev->rss_state;
-       struct lio_rss_set *rss_param;
-       struct lio_dev_ctrl_cmd ctrl_cmd;
-       struct lio_ctrl_pkt ctrl_pkt;
-
-       if (!lio_dev->intf_open) {
-               lio_dev_err(lio_dev, "Port %d down, can't update hash\n",
-                           lio_dev->port_id);
-               return -EINVAL;
-       }
-
-       /* flush added to prevent cmd failure
-        * incase the queue is full
-        */
-       lio_flush_iq(lio_dev, lio_dev->instr_queue[0]);
-
-       memset(&ctrl_pkt, 0, sizeof(struct lio_ctrl_pkt));
-       memset(&ctrl_cmd, 0, sizeof(struct lio_dev_ctrl_cmd));
-
-       rss_param = (struct lio_rss_set *)&ctrl_pkt.udd[0];
-
-       ctrl_cmd.eth_dev = eth_dev;
-       ctrl_cmd.cond = 0;
-
-       ctrl_pkt.ncmd.s.cmd = LIO_CMD_SET_RSS;
-       ctrl_pkt.ncmd.s.more = sizeof(struct lio_rss_set) >> 3;
-       ctrl_pkt.ctrl_cmd = &ctrl_cmd;
-
-       rss_param->param.flags = 0xF;
-
-       if (rss_conf->rss_key) {
-               rss_param->param.flags &= ~LIO_RSS_PARAM_HASH_KEY_UNCHANGED;
-               rss_state->hash_key_size = LIO_RSS_MAX_KEY_SZ;
-               rss_param->param.hashkeysize = LIO_RSS_MAX_KEY_SZ;
-               memcpy(rss_state->hash_key, rss_conf->rss_key,
-                      rss_state->hash_key_size);
-               memcpy(rss_param->key, rss_state->hash_key,
-                      rss_state->hash_key_size);
-       }
-
-       if ((rss_conf->rss_hf & LIO_RSS_OFFLOAD_ALL) == 0) {
-               /* Can't disable rss through hash flags,
-                * if it is enabled by default during init
-                */
-               if (!rss_state->hash_disable)
-                       return -EINVAL;
-
-               /* This is for --disable-rss during testpmd launch */
-               rss_param->param.flags |= LIO_RSS_PARAM_DISABLE_RSS;
-       } else {
-               uint32_t hashinfo = 0;
-
-               /* Can't enable rss if disabled by default during init */
-               if (rss_state->hash_disable)
-                       return -EINVAL;
-
-               if (rss_conf->rss_hf & RTE_ETH_RSS_IPV4) {
-                       hashinfo |= LIO_RSS_HASH_IPV4;
-                       rss_state->ip = 1;
-               } else {
-                       rss_state->ip = 0;
-               }
-
-               if (rss_conf->rss_hf & RTE_ETH_RSS_NONFRAG_IPV4_TCP) {
-                       hashinfo |= LIO_RSS_HASH_TCP_IPV4;
-                       rss_state->tcp_hash = 1;
-               } else {
-                       rss_state->tcp_hash = 0;
-               }
-
-               if (rss_conf->rss_hf & RTE_ETH_RSS_IPV6) {
-                       hashinfo |= LIO_RSS_HASH_IPV6;
-                       rss_state->ipv6 = 1;
-               } else {
-                       rss_state->ipv6 = 0;
-               }
-
-               if (rss_conf->rss_hf & RTE_ETH_RSS_NONFRAG_IPV6_TCP) {
-                       hashinfo |= LIO_RSS_HASH_TCP_IPV6;
-                       rss_state->ipv6_tcp_hash = 1;
-               } else {
-                       rss_state->ipv6_tcp_hash = 0;
-               }
-
-               if (rss_conf->rss_hf & RTE_ETH_RSS_IPV6_EX) {
-                       hashinfo |= LIO_RSS_HASH_IPV6_EX;
-                       rss_state->ipv6_ex = 1;
-               } else {
-                       rss_state->ipv6_ex = 0;
-               }
-
-               if (rss_conf->rss_hf & RTE_ETH_RSS_IPV6_TCP_EX) {
-                       hashinfo |= LIO_RSS_HASH_TCP_IPV6_EX;
-                       rss_state->ipv6_tcp_ex_hash = 1;
-               } else {
-                       rss_state->ipv6_tcp_ex_hash = 0;
-               }
-
-               rss_param->param.flags &= ~LIO_RSS_PARAM_HASH_INFO_UNCHANGED;
-               rss_param->param.hashinfo = hashinfo;
-       }
-
-       lio_swap_8B_data((uint64_t *)rss_param, LIO_RSS_PARAM_SIZE >> 3);
-
-       if (lio_send_ctrl_pkt(lio_dev, &ctrl_pkt)) {
-               lio_dev_err(lio_dev, "Failed to set rss hash\n");
-               return -1;
-       }
-
-       if (lio_wait_for_ctrl_cmd(lio_dev, &ctrl_cmd)) {
-               lio_dev_err(lio_dev, "Set rss hash timed out\n");
-               return -1;
-       }
-
-       return 0;
-}
-
-/**
- * Add vxlan dest udp port for an interface.
- *
- * @param eth_dev
- *  Pointer to the structure rte_eth_dev
- * @param udp_tnl
- *  udp tunnel conf
- *
- * @return
- *  On success return 0
- *  On failure return -1
- */
-static int
-lio_dev_udp_tunnel_add(struct rte_eth_dev *eth_dev,
-                      struct rte_eth_udp_tunnel *udp_tnl)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       struct lio_dev_ctrl_cmd ctrl_cmd;
-       struct lio_ctrl_pkt ctrl_pkt;
-
-       if (udp_tnl == NULL)
-               return -EINVAL;
-
-       if (udp_tnl->prot_type != RTE_ETH_TUNNEL_TYPE_VXLAN) {
-               lio_dev_err(lio_dev, "Unsupported tunnel type\n");
-               return -1;
-       }
-
-       /* flush added to prevent cmd failure
-        * incase the queue is full
-        */
-       lio_flush_iq(lio_dev, lio_dev->instr_queue[0]);
-
-       memset(&ctrl_pkt, 0, sizeof(struct lio_ctrl_pkt));
-       memset(&ctrl_cmd, 0, sizeof(struct lio_dev_ctrl_cmd));
-
-       ctrl_cmd.eth_dev = eth_dev;
-       ctrl_cmd.cond = 0;
-
-       ctrl_pkt.ncmd.s.cmd = LIO_CMD_VXLAN_PORT_CONFIG;
-       ctrl_pkt.ncmd.s.param1 = udp_tnl->udp_port;
-       ctrl_pkt.ncmd.s.more = LIO_CMD_VXLAN_PORT_ADD;
-       ctrl_pkt.ctrl_cmd = &ctrl_cmd;
-
-       if (lio_send_ctrl_pkt(lio_dev, &ctrl_pkt)) {
-               lio_dev_err(lio_dev, "Failed to send VXLAN_PORT_ADD command\n");
-               return -1;
-       }
-
-       if (lio_wait_for_ctrl_cmd(lio_dev, &ctrl_cmd)) {
-               lio_dev_err(lio_dev, "VXLAN_PORT_ADD command timed out\n");
-               return -1;
-       }
-
-       return 0;
-}
-
-/**
- * Remove vxlan dest udp port for an interface.
- *
- * @param eth_dev
- *  Pointer to the structure rte_eth_dev
- * @param udp_tnl
- *  udp tunnel conf
- *
- * @return
- *  On success return 0
- *  On failure return -1
- */
-static int
-lio_dev_udp_tunnel_del(struct rte_eth_dev *eth_dev,
-                      struct rte_eth_udp_tunnel *udp_tnl)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       struct lio_dev_ctrl_cmd ctrl_cmd;
-       struct lio_ctrl_pkt ctrl_pkt;
-
-       if (udp_tnl == NULL)
-               return -EINVAL;
-
-       if (udp_tnl->prot_type != RTE_ETH_TUNNEL_TYPE_VXLAN) {
-               lio_dev_err(lio_dev, "Unsupported tunnel type\n");
-               return -1;
-       }
-
-       /* flush added to prevent cmd failure
-        * incase the queue is full
-        */
-       lio_flush_iq(lio_dev, lio_dev->instr_queue[0]);
-
-       memset(&ctrl_pkt, 0, sizeof(struct lio_ctrl_pkt));
-       memset(&ctrl_cmd, 0, sizeof(struct lio_dev_ctrl_cmd));
-
-       ctrl_cmd.eth_dev = eth_dev;
-       ctrl_cmd.cond = 0;
-
-       ctrl_pkt.ncmd.s.cmd = LIO_CMD_VXLAN_PORT_CONFIG;
-       ctrl_pkt.ncmd.s.param1 = udp_tnl->udp_port;
-       ctrl_pkt.ncmd.s.more = LIO_CMD_VXLAN_PORT_DEL;
-       ctrl_pkt.ctrl_cmd = &ctrl_cmd;
-
-       if (lio_send_ctrl_pkt(lio_dev, &ctrl_pkt)) {
-               lio_dev_err(lio_dev, "Failed to send VXLAN_PORT_DEL command\n");
-               return -1;
-       }
-
-       if (lio_wait_for_ctrl_cmd(lio_dev, &ctrl_cmd)) {
-               lio_dev_err(lio_dev, "VXLAN_PORT_DEL command timed out\n");
-               return -1;
-       }
-
-       return 0;
-}
-
-static int
-lio_dev_vlan_filter_set(struct rte_eth_dev *eth_dev, uint16_t vlan_id, int on)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       struct lio_dev_ctrl_cmd ctrl_cmd;
-       struct lio_ctrl_pkt ctrl_pkt;
-
-       if (lio_dev->linfo.vlan_is_admin_assigned)
-               return -EPERM;
-
-       /* flush added to prevent cmd failure
-        * incase the queue is full
-        */
-       lio_flush_iq(lio_dev, lio_dev->instr_queue[0]);
-
-       memset(&ctrl_pkt, 0, sizeof(struct lio_ctrl_pkt));
-       memset(&ctrl_cmd, 0, sizeof(struct lio_dev_ctrl_cmd));
-
-       ctrl_cmd.eth_dev = eth_dev;
-       ctrl_cmd.cond = 0;
-
-       ctrl_pkt.ncmd.s.cmd = on ?
-                       LIO_CMD_ADD_VLAN_FILTER : LIO_CMD_DEL_VLAN_FILTER;
-       ctrl_pkt.ncmd.s.param1 = vlan_id;
-       ctrl_pkt.ctrl_cmd = &ctrl_cmd;
-
-       if (lio_send_ctrl_pkt(lio_dev, &ctrl_pkt)) {
-               lio_dev_err(lio_dev, "Failed to %s VLAN port\n",
-                           on ? "add" : "remove");
-               return -1;
-       }
-
-       if (lio_wait_for_ctrl_cmd(lio_dev, &ctrl_cmd)) {
-               lio_dev_err(lio_dev, "Command to %s VLAN port timed out\n",
-                           on ? "add" : "remove");
-               return -1;
-       }
-
-       return 0;
-}
-
-static uint64_t
-lio_hweight64(uint64_t w)
-{
-       uint64_t res = w - ((w >> 1) & 0x5555555555555555ul);
-
-       res =
-           (res & 0x3333333333333333ul) + ((res >> 2) & 0x3333333333333333ul);
-       res = (res + (res >> 4)) & 0x0F0F0F0F0F0F0F0Ful;
-       res = res + (res >> 8);
-       res = res + (res >> 16);
-
-       return (res + (res >> 32)) & 0x00000000000000FFul;
-}
-
-static int
-lio_dev_link_update(struct rte_eth_dev *eth_dev,
-                   int wait_to_complete __rte_unused)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       struct rte_eth_link link;
-
-       /* Initialize */
-       memset(&link, 0, sizeof(link));
-       link.link_status = RTE_ETH_LINK_DOWN;
-       link.link_speed = RTE_ETH_SPEED_NUM_NONE;
-       link.link_duplex = RTE_ETH_LINK_HALF_DUPLEX;
-       link.link_autoneg = RTE_ETH_LINK_AUTONEG;
-
-       /* Return what we found */
-       if (lio_dev->linfo.link.s.link_up == 0) {
-               /* Interface is down */
-               return rte_eth_linkstatus_set(eth_dev, &link);
-       }
-
-       link.link_status = RTE_ETH_LINK_UP; /* Interface is up */
-       link.link_duplex = RTE_ETH_LINK_FULL_DUPLEX;
-       switch (lio_dev->linfo.link.s.speed) {
-       case LIO_LINK_SPEED_10000:
-               link.link_speed = RTE_ETH_SPEED_NUM_10G;
-               break;
-       case LIO_LINK_SPEED_25000:
-               link.link_speed = RTE_ETH_SPEED_NUM_25G;
-               break;
-       default:
-               link.link_speed = RTE_ETH_SPEED_NUM_NONE;
-               link.link_duplex = RTE_ETH_LINK_HALF_DUPLEX;
-       }
-
-       return rte_eth_linkstatus_set(eth_dev, &link);
-}
-
-/**
- * \brief Net device enable, disable allmulticast
- * @param eth_dev Pointer to the structure rte_eth_dev
- *
- * @return
- *  On success return 0
- *  On failure return negative errno
- */
-static int
-lio_change_dev_flag(struct rte_eth_dev *eth_dev)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       struct lio_dev_ctrl_cmd ctrl_cmd;
-       struct lio_ctrl_pkt ctrl_pkt;
-
-       /* flush added to prevent cmd failure
-        * incase the queue is full
-        */
-       lio_flush_iq(lio_dev, lio_dev->instr_queue[0]);
-
-       memset(&ctrl_pkt, 0, sizeof(struct lio_ctrl_pkt));
-       memset(&ctrl_cmd, 0, sizeof(struct lio_dev_ctrl_cmd));
-
-       ctrl_cmd.eth_dev = eth_dev;
-       ctrl_cmd.cond = 0;
-
-       /* Create a ctrl pkt command to be sent to core app. */
-       ctrl_pkt.ncmd.s.cmd = LIO_CMD_CHANGE_DEVFLAGS;
-       ctrl_pkt.ncmd.s.param1 = lio_dev->ifflags;
-       ctrl_pkt.ctrl_cmd = &ctrl_cmd;
-
-       if (lio_send_ctrl_pkt(lio_dev, &ctrl_pkt)) {
-               lio_dev_err(lio_dev, "Failed to send change flag message\n");
-               return -EAGAIN;
-       }
-
-       if (lio_wait_for_ctrl_cmd(lio_dev, &ctrl_cmd)) {
-               lio_dev_err(lio_dev, "Change dev flag command timed out\n");
-               return -ETIMEDOUT;
-       }
-
-       return 0;
-}
-
-static int
-lio_dev_promiscuous_enable(struct rte_eth_dev *eth_dev)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-
-       if (strcmp(lio_dev->firmware_version, LIO_VF_TRUST_MIN_VERSION) < 0) {
-               lio_dev_err(lio_dev, "Require firmware version >= %s\n",
-                           LIO_VF_TRUST_MIN_VERSION);
-               return -EAGAIN;
-       }
-
-       if (!lio_dev->intf_open) {
-               lio_dev_err(lio_dev, "Port %d down, can't enable promiscuous\n",
-                           lio_dev->port_id);
-               return -EAGAIN;
-       }
-
-       lio_dev->ifflags |= LIO_IFFLAG_PROMISC;
-       return lio_change_dev_flag(eth_dev);
-}
-
-static int
-lio_dev_promiscuous_disable(struct rte_eth_dev *eth_dev)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-
-       if (strcmp(lio_dev->firmware_version, LIO_VF_TRUST_MIN_VERSION) < 0) {
-               lio_dev_err(lio_dev, "Require firmware version >= %s\n",
-                           LIO_VF_TRUST_MIN_VERSION);
-               return -EAGAIN;
-       }
-
-       if (!lio_dev->intf_open) {
-               lio_dev_err(lio_dev, "Port %d down, can't disable promiscuous\n",
-                           lio_dev->port_id);
-               return -EAGAIN;
-       }
-
-       lio_dev->ifflags &= ~LIO_IFFLAG_PROMISC;
-       return lio_change_dev_flag(eth_dev);
-}
-
-static int
-lio_dev_allmulticast_enable(struct rte_eth_dev *eth_dev)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-
-       if (!lio_dev->intf_open) {
-               lio_dev_err(lio_dev, "Port %d down, can't enable multicast\n",
-                           lio_dev->port_id);
-               return -EAGAIN;
-       }
-
-       lio_dev->ifflags |= LIO_IFFLAG_ALLMULTI;
-       return lio_change_dev_flag(eth_dev);
-}
-
-static int
-lio_dev_allmulticast_disable(struct rte_eth_dev *eth_dev)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-
-       if (!lio_dev->intf_open) {
-               lio_dev_err(lio_dev, "Port %d down, can't disable multicast\n",
-                           lio_dev->port_id);
-               return -EAGAIN;
-       }
-
-       lio_dev->ifflags &= ~LIO_IFFLAG_ALLMULTI;
-       return lio_change_dev_flag(eth_dev);
-}
-
-static void
-lio_dev_rss_configure(struct rte_eth_dev *eth_dev)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       struct lio_rss_ctx *rss_state = &lio_dev->rss_state;
-       struct rte_eth_rss_reta_entry64 reta_conf[8];
-       struct rte_eth_rss_conf rss_conf;
-       uint16_t i;
-
-       /* Configure the RSS key and the RSS protocols used to compute
-        * the RSS hash of input packets.
-        */
-       rss_conf = eth_dev->data->dev_conf.rx_adv_conf.rss_conf;
-       if ((rss_conf.rss_hf & LIO_RSS_OFFLOAD_ALL) == 0) {
-               rss_state->hash_disable = 1;
-               lio_dev_rss_hash_update(eth_dev, &rss_conf);
-               return;
-       }
-
-       if (rss_conf.rss_key == NULL)
-               rss_conf.rss_key = lio_rss_key; /* Default hash key */
-
-       lio_dev_rss_hash_update(eth_dev, &rss_conf);
-
-       memset(reta_conf, 0, sizeof(reta_conf));
-       for (i = 0; i < LIO_RSS_MAX_TABLE_SZ; i++) {
-               uint8_t q_idx, conf_idx, reta_idx;
-
-               q_idx = (uint8_t)((eth_dev->data->nb_rx_queues > 1) ?
-                                 i % eth_dev->data->nb_rx_queues : 0);
-               conf_idx = i / RTE_ETH_RETA_GROUP_SIZE;
-               reta_idx = i % RTE_ETH_RETA_GROUP_SIZE;
-               reta_conf[conf_idx].reta[reta_idx] = q_idx;
-               reta_conf[conf_idx].mask |= ((uint64_t)1 << reta_idx);
-       }
-
-       lio_dev_rss_reta_update(eth_dev, reta_conf, LIO_RSS_MAX_TABLE_SZ);
-}
-
-static void
-lio_dev_mq_rx_configure(struct rte_eth_dev *eth_dev)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       struct lio_rss_ctx *rss_state = &lio_dev->rss_state;
-       struct rte_eth_rss_conf rss_conf;
-
-       switch (eth_dev->data->dev_conf.rxmode.mq_mode) {
-       case RTE_ETH_MQ_RX_RSS:
-               lio_dev_rss_configure(eth_dev);
-               break;
-       case RTE_ETH_MQ_RX_NONE:
-       /* if mq_mode is none, disable rss mode. */
-       default:
-               memset(&rss_conf, 0, sizeof(rss_conf));
-               rss_state->hash_disable = 1;
-               lio_dev_rss_hash_update(eth_dev, &rss_conf);
-       }
-}
-
-/**
- * Setup our receive queue/ringbuffer. This is the
- * queue the Octeon uses to send us packets and
- * responses. We are given a memory pool for our
- * packet buffers that are used to populate the receive
- * queue.
- *
- * @param eth_dev
- *    Pointer to the structure rte_eth_dev
- * @param q_no
- *    Queue number
- * @param num_rx_descs
- *    Number of entries in the queue
- * @param socket_id
- *    Where to allocate memory
- * @param rx_conf
- *    Pointer to the struction rte_eth_rxconf
- * @param mp
- *    Pointer to the packet pool
- *
- * @return
- *    - On success, return 0
- *    - On failure, return -1
- */
-static int
-lio_dev_rx_queue_setup(struct rte_eth_dev *eth_dev, uint16_t q_no,
-                      uint16_t num_rx_descs, unsigned int socket_id,
-                      const struct rte_eth_rxconf *rx_conf __rte_unused,
-                      struct rte_mempool *mp)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       struct rte_pktmbuf_pool_private *mbp_priv;
-       uint32_t fw_mapped_oq;
-       uint16_t buf_size;
-
-       if (q_no >= lio_dev->nb_rx_queues) {
-               lio_dev_err(lio_dev, "Invalid rx queue number %u\n", q_no);
-               return -EINVAL;
-       }
-
-       lio_dev_dbg(lio_dev, "setting up rx queue %u\n", q_no);
-
-       fw_mapped_oq = lio_dev->linfo.rxpciq[q_no].s.q_no;
-
-       /* Free previous allocation if any */
-       if (eth_dev->data->rx_queues[q_no] != NULL) {
-               lio_dev_rx_queue_release(eth_dev, q_no);
-               eth_dev->data->rx_queues[q_no] = NULL;
-       }
-
-       mbp_priv = rte_mempool_get_priv(mp);
-       buf_size = mbp_priv->mbuf_data_room_size - RTE_PKTMBUF_HEADROOM;
-
-       if (lio_setup_droq(lio_dev, fw_mapped_oq, num_rx_descs, buf_size, mp,
-                          socket_id)) {
-               lio_dev_err(lio_dev, "droq allocation failed\n");
-               return -1;
-       }
-
-       eth_dev->data->rx_queues[q_no] = lio_dev->droq[fw_mapped_oq];
-
-       return 0;
-}
-
-/**
- * Release the receive queue/ringbuffer. Called by
- * the upper layers.
- *
- * @param eth_dev
- *    Pointer to Ethernet device structure.
- * @param q_no
- *    Receive queue index.
- *
- * @return
- *    - nothing
- */
-void
-lio_dev_rx_queue_release(struct rte_eth_dev *dev, uint16_t q_no)
-{
-       struct lio_droq *droq = dev->data->rx_queues[q_no];
-       int oq_no;
-
-       if (droq) {
-               oq_no = droq->q_no;
-               lio_delete_droq_queue(droq->lio_dev, oq_no);
-       }
-}
-
-/**
- * Allocate and initialize SW ring. Initialize associated HW registers.
- *
- * @param eth_dev
- *   Pointer to structure rte_eth_dev
- *
- * @param q_no
- *   Queue number
- *
- * @param num_tx_descs
- *   Number of ringbuffer descriptors
- *
- * @param socket_id
- *   NUMA socket id, used for memory allocations
- *
- * @param tx_conf
- *   Pointer to the structure rte_eth_txconf
- *
- * @return
- *   - On success, return 0
- *   - On failure, return -errno value
- */
-static int
-lio_dev_tx_queue_setup(struct rte_eth_dev *eth_dev, uint16_t q_no,
-                      uint16_t num_tx_descs, unsigned int socket_id,
-                      const struct rte_eth_txconf *tx_conf __rte_unused)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       int fw_mapped_iq = lio_dev->linfo.txpciq[q_no].s.q_no;
-       int retval;
-
-       if (q_no >= lio_dev->nb_tx_queues) {
-               lio_dev_err(lio_dev, "Invalid tx queue number %u\n", q_no);
-               return -EINVAL;
-       }
-
-       lio_dev_dbg(lio_dev, "setting up tx queue %u\n", q_no);
-
-       /* Free previous allocation if any */
-       if (eth_dev->data->tx_queues[q_no] != NULL) {
-               lio_dev_tx_queue_release(eth_dev, q_no);
-               eth_dev->data->tx_queues[q_no] = NULL;
-       }
-
-       retval = lio_setup_iq(lio_dev, q_no, lio_dev->linfo.txpciq[q_no],
-                             num_tx_descs, lio_dev, socket_id);
-
-       if (retval) {
-               lio_dev_err(lio_dev, "Runtime IQ(TxQ) creation failed.\n");
-               return retval;
-       }
-
-       retval = lio_setup_sglists(lio_dev, q_no, fw_mapped_iq,
-                               lio_dev->instr_queue[fw_mapped_iq]->nb_desc,
-                               socket_id);
-
-       if (retval) {
-               lio_delete_instruction_queue(lio_dev, fw_mapped_iq);
-               return retval;
-       }
-
-       eth_dev->data->tx_queues[q_no] = lio_dev->instr_queue[fw_mapped_iq];
-
-       return 0;
-}
-
-/**
- * Release the transmit queue/ringbuffer. Called by
- * the upper layers.
- *
- * @param eth_dev
- *    Pointer to Ethernet device structure.
- * @param q_no
- *   Transmit queue index.
- *
- * @return
- *    - nothing
- */
-void
-lio_dev_tx_queue_release(struct rte_eth_dev *dev, uint16_t q_no)
-{
-       struct lio_instr_queue *tq = dev->data->tx_queues[q_no];
-       uint32_t fw_mapped_iq_no;
-
-
-       if (tq) {
-               /* Free sg_list */
-               lio_delete_sglist(tq);
-
-               fw_mapped_iq_no = tq->txpciq.s.q_no;
-               lio_delete_instruction_queue(tq->lio_dev, fw_mapped_iq_no);
-       }
-}
-
-/**
- * Api to check link state.
- */
-static void
-lio_dev_get_link_status(struct rte_eth_dev *eth_dev)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       uint16_t timeout = LIO_MAX_CMD_TIMEOUT;
-       struct lio_link_status_resp *resp;
-       union octeon_link_status *ls;
-       struct lio_soft_command *sc;
-       uint32_t resp_size;
-
-       if (!lio_dev->intf_open)
-               return;
-
-       resp_size = sizeof(struct lio_link_status_resp);
-       sc = lio_alloc_soft_command(lio_dev, 0, resp_size, 0);
-       if (sc == NULL)
-               return;
-
-       resp = (struct lio_link_status_resp *)sc->virtrptr;
-       lio_prepare_soft_command(lio_dev, sc, LIO_OPCODE,
-                                LIO_OPCODE_INFO, 0, 0, 0);
-
-       /* Setting wait time in seconds */
-       sc->wait_time = LIO_MAX_CMD_TIMEOUT / 1000;
-
-       if (lio_send_soft_command(lio_dev, sc) == LIO_IQ_SEND_FAILED)
-               goto get_status_fail;
-
-       while ((*sc->status_word == LIO_COMPLETION_WORD_INIT) && --timeout) {
-               lio_flush_iq(lio_dev, lio_dev->instr_queue[sc->iq_no]);
-               rte_delay_ms(1);
-       }
-
-       if (resp->status)
-               goto get_status_fail;
-
-       ls = &resp->link_info.link;
-
-       lio_swap_8B_data((uint64_t *)ls, sizeof(union octeon_link_status) >> 3);
-
-       if (lio_dev->linfo.link.link_status64 != ls->link_status64) {
-               if (ls->s.mtu < eth_dev->data->mtu) {
-                       lio_dev_info(lio_dev, "Lowered VF MTU to %d as PF MTU dropped\n",
-                                    ls->s.mtu);
-                       eth_dev->data->mtu = ls->s.mtu;
-               }
-               lio_dev->linfo.link.link_status64 = ls->link_status64;
-               lio_dev_link_update(eth_dev, 0);
-       }
-
-       lio_free_soft_command(sc);
-
-       return;
-
-get_status_fail:
-       lio_free_soft_command(sc);
-}
-
-/* This function will be invoked every LSC_TIMEOUT ns (100ms)
- * and will update link state if it changes.
- */
-static void
-lio_sync_link_state_check(void *eth_dev)
-{
-       struct lio_device *lio_dev =
-               (((struct rte_eth_dev *)eth_dev)->data->dev_private);
-
-       if (lio_dev->port_configured)
-               lio_dev_get_link_status(eth_dev);
-
-       /* Schedule periodic link status check.
-        * Stop check if interface is close and start again while opening.
-        */
-       if (lio_dev->intf_open)
-               rte_eal_alarm_set(LIO_LSC_TIMEOUT, lio_sync_link_state_check,
-                                 eth_dev);
-}
-
-static int
-lio_dev_start(struct rte_eth_dev *eth_dev)
-{
-       struct lio_device *lio_dev = LIO_DEV(eth_dev);
-       uint16_t timeout = LIO_MAX_CMD_TIMEOUT;
-       int ret = 0;
-
-       lio_dev_info(lio_dev, "Starting port %d\n", eth_dev->data->port_id);
-
-       if (lio_dev->fn_list.enable_io_queues(lio_dev))
-               return -1;
-
-       if (lio_send_rx_ctrl_cmd(eth_dev, 1))
-               return -1;
-
-       /* Ready for link status updates */
-       lio_dev->intf_open = 1;
-       rte_mb();
-
-       /* Configure RSS if device configured with multiple RX queues. */
-       lio_dev_mq_rx_configure(eth_dev);
-
-       /* Before update the link info,
-        * must set linfo.link.link_status64 to 0.
-        */
-       lio_dev->linfo.link.link_status64 = 0;
-
-       /* start polling for lsc */
-       ret = rte_eal_alarm_set(LIO_LSC_TIMEOUT,
-                               lio_sync_link_state_check,
-                               eth_dev);
-       if (ret) {
-               lio_dev_err(lio_dev,
-                           "link state check handler creation failed\n");
-               goto dev_lsc_handle_error;
-       }
-
-       while ((lio_dev->linfo.link.link_status64 == 0) && (--timeout))
-               rte_delay_ms(1);
-
-       if (lio_dev->linfo.link.link_status64 == 0) {
-               ret = -1;
-               goto dev_mtu_set_error;
-       }
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

drivers/net/liquidio/lio_ethdev.h deleted +0 -179
deleted file mode 100644
index ece2b03858..0000000000

Lines of this file are not shown. View the raw message.

drivers/net/liquidio/lio_logs.h deleted +0 -58
deleted file mode 100644
index f227827081..0000000000

Lines of this file are not shown. View the raw message.

drivers/net/liquidio/lio_rxtx.c deleted +0 -1804
deleted file mode 100644
index e09798ddd7..0000000000

Lines of this file are not shown. View the raw message.

drivers/net/liquidio/lio_rxtx.h deleted +0 -740
deleted file mode 100644
index d2a45104f0..0000000000

Lines of this file are not shown. View the raw message.

drivers/net/liquidio/lio_struct.h deleted +0 -661
deleted file mode 100644
index 10270c560e..0000000000

Lines of this file are not shown. View the raw message.

drivers/net/liquidio/meson.build deleted +0 -16
deleted file mode 100644
index ebadbf3dea..0000000000

Lines of this file are not shown. View the raw message.

drivers/net/meson.build +0 -2
index b1df17ce8c..f68bbc27a7 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

2.40.1

Part of the diff is not shown here. View the raw message.