Skip to contentSkip to conversation

ethdev: add namespace

PATCH Superseded Ferruh Yigit 14 participants 32 messages Jun 29, 2021 – Nov 1, 2021 Page 1 of 2

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

PATCH 1/1 ethdev: add namespace

Add 'RTE_ETH' namespace to all enums & macros in a backward compatible way. The macros for backward compatibility can be removed in next LTS.

---
We can get the update on v21.11 and remove backward compatibility macros on v22.11.

---
 app/test/test_kni.c       |   2 +-
 examples/qos_meter/main.c |   2 +-
 examples/qos_sched/init.c |   2 +-
 lib/ethdev/rte_ethdev.c   |   7 +-
 lib/ethdev/rte_ethdev.h   | 907 ++++++++++++++++++++++++--------------
 5 files changed, 574 insertions(+), 346 deletions(-)
app/test/test_kni.c +1 -1
index 96733554b6c4..40ab0d5c4ca4 100644
@@ -74,7 +74,7 @@ static const struct rte_eth_txconf tx_conf = {
 
 static const struct rte_eth_conf port_conf = {
 	.txmode = {
-		.mq_mode = ETH_DCB_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 };
 
examples/qos_meter/main.c +1 -1
index 6e724f37835a..d0ff4ad2cbc9 100644
@@ -65,7 +65,7 @@ static struct rte_eth_conf port_conf = {
 		},
 	},
 	.txmode = {
-		.mq_mode = ETH_DCB_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 };
 
examples/qos_sched/init.c +1 -1
index 1abe003fc6ae..74c4fffc0207 100644
@@ -61,7 +61,7 @@ static struct rte_eth_conf port_conf = {
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_DCB_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 };
 
lib/ethdev/rte_ethdev.c +2 -5
index c607eabb5b0c..a602176af4cb 100644
@@ -98,9 +98,6 @@ static const struct rte_eth_xstats_name_off eth_dev_txq_stats_strings[] = {
 #define RTE_NB_TXQ_STATS RTE_DIM(eth_dev_txq_stats_strings)
 
 #define RTE_RX_OFFLOAD_BIT2STR(_name)	\
-	{ DEV_RX_OFFLOAD_##_name, #_name }
-
-#define RTE_ETH_RX_OFFLOAD_BIT2STR(_name)	\
 	{ RTE_ETH_RX_OFFLOAD_##_name, #_name }
 
 static const struct {
@@ -126,14 +123,14 @@ static const struct {
 	RTE_RX_OFFLOAD_BIT2STR(SCTP_CKSUM),
 	RTE_RX_OFFLOAD_BIT2STR(OUTER_UDP_CKSUM),
 	RTE_RX_OFFLOAD_BIT2STR(RSS_HASH),
-	RTE_ETH_RX_OFFLOAD_BIT2STR(BUFFER_SPLIT),
+	RTE_RX_OFFLOAD_BIT2STR(BUFFER_SPLIT),
 };
 
 #undef RTE_RX_OFFLOAD_BIT2STR
 #undef RTE_ETH_RX_OFFLOAD_BIT2STR
 
 #define RTE_TX_OFFLOAD_BIT2STR(_name)	\
-	{ DEV_TX_OFFLOAD_##_name, #_name }
+	{ RTE_ETH_TX_OFFLOAD_##_name, #_name }
 
 static const struct {
 	uint64_t offload;
lib/ethdev/rte_ethdev.h +569 -338

1,242 lines not on this page · raw message

Signature · 1 line
2.31.1
#2 lore raw
In reply to Ferruh Yigit

Hello Ferruh,

Quoted 5 lines · Ferruh Yigit

Add 'RTE_ETH' namespace to all enums & macros in a backward compatible way. The macros for backward compatibility can be removed in next LTS.

- I did not do a full check but I noticed that ETH_RSS compat macro at least is removed.
Is this intentional?

- libabigail is not happy because of enum names changes. Example:

[C] 'function int rte_eth_dev_configure(uint16_t, uint16_t,
uint16_t, const rte_eth_conf*)' at rte_ethdev.c:1326:1 has some indirect sub-type changes:
parameter 4 of type 'const rte_eth_conf*' has sub-type changes:
in pointed to type 'const rte_eth_conf':
in unqualified underlying type 'struct rte_eth_conf' at
rte_ethdev.h:1491:1:

          type size hasn't changed
          5 data member changes (1 filtered):
            type of 'rte_eth_rxmode rxmode' changed:
              type size hasn't changed
              1 data member change:
                type of 'rte_eth_rx_mq_mode mq_mode' changed:
                  type size hasn't changed
                  8 enumerator deletions:
                    'rte_eth_rx_mq_mode::ETH_MQ_RX_NONE' value '0'
                    'rte_eth_rx_mq_mode::ETH_MQ_RX_RSS' value '1'
                    'rte_eth_rx_mq_mode::ETH_MQ_RX_DCB' value '2'
                    'rte_eth_rx_mq_mode::ETH_MQ_RX_DCB_RSS' value '3'
                    'rte_eth_rx_mq_mode::ETH_MQ_RX_VMDQ_ONLY' value '4'
                    'rte_eth_rx_mq_mode::ETH_MQ_RX_VMDQ_RSS' value '5'
                    'rte_eth_rx_mq_mode::ETH_MQ_RX_VMDQ_DCB' value '6'
                    'rte_eth_rx_mq_mode::ETH_MQ_RX_VMDQ_DCB_RSS' value '7'
                  8 enumerator insertions:
                    'rte_eth_rx_mq_mode::RTE_ETH_MQ_RX_NONE' value '0'
                    'rte_eth_rx_mq_mode::RTE_ETH_MQ_RX_RSS' value '1'
                    'rte_eth_rx_mq_mode::RTE_ETH_MQ_RX_DCB' value '2'
                    'rte_eth_rx_mq_mode::RTE_ETH_MQ_RX_DCB_RSS' value '3'
                    'rte_eth_rx_mq_mode::RTE_ETH_MQ_RX_VMDQ_ONLY' value '4'
                    'rte_eth_rx_mq_mode::RTE_ETH_MQ_RX_VMDQ_RSS' value '5'
                    'rte_eth_rx_mq_mode::RTE_ETH_MQ_RX_VMDQ_DCB' value '6'
                    'rte_eth_rx_mq_mode::RTE_ETH_MQ_RX_VMDQ_DCB_RSS' value '7'

[snip]

I guess libabigail is lost because the symbol rte_eth_rx_mq_mode::ETH_MQ_RX_NONE simply disappeared (because we used a macro to wrap to the new name).
Maybe we could go the other way: leave the current enums defined as is and put in place wrappers for new names pointing as old names. The rest of the code in DPDK would use the new names only. This comment applies if we want to merge this change in 21.08 and/or we want to backport this change.

This won't be a problem if we merge this patch in 21.11.

Quoted 3 lines

---
We can get the update on v21.11 and remove backward compatibility macros on v22.11.

Signature · 1 line
David Marchand
#3 lore raw
Quoted 4 lines · David Marchand

Hello Ferruh,

Quoted 1 line · Ferruh Yigit
Quoted 9 lines
Quoted 4 lines

Add 'RTE_ETH' namespace to all enums & macros in a backward compatible way. The macros for backward compatibility can be removed in next LTS.

- I did not do a full check but I noticed that ETH_RSS compat macro at least is removed.
Is this intentional?

Yes, two groups of macros was remaining from 2013 for backward compatibility, with this patch it would be two layer of redicrection, so I moved to old ones. The only changes in the examples/app are because of these removed macros, since rest are all backward compatible.

Removed ones:
/**
* for rx mq mode backward compatible
*/

#define ETH_RSS                       ETH_MQ_RX_RSS
#define VMDQ_DCB                      ETH_MQ_RX_VMDQ_DCB
#define ETH_DCB_RX                    ETH_MQ_RX_DCB

/**
* for tx mq mode backward compatible
*/

#define ETH_DCB_NONE                ETH_MQ_TX_NONE
#define ETH_VMDQ_DCB_TX             ETH_MQ_TX_VMDQ_DCB
#define ETH_DCB_TX                  ETH_MQ_TX_DCB
Quoted 36 lines

- libabigail is not happy because of enum names changes. Example:

[C] 'function int rte_eth_dev_configure(uint16_t, uint16_t,
uint16_t, const rte_eth_conf*)' at rte_ethdev.c:1326:1 has some indirect sub-type changes:
parameter 4 of type 'const rte_eth_conf*' has sub-type changes:
in pointed to type 'const rte_eth_conf':
in unqualified underlying type 'struct rte_eth_conf' at
rte_ethdev.h:1491:1:

          type size hasn't changed
          5 data member changes (1 filtered):
            type of 'rte_eth_rxmode rxmode' changed:
              type size hasn't changed
              1 data member change:
                type of 'rte_eth_rx_mq_mode mq_mode' changed:
                  type size hasn't changed
                  8 enumerator deletions:
                    'rte_eth_rx_mq_mode::ETH_MQ_RX_NONE' value '0'
                    'rte_eth_rx_mq_mode::ETH_MQ_RX_RSS' value '1'
                    'rte_eth_rx_mq_mode::ETH_MQ_RX_DCB' value '2'
                    'rte_eth_rx_mq_mode::ETH_MQ_RX_DCB_RSS' value '3'
                    'rte_eth_rx_mq_mode::ETH_MQ_RX_VMDQ_ONLY' value '4'
                    'rte_eth_rx_mq_mode::ETH_MQ_RX_VMDQ_RSS' value '5'
                    'rte_eth_rx_mq_mode::ETH_MQ_RX_VMDQ_DCB' value '6'
                    'rte_eth_rx_mq_mode::ETH_MQ_RX_VMDQ_DCB_RSS' value '7'
                  8 enumerator insertions:
                    'rte_eth_rx_mq_mode::RTE_ETH_MQ_RX_NONE' value '0'
                    'rte_eth_rx_mq_mode::RTE_ETH_MQ_RX_RSS' value '1'
                    'rte_eth_rx_mq_mode::RTE_ETH_MQ_RX_DCB' value '2'
                    'rte_eth_rx_mq_mode::RTE_ETH_MQ_RX_DCB_RSS' value '3'
                    'rte_eth_rx_mq_mode::RTE_ETH_MQ_RX_VMDQ_ONLY' value '4'
                    'rte_eth_rx_mq_mode::RTE_ETH_MQ_RX_VMDQ_RSS' value '5'
                    'rte_eth_rx_mq_mode::RTE_ETH_MQ_RX_VMDQ_DCB' value '6'
                    'rte_eth_rx_mq_mode::RTE_ETH_MQ_RX_VMDQ_DCB_RSS' value '7'
Quoted 6 lines

[snip]

I guess libabigail is lost because the symbol rte_eth_rx_mq_mode::ETH_MQ_RX_NONE simply disappeared (because we used a macro to wrap to the new name).

Yes.

Quoted 3 lines

Maybe we could go the other way: leave the current enums defined as is and put in place wrappers for new names pointing as old names. The rest of the code in DPDK would use the new names only.

It works to prevent libabigail warnings but I think it can be confusing for users on figuring out which ones are the correct ones to use.

Quoted 5 lines

This comment applies if we want to merge this change in 21.08 and/or we want to backport this change.

This won't be a problem if we merge this patch in 21.11.

OK to have it on v21.11. In that case I assume all internal components also needs to be updated to use new macros/enums during v21.11 release.

Let me send a deprecation notice for it.

Meanwhile, we can use this patch to discuss the prefix/namespace, if it should be 'RTE_ETH_' or 'RTE_ETH_DEV_', or mix of both (as done now).

And if mixed prefix used, we can try to define when to have DEV_ part and when not to have it.

Quoted 7 lines
Quoted 4 lines

---
We can get the update on v21.11 and remove backward compatibility macros on v22.11.

#4 lore raw

PATCH v2 1/1 ethdev: add namespace

In reply to Ferruh Yigit

Add 'RTE_ETH' namespace to all enums & macros in a backward compatible way. The macros for backward compatibility can be removed in next LTS.

Internal components switched to new enum & macro names.

---
v2:
* Updated internal components
* Removed deprecation notice

---
 app/proc-info/main.c                          |   8 +-
 app/test-eventdev/test_perf_common.c          |   4 +-
 app/test-eventdev/test_pipeline_common.c      |  12 +-
 app/test-flow-perf/config.h                   |   2 +-
 app/test-pipeline/init.c                      |   8 +-
 app/test-pmd/cmdline.c                        | 290 +++---
 app/test-pmd/config.c                         | 198 ++--
 app/test-pmd/csumonly.c                       |  28 +-
 app/test-pmd/flowgen.c                        |   6 +-
 app/test-pmd/macfwd.c                         |   6 +-
 app/test-pmd/macswap_common.h                 |   6 +-
 app/test-pmd/parameters.c                     |  54 +-
 app/test-pmd/testpmd.c                        |  60 +-
 app/test-pmd/testpmd.h                        |   2 +-
 app/test-pmd/txonly.c                         |   6 +-
 app/test/test_ethdev_link.c                   |  68 +-
 app/test/test_event_eth_rx_adapter.c          |   4 +-
 app/test/test_kni.c                           |   2 +-
 app/test/test_link_bonding.c                  |   4 +-
 app/test/test_link_bonding_mode4.c            |   4 +-
 app/test/test_link_bonding_rssconf.c          |  10 +-
 app/test/test_pmd_perf.c                      |  12 +-
 app/test/virtual_pmd.c                        |  10 +-
 doc/guides/eventdevs/cnxk.rst                 |   2 +-
 doc/guides/eventdevs/octeontx2.rst            |   2 +-
 doc/guides/howto/debug_troubleshoot.rst       |   2 +-
 doc/guides/nics/bnxt.rst                      |  26 +-
 doc/guides/nics/enic.rst                      |   2 +-
 doc/guides/nics/features.rst                  | 116 +--
 doc/guides/nics/fm10k.rst                     |   6 +-
 doc/guides/nics/intel_vf.rst                  |  10 +-
 doc/guides/nics/ixgbe.rst                     |  12 +-
 doc/guides/nics/mlx5.rst                      |   4 +-
 doc/guides/nics/tap.rst                       |   2 +-
 .../generic_segmentation_offload_lib.rst      |   8 +-
 doc/guides/prog_guide/mbuf_lib.rst            |  18 +-
 doc/guides/prog_guide/poll_mode_drv.rst       |   8 +-
 doc/guides/prog_guide/rte_flow.rst            |  34 +-
 doc/guides/prog_guide/rte_security.rst        |   2 +-
 doc/guides/rel_notes/deprecation.rst          |  12 +-
 doc/guides/sample_app_ug/ipsec_secgw.rst      |   4 +-
 doc/guides/testpmd_app_ug/run_app.rst         |   2 +-
 drivers/bus/dpaa/include/process.h            |  16 +-
 drivers/common/cnxk/roc_npc.h                 |   2 +-
 drivers/net/af_packet/rte_eth_af_packet.c     |  16 +-
 drivers/net/af_xdp/rte_eth_af_xdp.c           |  12 +-
 drivers/net/ark/ark_ethdev.c                  |  16 +-
 drivers/net/atlantic/atl_ethdev.c             |  90 +-
 drivers/net/atlantic/atl_ethdev.h             |  18 +-
 drivers/net/atlantic/atl_rxtx.c               |   6 +-
 drivers/net/avp/avp_ethdev.c                  |  26 +-
 drivers/net/axgbe/axgbe_dev.c                 |   6 +-
 drivers/net/axgbe/axgbe_ethdev.c              | 102 +-
 drivers/net/axgbe/axgbe_ethdev.h              |  12 +-
 drivers/net/axgbe/axgbe_mdio.c                |   2 +-
 drivers/net/axgbe/axgbe_rxtx.c                |   6 +-
 drivers/net/bnx2x/bnx2x_ethdev.c              |  16 +-
 drivers/net/bnxt/bnxt.h                       |  68 +-
 drivers/net/bnxt/bnxt_ethdev.c                | 170 ++--
 drivers/net/bnxt/bnxt_flow.c                  |   4 +-
 drivers/net/bnxt/bnxt_hwrm.c                  | 112 +--
 drivers/net/bnxt/bnxt_reps.c                  |   2 +-
 drivers/net/bnxt/bnxt_ring.c                  |   4 +-
 drivers/net/bnxt/bnxt_rxq.c                   |  28 +-
 drivers/net/bnxt/bnxt_rxr.c                   |   4 +-
 drivers/net/bnxt/bnxt_rxtx_vec_avx2.c         |   2 +-
 drivers/net/bnxt/bnxt_rxtx_vec_common.h       |   2 +-
 drivers/net/bnxt/bnxt_rxtx_vec_neon.c         |   2 +-
 drivers/net/bnxt/bnxt_rxtx_vec_sse.c          |   2 +-
 drivers/net/bnxt/bnxt_txr.c                   |   4 +-
 drivers/net/bnxt/bnxt_vnic.c                  |  30 +-
 drivers/net/bnxt/rte_pmd_bnxt.c               |   8 +-
 drivers/net/bonding/eth_bond_private.h        |   2 +-
 drivers/net/bonding/rte_eth_bond_8023ad.c     |  16 +-
 drivers/net/bonding/rte_eth_bond_api.c        |   6 +-
 drivers/net/bonding/rte_eth_bond_pmd.c        |  42 +-
 drivers/net/cnxk/cn10k_ethdev.c               |  38 +-
 drivers/net/cnxk/cn10k_rx.c                   |   4 +-
 drivers/net/cnxk/cn10k_tx.c                   |   4 +-
 drivers/net/cnxk/cn9k_ethdev.c                |  56 +-
 drivers/net/cnxk/cn9k_rx.c                    |   4 +-
 drivers/net/cnxk/cn9k_tx.c                    |   4 +-
 drivers/net/cnxk/cnxk_ethdev.c                |  84 +-
 drivers/net/cnxk/cnxk_ethdev.h                |  49 +-
 drivers/net/cnxk/cnxk_ethdev_devargs.c        |   6 +-
 drivers/net/cnxk/cnxk_ethdev_ops.c            | 104 +-
 drivers/net/cnxk/cnxk_link.c                  |  14 +-
 drivers/net/cnxk/cnxk_ptp.c                   |   4 +-
 drivers/net/cnxk/cnxk_rte_flow.c              |   2 +-
 drivers/net/cxgbe/cxgbe.h                     |  48 +-
 drivers/net/cxgbe/cxgbe_ethdev.c              |  42 +-
 drivers/net/cxgbe/cxgbe_main.c                |  12 +-
 drivers/net/cxgbe/sge.c                       |   2 +-
 drivers/net/dpaa/dpaa_ethdev.c                | 190 ++--
 drivers/net/dpaa/dpaa_ethdev.h                |  10 +-
 drivers/net/dpaa/dpaa_flow.c                  |  32 +-
 drivers/net/dpaa2/base/dpaa2_hw_dpni.c        |  34 +-
 drivers/net/dpaa2/dpaa2_ethdev.c              | 148 +--
 drivers/net/dpaa2/dpaa2_ethdev.h              |  12 +-
 drivers/net/dpaa2/dpaa2_rxtx.c                |   8 +-
 drivers/net/e1000/e1000_ethdev.h              |  18 +-
 drivers/net/e1000/em_ethdev.c                 |  68 +-
 drivers/net/e1000/em_rxtx.c                   |  48 +-
 drivers/net/e1000/igb_ethdev.c                | 158 +--
 drivers/net/e1000/igb_pf.c                    |   2 +-
 drivers/net/e1000/igb_rxtx.c                  | 116 +--
 drivers/net/ena/ena_ethdev.c                  |  70 +-
 drivers/net/ena/ena_ethdev.h                  |   4 +-
 drivers/net/ena/ena_rss.c                     |  66 +-
 drivers/net/enetc/enetc_ethdev.c              |  38 +-
 drivers/net/enic/enic_ethdev.c                |  80 +-
 drivers/net/enic/enic_main.c                  |  40 +-
 drivers/net/enic/enic_res.c                   |  52 +-
 drivers/net/failsafe/failsafe.c               |   8 +-
 drivers/net/failsafe/failsafe_intr.c          |   4 +-
 drivers/net/failsafe/failsafe_ops.c           |  82 +-
 drivers/net/fm10k/fm10k.h                     |   4 +-
 drivers/net/fm10k/fm10k_ethdev.c              | 140 +--
 drivers/net/fm10k/fm10k_rxtx_vec.c            |   6 +-
 drivers/net/hinic/base/hinic_pmd_hwdev.c      |  22 +-
 drivers/net/hinic/hinic_pmd_ethdev.c          | 134 +--
 drivers/net/hinic/hinic_pmd_rx.c              |  36 +-
 drivers/net/hinic/hinic_pmd_rx.h              |  22 +-
 drivers/net/hns3/hns3_dcb.c                   |  14 +-
 drivers/net/hns3/hns3_ethdev.c                | 360 +++----
 drivers/net/hns3/hns3_ethdev.h                |  12 +-
 drivers/net/hns3/hns3_ethdev_vf.c             | 108 +--
 drivers/net/hns3/hns3_flow.c                  |   6 +-
 drivers/net/hns3/hns3_ptp.c                   |   2 +-
 drivers/net/hns3/hns3_rss.c                   | 100 +-
 drivers/net/hns3/hns3_rss.h                   |  28 +-
 drivers/net/hns3/hns3_rxtx.c                  |  30 +-
 drivers/net/hns3/hns3_rxtx.h                  |   2 +-
 drivers/net/hns3/hns3_rxtx_vec.c              |  10 +-
 drivers/net/i40e/i40e_ethdev.c                | 270 +++---
 drivers/net/i40e/i40e_ethdev.h                |  24 +-
 drivers/net/i40e/i40e_ethdev_vf.c             | 110 +--
 drivers/net/i40e/i40e_flow.c                  |   2 +-
 drivers/net/i40e/i40e_hash.c                  | 156 +--
 drivers/net/i40e/i40e_pf.c                    |  14 +-
 drivers/net/i40e/i40e_rxtx.c                  |  10 +-
 drivers/net/i40e/i40e_rxtx.h                  |   4 +-
 drivers/net/i40e/i40e_rxtx_vec_avx512.c       |   2 +-
 drivers/net/i40e/i40e_rxtx_vec_common.h       |   8 +-
 drivers/net/i40e/i40e_vf_representor.c        |  48 +-
 drivers/net/iavf/iavf.h                       |  24 +-
 drivers/net/iavf/iavf_ethdev.c                | 178 ++--
 drivers/net/iavf/iavf_hash.c                  | 300 +++---
 drivers/net/iavf/iavf_rxtx.c                  |   2 +-
 drivers/net/iavf/iavf_rxtx.h                  |  24 +-
 drivers/net/iavf/iavf_rxtx_vec_avx2.c         |   4 +-
 drivers/net/iavf/iavf_rxtx_vec_avx512.c       |   6 +-
 drivers/net/iavf/iavf_rxtx_vec_sse.c          |   2 +-
 drivers/net/ice/ice_dcf.c                     |   2 +-
 drivers/net/ice/ice_dcf_ethdev.c              |  90 +-
 drivers/net/ice/ice_dcf_vf_representor.c      |  58 +-
 drivers/net/ice/ice_ethdev.c                  | 182 ++--
 drivers/net/ice/ice_ethdev.h                  |  26 +-
 drivers/net/ice/ice_hash.c                    | 268 +++---
 drivers/net/ice/ice_rxtx.c                    |   8 +-
 drivers/net/ice/ice_rxtx_vec_avx2.c           |   2 +-
 drivers/net/ice/ice_rxtx_vec_avx512.c         |   4 +-
 drivers/net/ice/ice_rxtx_vec_common.h         |  26 +-
 drivers/net/ice/ice_rxtx_vec_sse.c            |   2 +-
 drivers/net/igc/igc_ethdev.c                  | 134 +--
 drivers/net/igc/igc_ethdev.h                  |  56 +-
 drivers/net/igc/igc_txrx.c                    |  50 +-
 drivers/net/ionic/ionic_ethdev.c              | 128 +--
 drivers/net/ionic/ionic_ethdev.h              |  12 +-
 drivers/net/ionic/ionic_lif.c                 |  36 +-
 drivers/net/ionic/ionic_rxtx.c                |  10 +-
 drivers/net/ipn3ke/ipn3ke_representor.c       |  70 +-
 drivers/net/ixgbe/ixgbe_ethdev.c              | 302 +++---
 drivers/net/ixgbe/ixgbe_ethdev.h              |  18 +-
 drivers/net/ixgbe/ixgbe_fdir.c                |  24 +-
 drivers/net/ixgbe/ixgbe_flow.c                |   2 +-
 drivers/net/ixgbe/ixgbe_ipsec.c               |  12 +-
 drivers/net/ixgbe/ixgbe_pf.c                  |  38 +-
 drivers/net/ixgbe/ixgbe_rxtx.c                | 252 ++---
 drivers/net/ixgbe/ixgbe_rxtx.h                |   4 +-
 drivers/net/ixgbe/ixgbe_rxtx_vec_common.h     |   2 +-
 drivers/net/ixgbe/ixgbe_tm.c                  |  16 +-
 drivers/net/ixgbe/ixgbe_vf_representor.c      |  16 +-
 drivers/net/ixgbe/rte_pmd_ixgbe.c             |  14 +-
 drivers/net/ixgbe/rte_pmd_ixgbe.h             |   4 +-
 drivers/net/kni/rte_eth_kni.c                 |   8 +-
 drivers/net/liquidio/lio_ethdev.c             | 102 +-
 drivers/net/memif/memif_socket.c              |   2 +-
 drivers/net/memif/rte_eth_memif.c             |  14 +-
 drivers/net/mlx4/mlx4_ethdev.c                |  32 +-
 drivers/net/mlx4/mlx4_flow.c                  |  30 +-
 drivers/net/mlx4/mlx4_intr.c                  |   8 +-
 drivers/net/mlx4/mlx4_rxq.c                   |  20 +-
 drivers/net/mlx4/mlx4_txq.c                   |  24 +-
 drivers/net/mlx5/linux/mlx5_ethdev_os.c       |  54 +-
 drivers/net/mlx5/linux/mlx5_os.c              |   6 +-
 drivers/net/mlx5/mlx5.c                       |   4 +-
 drivers/net/mlx5/mlx5.h                       |   2 +-
 drivers/net/mlx5/mlx5_defs.h                  |   6 +-
 drivers/net/mlx5/mlx5_ethdev.c                |   6 +-
 drivers/net/mlx5/mlx5_flow.c                  |  54 +-
 drivers/net/mlx5/mlx5_flow.h                  |  12 +-
 drivers/net/mlx5/mlx5_flow_dv.c               |  44 +-
 drivers/net/mlx5/mlx5_flow_verbs.c            |   4 +-
 drivers/net/mlx5/mlx5_rss.c                   |   2 +-
 drivers/net/mlx5/mlx5_rxq.c                   |  42 +-
 drivers/net/mlx5/mlx5_rxtx_vec.h              |   8 +-
 drivers/net/mlx5/mlx5_tx.c                    |  30 +-
 drivers/net/mlx5/mlx5_txq.c                   |  52 +-
 drivers/net/mlx5/mlx5_vlan.c                  |   4 +-
 drivers/net/mlx5/windows/mlx5_os.c            |   4 +-
 drivers/net/mvneta/mvneta_ethdev.c            |  34 +-
 drivers/net/mvneta/mvneta_ethdev.h            |  12 +-
 drivers/net/mvneta/mvneta_rxtx.c              |   2 +-
 drivers/net/mvpp2/mrvl_ethdev.c               | 116 +--
 drivers/net/netvsc/hn_ethdev.c                |  62 +-
 drivers/net/netvsc/hn_rndis.c                 |  50 +-
 drivers/net/nfb/nfb_ethdev.c                  |  20 +-
 drivers/net/nfb/nfb_rx.c                      |   2 +-
 drivers/net/nfp/nfp_common.c                  | 122 +--
 drivers/net/nfp/nfp_ethdev.c                  |   2 +-
 drivers/net/nfp/nfp_ethdev_vf.c               |   2 +-
 drivers/net/ngbe/ngbe_ethdev.c                |  50 +-
 drivers/net/null/rte_eth_null.c               |  16 +-
 drivers/net/octeontx/octeontx_ethdev.c        |  78 +-
 drivers/net/octeontx/octeontx_ethdev.h        |  32 +-
 drivers/net/octeontx/octeontx_ethdev_ops.c    |  26 +-
 drivers/net/octeontx2/otx2_ethdev.c           |  96 +-
 drivers/net/octeontx2/otx2_ethdev.h           |  66 +-
 drivers/net/octeontx2/otx2_ethdev_devargs.c   |  12 +-
 drivers/net/octeontx2/otx2_ethdev_ops.c       |  18 +-
 drivers/net/octeontx2/otx2_ethdev_sec.c       |   8 +-
 drivers/net/octeontx2/otx2_flow.c             |   2 +-
 drivers/net/octeontx2/otx2_flow_ctrl.c        |  36 +-
 drivers/net/octeontx2/otx2_flow_parse.c       |   4 +-
 drivers/net/octeontx2/otx2_link.c             |  40 +-
 drivers/net/octeontx2/otx2_mcast.c            |   2 +-
 drivers/net/octeontx2/otx2_ptp.c              |   4 +-
 drivers/net/octeontx2/otx2_rss.c              |  62 +-
 drivers/net/octeontx2/otx2_rx.c               |   4 +-
 drivers/net/octeontx2/otx2_tx.c               |   2 +-
 drivers/net/octeontx2/otx2_vlan.c             |  42 +-
 drivers/net/octeontx_ep/otx_ep_ethdev.c       |   8 +-
 drivers/net/octeontx_ep/otx_ep_rxtx.c         |   8 +-
 drivers/net/pcap/pcap_ethdev.c                |  12 +-
 drivers/net/pfe/pfe_ethdev.c                  |  18 +-
 drivers/net/qede/base/mcp_public.h            |   4 +-
 drivers/net/qede/qede_ethdev.c                | 138 +--
 drivers/net/qede/qede_filter.c                |  10 +-
 drivers/net/qede/qede_rxtx.c                  |   2 +-
 drivers/net/qede/qede_rxtx.h                  |  16 +-
 drivers/net/ring/rte_eth_ring.c               |  20 +-
 drivers/net/sfc/sfc.c                         |  30 +-
 drivers/net/sfc/sfc_ef100_rx.c                |  10 +-
 drivers/net/sfc/sfc_ef100_tx.c                |  20 +-
 drivers/net/sfc/sfc_ef10_essb_rx.c            |   4 +-
 drivers/net/sfc/sfc_ef10_rx.c                 |   8 +-
 drivers/net/sfc/sfc_ef10_tx.c                 |  32 +-
 drivers/net/sfc/sfc_ethdev.c                  |  42 +-
 drivers/net/sfc/sfc_flow.c                    |   2 +-
 drivers/net/sfc/sfc_port.c                    |  54 +-
 drivers/net/sfc/sfc_rx.c                      |  52 +-
 drivers/net/sfc/sfc_tx.c                      |  50 +-
 drivers/net/softnic/rte_eth_softnic.c         |  12 +-
 drivers/net/szedata2/rte_eth_szedata2.c       |  14 +-
 drivers/net/tap/rte_eth_tap.c                 | 104 +-
 drivers/net/tap/tap_rss.h                     |   2 +-
 drivers/net/thunderx/nicvf_ethdev.c           | 100 +-
 drivers/net/thunderx/nicvf_ethdev.h           |  42 +-
 drivers/net/txgbe/txgbe_ethdev.c              | 236 ++---
 drivers/net/txgbe/txgbe_ethdev.h              |  18 +-
 drivers/net/txgbe/txgbe_ethdev_vf.c           |  24 +-
 drivers/net/txgbe/txgbe_fdir.c                |  20 +-
 drivers/net/txgbe/txgbe_flow.c                |   2 +-
 drivers/net/txgbe/txgbe_ipsec.c               |  12 +-
 drivers/net/txgbe/txgbe_pf.c                  |  34 +-
 drivers/net/txgbe/txgbe_rxtx.c                | 312 +++---
 drivers/net/txgbe/txgbe_rxtx.h                |   4 +-
 drivers/net/txgbe/txgbe_tm.c                  |  16 +-
 drivers/net/vhost/rte_eth_vhost.c             |  16 +-
 drivers/net/virtio/virtio_ethdev.c            | 126 +--
 drivers/net/vmxnet3/vmxnet3_ethdev.c          |  74 +-
 drivers/net/vmxnet3/vmxnet3_ethdev.h          |  16 +-
 drivers/net/vmxnet3/vmxnet3_rxtx.c            |  16 +-
 examples/bbdev_app/main.c                     |   6 +-
 examples/bond/main.c                          |  14 +-
 examples/distributor/main.c                   |  12 +-
 examples/ethtool/ethtool-app/main.c           |   2 +-
 examples/ethtool/lib/rte_ethtool.c            |  18 +-
 .../pipeline_worker_generic.c                 |  16 +-
 .../eventdev_pipeline/pipeline_worker_tx.c    |  12 +-
 examples/flow_classify/flow_classify.c        |   4 +-
 examples/flow_filtering/main.c                |  16 +-
 examples/ioat/ioatfwd.c                       |   8 +-
 examples/ip_fragmentation/main.c              |  14 +-
 examples/ip_pipeline/link.c                   |  14 +-
 examples/ip_reassembly/main.c                 |  20 +-
 examples/ipsec-secgw/ipsec-secgw.c            |  34 +-
 examples/ipsec-secgw/sa.c                     |   8 +-
 examples/ipv4_multicast/main.c                |   8 +-
 examples/kni/main.c                           |  12 +-
 examples/l2fwd-crypto/main.c                  |  10 +-
 examples/l2fwd-event/l2fwd_common.c           |  10 +-
 examples/l2fwd-event/main.c                   |   2 +-
 examples/l2fwd-jobstats/main.c                |   8 +-
 examples/l2fwd-keepalive/main.c               |   8 +-
 examples/l2fwd/main.c                         |   8 +-
 examples/l3fwd-acl/main.c                     |  20 +-
 examples/l3fwd-graph/main.c                   |  16 +-
 examples/l3fwd-power/main.c                   |  18 +-
 examples/l3fwd/l3fwd_event.c                  |   4 +-
 examples/l3fwd/main.c                         |  20 +-
 examples/link_status_interrupt/main.c         |  10 +-
 .../client_server_mp/mp_server/init.c         |   4 +-
 examples/multi_process/symmetric_mp/main.c    |  14 +-
 examples/ntb/ntb_fwd.c                        |   6 +-
 examples/packet_ordering/main.c               |   4 +-
 .../performance-thread/l3fwd-thread/main.c    |  18 +-
 examples/pipeline/obj.c                       |  14 +-
 examples/ptpclient/ptpclient.c                |  10 +-
 examples/qos_meter/main.c                     |  16 +-
 examples/qos_sched/init.c                     |   6 +-
 examples/rxtx_callbacks/main.c                |   8 +-
 examples/server_node_efd/server/init.c        |   8 +-
 examples/skeleton/basicfwd.c                  |   4 +-
 examples/vhost/main.c                         |  28 +-
 examples/vm_power_manager/main.c              |   6 +-
 examples/vmdq/main.c                          |  20 +-
 examples/vmdq_dcb/main.c                      |  40 +-
 lib/ethdev/rte_ethdev.c                       | 187 ++--
 lib/ethdev/rte_ethdev.h                       | 907 +++++++++++-------
 lib/ethdev/rte_ethdev_core.h                  |   2 +-
 lib/ethdev/rte_flow.h                         |   2 +-
 lib/gso/rte_gso.c                             |  20 +-
 lib/gso/rte_gso.h                             |   4 +-
 lib/mbuf/rte_mbuf_core.h                      |   8 +-
 lib/mbuf/rte_mbuf_dyn.h                       |   2 +-
 337 files changed, 6520 insertions(+), 6295 deletions(-)
app/proc-info/main.c +4 -4
index a8e928fa9ff3..963b6aa5c589 100644
@@ -757,11 +757,11 @@ show_port(void)
 		}
 
 		ret = rte_eth_dev_flow_ctrl_get(i, &fc_conf);
-		if (ret == 0 && fc_conf.mode != RTE_FC_NONE)  {
+		if (ret == 0 && fc_conf.mode != RTE_ETH_FC_NONE)  {
 			printf("\t  -- flow control mode %s%s high %u low %u pause %u%s%s\n",
-			       fc_conf.mode == RTE_FC_RX_PAUSE ? "rx " :
-			       fc_conf.mode == RTE_FC_TX_PAUSE ? "tx " :
-			       fc_conf.mode == RTE_FC_FULL ? "full" : "???",
+			       fc_conf.mode == RTE_ETH_FC_RX_PAUSE ? "rx " :
+			       fc_conf.mode == RTE_ETH_FC_TX_PAUSE ? "tx " :
+			       fc_conf.mode == RTE_ETH_FC_FULL ? "full" : "???",
 			       fc_conf.autoneg ? " auto" : "",
 			       fc_conf.high_water,
 			       fc_conf.low_water,
app/test-eventdev/test_perf_common.c +2 -2
index cc100650c21e..41e92143121b 100644
@@ -668,14 +668,14 @@ perf_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 	struct test_perf *t = evt_test_priv(test);
 	struct rte_eth_conf port_conf = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_RSS,
+			.mq_mode = RTE_ETH_MQ_RX_RSS,
 			.max_rx_pkt_len = RTE_ETHER_MAX_LEN,
 			.split_hdr_size = 0,
 		},
 		.rx_adv_conf = {
 			.rss_conf = {
 				.rss_key = NULL,
-				.rss_hf = ETH_RSS_IP,
+				.rss_hf = RTE_ETH_RSS_IP,
 			},
 		},
 	};
app/test-eventdev/test_pipeline_common.c +6 -6
index 6ee530d4cdc9..96c8a5828364 100644
@@ -176,12 +176,12 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 	struct rte_eth_rxconf rx_conf;
 	struct rte_eth_conf port_conf = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_RSS,
+			.mq_mode = RTE_ETH_MQ_RX_RSS,
 		},
 		.rx_adv_conf = {
 			.rss_conf = {
 				.rss_key = NULL,
-				.rss_hf = ETH_RSS_IP,
+				.rss_hf = RTE_ETH_RSS_IP,
 			},
 		},
 	};
@@ -199,7 +199,7 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 
 	port_conf.rxmode.max_rx_pkt_len = opt->max_pkt_sz;
 	if (opt->max_pkt_sz > RTE_ETHER_MAX_LEN)
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_JUMBO_FRAME;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_JUMBO_FRAME;
 
 	t->internal_port = 1;
 	RTE_ETH_FOREACH_DEV(i) {
@@ -224,7 +224,7 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 
 		if (!(caps & RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT))
 			local_port_conf.rxmode.offloads |=
-				DEV_RX_OFFLOAD_RSS_HASH;
+				RTE_ETH_RX_OFFLOAD_RSS_HASH;
 
 		ret = rte_eth_dev_info_get(i, &dev_info);
 		if (ret != 0) {
@@ -234,9 +234,9 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 		}
 
 		/* Enable mbuf fast free if PMD has the capability. */
-		if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_MBUF_FAST_FREE)
+		if (dev_info.tx_offload_capa & RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE)
 			local_port_conf.txmode.offloads |=
-				DEV_TX_OFFLOAD_MBUF_FAST_FREE;
+				RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE;
 
 		rx_conf = dev_info.default_rxconf;
 		rx_conf.offloads = port_conf.rxmode.offloads;
app/test-flow-perf/config.h +1 -1
index a14d4e05e185..4249b6175b82 100644
@@ -5,7 +5,7 @@
 #define FLOW_ITEM_MASK(_x) (UINT64_C(1) << _x)
 #define FLOW_ACTION_MASK(_x) (UINT64_C(1) << _x)
 #define FLOW_ATTR_MASK(_x) (UINT64_C(1) << _x)
-#define GET_RSS_HF() (ETH_RSS_IP)
+#define GET_RSS_HF() (RTE_ETH_RSS_IP)
 
 /* Configuration */
 #define RXQ_NUM 4
app/test-pipeline/init.c +4 -4
index fe37d63730c6..c73801904103 100644
@@ -70,16 +70,16 @@ struct app_params app = {
 static struct rte_eth_conf port_conf = {
 	.rxmode = {
 		.split_hdr_size = 0,
-		.offloads = DEV_RX_OFFLOAD_CHECKSUM,
+		.offloads = RTE_ETH_RX_OFFLOAD_CHECKSUM,
 	},
 	.rx_adv_conf = {
 		.rss_conf = {
 			.rss_key = NULL,
-			.rss_hf = ETH_RSS_IP,
+			.rss_hf = RTE_ETH_RSS_IP,
 		},
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 };
 
@@ -178,7 +178,7 @@ app_ports_check_link(void)
 		RTE_LOG(INFO, USER1, "Port %u %s\n",
 			port,
 			link_status_text);
-		if (link.link_status == ETH_LINK_DOWN)
+		if (link.link_status == RTE_ETH_LINK_DOWN)
 			all_ports_up = 0;
 	}
 
app/test-pmd/cmdline.c +145 -145

624 lines not on this page · raw message

app/test-pmd/config.c +99 -99

350 lines not on this page · raw message

app/test-pmd/csumonly.c +14 -14
index 38cc256533b6..454a2d41c366 100644
@@ -485,7 +485,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info,
 		if (info->l4_proto == IPPROTO_TCP && tso_segsz) {
 			ol_flags |= PKT_TX_IP_CKSUM;
 		} else {
-			if (tx_offloads & DEV_TX_OFFLOAD_IPV4_CKSUM) {
+			if (tx_offloads & RTE_ETH_TX_OFFLOAD_IPV4_CKSUM) {
 				ol_flags |= PKT_TX_IP_CKSUM;
 			} else {
 				ipv4_hdr->hdr_checksum = 0;
@@ -502,7 +502,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info,
 		udp_hdr = (struct rte_udp_hdr *)((char *)l3_hdr + info->l3_len);
 		/* do not recalculate udp cksum if it was 0 */
 		if (udp_hdr->dgram_cksum != 0) {
-			if (tx_offloads & DEV_TX_OFFLOAD_UDP_CKSUM) {
+			if (tx_offloads & RTE_ETH_TX_OFFLOAD_UDP_CKSUM) {
 				ol_flags |= PKT_TX_UDP_CKSUM;
 			} else {
 				udp_hdr->dgram_cksum = 0;
@@ -517,7 +517,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info,
 		tcp_hdr = (struct rte_tcp_hdr *)((char *)l3_hdr + info->l3_len);
 		if (tso_segsz)
 			ol_flags |= PKT_TX_TCP_SEG;
-		else if (tx_offloads & DEV_TX_OFFLOAD_TCP_CKSUM) {
+		else if (tx_offloads & RTE_ETH_TX_OFFLOAD_TCP_CKSUM) {
 			ol_flags |= PKT_TX_TCP_CKSUM;
 		} else {
 			tcp_hdr->cksum = 0;
@@ -532,7 +532,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info,
 			((char *)l3_hdr + info->l3_len);
 		/* sctp payload must be a multiple of 4 to be
 		 * offloaded */
-		if ((tx_offloads & DEV_TX_OFFLOAD_SCTP_CKSUM) &&
+		if ((tx_offloads & RTE_ETH_TX_OFFLOAD_SCTP_CKSUM) &&
 			((ipv4_hdr->total_length & 0x3) == 0)) {
 			ol_flags |= PKT_TX_SCTP_CKSUM;
 		} else {
@@ -559,7 +559,7 @@ process_outer_cksums(void *outer_l3_hdr, struct testpmd_offload_info *info,
 		ipv4_hdr->hdr_checksum = 0;
 		ol_flags |= PKT_TX_OUTER_IPV4;
 
-		if (tx_offloads	& DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM)
+		if (tx_offloads	& RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM)
 			ol_flags |= PKT_TX_OUTER_IP_CKSUM;
 		else
 			ipv4_hdr->hdr_checksum = rte_ipv4_cksum(ipv4_hdr);
@@ -576,7 +576,7 @@ process_outer_cksums(void *outer_l3_hdr, struct testpmd_offload_info *info,
 		ol_flags |= PKT_TX_TCP_SEG;
 
 	/* Skip SW outer UDP checksum generation if HW supports it */
-	if (tx_offloads & DEV_TX_OFFLOAD_OUTER_UDP_CKSUM) {
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM) {
 		if (info->outer_ethertype == _htons(RTE_ETHER_TYPE_IPV4))
 			udp_hdr->dgram_cksum
 				= rte_ipv4_phdr_cksum(ipv4_hdr, ol_flags);
@@ -959,9 +959,9 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
 		if (info.is_tunnel == 1) {
 			if (info.tunnel_tso_segsz ||
 			    (tx_offloads &
-			     DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM) ||
+			     RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM) ||
 			    (tx_offloads &
-			     DEV_TX_OFFLOAD_OUTER_UDP_CKSUM)) {
+			     RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM)) {
 				m->outer_l2_len = info.outer_l2_len;
 				m->outer_l3_len = info.outer_l3_len;
 				m->l2_len = info.l2_len;
@@ -1022,19 +1022,19 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
 					rte_be_to_cpu_16(info.outer_ethertype),
 					info.outer_l3_len);
 			/* dump tx packet info */
-			if ((tx_offloads & (DEV_TX_OFFLOAD_IPV4_CKSUM |
-					    DEV_TX_OFFLOAD_UDP_CKSUM |
-					    DEV_TX_OFFLOAD_TCP_CKSUM |
-					    DEV_TX_OFFLOAD_SCTP_CKSUM)) ||
+			if ((tx_offloads & (RTE_ETH_TX_OFFLOAD_IPV4_CKSUM |
+					    RTE_ETH_TX_OFFLOAD_UDP_CKSUM |
+					    RTE_ETH_TX_OFFLOAD_TCP_CKSUM |
+					    RTE_ETH_TX_OFFLOAD_SCTP_CKSUM)) ||
 				info.tso_segsz != 0)
 				printf("tx: m->l2_len=%d m->l3_len=%d "
 					"m->l4_len=%d\n",
 					m->l2_len, m->l3_len, m->l4_len);
 			if (info.is_tunnel == 1) {
 				if ((tx_offloads &
-				    DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM) ||
+				    RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM) ||
 				    (tx_offloads &
-				    DEV_TX_OFFLOAD_OUTER_UDP_CKSUM) ||
+				    RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM) ||
 				    (tx_ol_flags & PKT_TX_OUTER_IPV6))
 					printf("tx: m->outer_l2_len=%d "
 						"m->outer_l3_len=%d\n",
app/test-pmd/flowgen.c +3 -3
index 9348618d0f8d..7d658d002cb6 100644
@@ -100,11 +100,11 @@ pkt_burst_flow_gen(struct fwd_stream *fs)
 	vlan_tci_outer = ports[fs->tx_port].tx_vlan_id_outer;
 
 	tx_offloads = ports[fs->tx_port].dev_conf.txmode.offloads;
-	if (tx_offloads	& DEV_TX_OFFLOAD_VLAN_INSERT)
+	if (tx_offloads	& RTE_ETH_TX_OFFLOAD_VLAN_INSERT)
 		ol_flags |= PKT_TX_VLAN_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_QINQ_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_QINQ_INSERT)
 		ol_flags |= PKT_TX_QINQ_PKT;
-	if (tx_offloads	& DEV_TX_OFFLOAD_MACSEC_INSERT)
+	if (tx_offloads	& RTE_ETH_TX_OFFLOAD_MACSEC_INSERT)
 		ol_flags |= PKT_TX_MACSEC;
 
 	for (nb_pkt = 0; nb_pkt < nb_pkt_per_burst; nb_pkt++) {
app/test-pmd/macfwd.c +3 -3
index 0568ea794d48..1d878ba0a694 100644
@@ -72,11 +72,11 @@ pkt_burst_mac_forward(struct fwd_stream *fs)
 	fs->rx_packets += nb_rx;
 	txp = &ports[fs->tx_port];
 	tx_offloads = txp->dev_conf.txmode.offloads;
-	if (tx_offloads	& DEV_TX_OFFLOAD_VLAN_INSERT)
+	if (tx_offloads	& RTE_ETH_TX_OFFLOAD_VLAN_INSERT)
 		ol_flags = PKT_TX_VLAN_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_QINQ_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_QINQ_INSERT)
 		ol_flags |= PKT_TX_QINQ_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_MACSEC_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_MACSEC_INSERT)
 		ol_flags |= PKT_TX_MACSEC;
 	for (i = 0; i < nb_rx; i++) {
 		if (likely(i < nb_rx - 1))
app/test-pmd/macswap_common.h +3 -3
index 7e9a3590a436..7ade9a686b7c 100644
@@ -10,11 +10,11 @@ ol_flags_init(uint64_t tx_offload)
 {
 	uint64_t ol_flags = 0;
 
-	ol_flags |= (tx_offload & DEV_TX_OFFLOAD_VLAN_INSERT) ?
+	ol_flags |= (tx_offload & RTE_ETH_TX_OFFLOAD_VLAN_INSERT) ?
 			PKT_TX_VLAN : 0;
-	ol_flags |= (tx_offload & DEV_TX_OFFLOAD_QINQ_INSERT) ?
+	ol_flags |= (tx_offload & RTE_ETH_TX_OFFLOAD_QINQ_INSERT) ?
 			PKT_TX_QINQ : 0;
-	ol_flags |= (tx_offload & DEV_TX_OFFLOAD_MACSEC_INSERT) ?
+	ol_flags |= (tx_offload & RTE_ETH_TX_OFFLOAD_MACSEC_INSERT) ?
 			PKT_TX_MACSEC : 0;
 
 	return ol_flags;
app/test-pmd/parameters.c +27 -27

128 lines not on this page · raw message

app/test-pmd/testpmd.c +30 -30

183 lines not on this page · raw message

app/test-pmd/testpmd.h +1 -1
index 16a3598e48c5..e4ad8a6a7cff 100644
@@ -446,7 +446,7 @@ extern lcoreid_t bitrate_lcore_id;
 extern uint8_t bitrate_enabled;
 #endif
 
-extern struct rte_fdir_conf fdir_conf;
+extern struct rte_eth_fdir_conf fdir_conf;
 
 /*
  * Configuration of packet segments used to scatter received packets
app/test-pmd/txonly.c +3 -3
index aed820f5d340..5409d7a0deb0 100644
@@ -352,11 +352,11 @@ pkt_burst_transmit(struct fwd_stream *fs)
 	tx_offloads = txp->dev_conf.txmode.offloads;
 	vlan_tci = txp->tx_vlan_id;
 	vlan_tci_outer = txp->tx_vlan_id_outer;
-	if (tx_offloads	& DEV_TX_OFFLOAD_VLAN_INSERT)
+	if (tx_offloads	& RTE_ETH_TX_OFFLOAD_VLAN_INSERT)
 		ol_flags = PKT_TX_VLAN_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_QINQ_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_QINQ_INSERT)
 		ol_flags |= PKT_TX_QINQ_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_MACSEC_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_MACSEC_INSERT)
 		ol_flags |= PKT_TX_MACSEC;
 
 	/*
app/test/test_ethdev_link.c +34 -34

116 lines not on this page · raw message

app/test/test_event_eth_rx_adapter.c +2 -2
index 9198767b4194..bb7917010d62 100644
@@ -106,7 +106,7 @@ port_init_rx_intr(uint16_t port, struct rte_mempool *mp)
 {
 	static const struct rte_eth_conf port_conf_default = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_NONE,
+			.mq_mode = RTE_ETH_MQ_RX_NONE,
 		},
 		.intr_conf = {
 			.rxq = 1,
@@ -121,7 +121,7 @@ port_init(uint16_t port, struct rte_mempool *mp)
 {
 	static const struct rte_eth_conf port_conf_default = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_NONE,
+			.mq_mode = RTE_ETH_MQ_RX_NONE,
 		},
 	};
 
app/test/test_kni.c +1 -1
index 96733554b6c4..40ab0d5c4ca4 100644
@@ -74,7 +74,7 @@ static const struct rte_eth_txconf tx_conf = {
 
 static const struct rte_eth_conf port_conf = {
 	.txmode = {
-		.mq_mode = ETH_DCB_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 };
 
app/test/test_link_bonding.c +2 -2
index 8a5c8310a8b4..23c024aa1b0c 100644
@@ -134,12 +134,12 @@ static uint16_t vlan_id = 0x100;
 
 static struct rte_eth_conf default_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.split_hdr_size = 0,
 		.max_rx_pkt_len = RTE_ETHER_MAX_LEN,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 0,
 };
app/test/test_link_bonding_mode4.c +2 -2
index 2c835fa7adc7..1556f14d6921 100644
@@ -107,12 +107,12 @@ static struct link_bonding_unittest_params test_params  = {
 
 static struct rte_eth_conf default_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.max_rx_pkt_len = RTE_ETHER_MAX_LEN,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 0,
 };
app/test/test_link_bonding_rssconf.c +5 -5
index 5dac60ca1edd..93caaf986c2f 100644
@@ -80,29 +80,29 @@ static struct link_bonding_rssconf_unittest_params test_params  = {
  */
 static struct rte_eth_conf default_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.max_rx_pkt_len = RTE_ETHER_MAX_LEN,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 0,
 };
 
 static struct rte_eth_conf rss_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_RSS,
+		.mq_mode = RTE_ETH_MQ_RX_RSS,
 		.max_rx_pkt_len = RTE_ETHER_MAX_LEN,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.rx_adv_conf = {
 		.rss_conf = {
 			.rss_key = NULL,
-			.rss_hf = ETH_RSS_IPV6,
+			.rss_hf = RTE_ETH_RSS_IPV6,
 		},
 	},
 	.lpbk_mode = 0,
app/test/test_pmd_perf.c +6 -6
index 3a248d512c4a..da7b7ad1f7cc 100644
@@ -62,12 +62,12 @@ static struct rte_ether_addr ports_eth_addr[RTE_MAX_ETHPORTS];
 
 static struct rte_eth_conf port_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.max_rx_pkt_len = RTE_ETHER_MAX_LEN,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 1,  /* enable loopback */
 };
@@ -156,7 +156,7 @@ check_all_ports_link_status(uint16_t port_num, uint32_t port_mask)
 				continue;
 			}
 			/* clear all_ports_up flag if any link down */
-			if (link.link_status == ETH_LINK_DOWN) {
+			if (link.link_status == RTE_ETH_LINK_DOWN) {
 				all_ports_up = 0;
 				break;
 			}
@@ -823,7 +823,7 @@ test_set_rxtx_conf(cmdline_fixed_string_t mode)
 		/* bulk alloc rx, full-featured tx */
 		tx_conf.tx_rs_thresh = 32;
 		tx_conf.tx_free_thresh = 32;
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_CHECKSUM;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_CHECKSUM;
 		return 0;
 	} else if (!strcmp(mode, "hybrid")) {
 		/* bulk alloc rx, vector tx
@@ -832,13 +832,13 @@ test_set_rxtx_conf(cmdline_fixed_string_t mode)
 		 */
 		tx_conf.tx_rs_thresh = 32;
 		tx_conf.tx_free_thresh = 32;
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_CHECKSUM;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_CHECKSUM;
 		return 0;
 	} else if (!strcmp(mode, "full")) {
 		/* full feature rx,tx pair */
 		tx_conf.tx_rs_thresh = 32;
 		tx_conf.tx_free_thresh = 32;
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_SCATTER;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_SCATTER;
 		return 0;
 	}
 
app/test/virtual_pmd.c +5 -5
index 7036f401ed95..6eecfa385537 100644
@@ -53,7 +53,7 @@ static int  virtual_ethdev_stop(struct rte_eth_dev *eth_dev __rte_unused)
 	void *pkt = NULL;
 	struct virtual_ethdev_private *prv = eth_dev->data->dev_private;
 
-	eth_dev->data->dev_link.link_status = ETH_LINK_DOWN;
+	eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 	eth_dev->data->dev_started = 0;
 	while (rte_ring_dequeue(prv->rx_queue, &pkt) != -ENOENT)
 		rte_pktmbuf_free(pkt);
@@ -178,7 +178,7 @@ virtual_ethdev_link_update_success(struct rte_eth_dev *bonded_eth_dev,
 		int wait_to_complete __rte_unused)
 {
 	if (!bonded_eth_dev->data->dev_started)
-		bonded_eth_dev->data->dev_link.link_status = ETH_LINK_DOWN;
+		bonded_eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 
 	return 0;
 }
@@ -574,9 +574,9 @@ virtual_ethdev_create(const char *name, struct rte_ether_addr *mac_addr,
 	eth_dev->data->nb_rx_queues = (uint16_t)1;
 	eth_dev->data->nb_tx_queues = (uint16_t)1;
 
-	eth_dev->data->dev_link.link_status = ETH_LINK_DOWN;
-	eth_dev->data->dev_link.link_speed = ETH_SPEED_NUM_10G;
-	eth_dev->data->dev_link.link_duplex = ETH_LINK_FULL_DUPLEX;
+	eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
+	eth_dev->data->dev_link.link_speed = RTE_ETH_SPEED_NUM_10G;
+	eth_dev->data->dev_link.link_duplex = RTE_ETH_LINK_FULL_DUPLEX;
 
 	eth_dev->data->mac_addrs = rte_zmalloc(name, RTE_ETHER_ADDR_LEN, 0);
 	if (eth_dev->data->mac_addrs == NULL)
doc/guides/eventdevs/cnxk.rst +1 -1
index 53560d3830d7..1c0ea988f239 100644
@@ -42,7 +42,7 @@ Features of the OCTEON cnxk SSO PMD are:
 - HW managed packets enqueued from ethdev to eventdev exposed through event eth
   RX adapter.
 - N:1 ethernet device Rx queue to Event queue mapping.
-- Lockfree Tx from event eth Tx adapter using ``DEV_TX_OFFLOAD_MT_LOCKFREE``
+- Lockfree Tx from event eth Tx adapter using ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE``
   capability while maintaining receive packet order.
 - Full Rx/Tx offload support defined through ethdev queue configuration.
 - HW managed event vectorization on CN10K for packets enqueued from ethdev to
doc/guides/eventdevs/octeontx2.rst +1 -1
index 11fbebfcd243..0fa57abfa3e0 100644
@@ -35,7 +35,7 @@ Features of the OCTEON TX2 SSO PMD are:
 - HW managed packets enqueued from ethdev to eventdev exposed through event eth
   RX adapter.
 - N:1 ethernet device Rx queue to Event queue mapping.
-- Lockfree Tx from event eth Tx adapter using ``DEV_TX_OFFLOAD_MT_LOCKFREE``
+- Lockfree Tx from event eth Tx adapter using ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE``
   capability while maintaining receive packet order.
 - Full Rx/Tx offload support defined through ethdev queue config.
 
doc/guides/howto/debug_troubleshoot.rst +1 -1
index 457ac441429a..13f30e39363e 100644
@@ -71,7 +71,7 @@ RX Port and associated core :numref:`dtg_rx_rate`.
    * Identify if port Speed and Duplex is matching to desired values with
      ``rte_eth_link_get``.
 
-   * Check ``DEV_RX_OFFLOAD_JUMBO_FRAME`` is set with ``rte_eth_dev_info_get``.
+   * Check ``RTE_ETH_RX_OFFLOAD_JUMBO_FRAME`` is set with ``rte_eth_dev_info_get``.
 
    * Check promiscuous mode if the drops do not occur for unique MAC address
      with ``rte_eth_promiscuous_get``.
doc/guides/nics/bnxt.rst +13 -13
index e75f4fa9e3bc..77827e750195 100644
@@ -877,22 +877,22 @@ processing. This improved performance is derived from a number of optimizations:
     * TX: only the following reduced set of transmit offloads is supported in
       vector mode::
 
-       DEV_TX_OFFLOAD_MBUF_FAST_FREE
+       RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE
 
     * RX: only the following reduced set of receive offloads is supported in
       vector mode (note that jumbo MTU is allowed only when the MTU setting
-      does not require `DEV_RX_OFFLOAD_SCATTER` to be enabled)::
-
-       DEV_RX_OFFLOAD_VLAN_STRIP
-       DEV_RX_OFFLOAD_KEEP_CRC
-       DEV_RX_OFFLOAD_JUMBO_FRAME
-       DEV_RX_OFFLOAD_IPV4_CKSUM
-       DEV_RX_OFFLOAD_UDP_CKSUM
-       DEV_RX_OFFLOAD_TCP_CKSUM
-       DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM
-       DEV_RX_OFFLOAD_OUTER_UDP_CKSUM
-       DEV_RX_OFFLOAD_RSS_HASH
-       DEV_RX_OFFLOAD_VLAN_FILTER
+      does not require `RTE_ETH_RX_OFFLOAD_SCATTER` to be enabled)::
+
+       RTE_ETH_RX_OFFLOAD_VLAN_STRIP
+       RTE_ETH_RX_OFFLOAD_KEEP_CRC
+       RTE_ETH_RX_OFFLOAD_JUMBO_FRAME
+       RTE_ETH_RX_OFFLOAD_IPV4_CKSUM
+       RTE_ETH_RX_OFFLOAD_UDP_CKSUM
+       RTE_ETH_RX_OFFLOAD_TCP_CKSUM
+       RTE_ETH_RX_OFFLOAD_OUTER_IPV4_CKSUM
+       RTE_ETH_RX_OFFLOAD_OUTER_UDP_CKSUM
+       RTE_ETH_RX_OFFLOAD_RSS_HASH
+       RTE_ETH_RX_OFFLOAD_VLAN_FILTER
 
 The BNXT Vector PMD is enabled in DPDK builds by default. The decision to enable
 vector processing is made at run-time when the port is started; if no transmit
doc/guides/nics/enic.rst +1 -1
index 91bdcd065a95..0209730b904a 100644
@@ -432,7 +432,7 @@ Limitations
 .. code-block:: console
 
      vlan_offload = rte_eth_dev_get_vlan_offload(port);
-     vlan_offload |= ETH_VLAN_STRIP_OFFLOAD;
+     vlan_offload |= RTE_ETH_VLAN_STRIP_OFFLOAD;
      rte_eth_dev_set_vlan_offload(port, vlan_offload);
 
 Another alternative is modify the adapter's ingress VLAN rewrite mode so that
doc/guides/nics/features.rst +58 -58

309 lines not on this page · raw message

doc/guides/nics/fm10k.rst +3 -3
index 7b8ef0e7823d..3dff65d89b6d 100644
@@ -78,11 +78,11 @@ To enable via ``RX_OLFLAGS`` use ``RTE_LIBRTE_FM10K_RX_OLFLAGS_ENABLE=y``.
 To guarantee the constraint, the following capabilities in ``dev_conf.rxmode.offloads``
 will be checked:
 
-*   ``DEV_RX_OFFLOAD_VLAN_EXTEND``
+*   ``RTE_ETH_RX_OFFLOAD_VLAN_EXTEND``
 
-*   ``DEV_RX_OFFLOAD_CHECKSUM``
+*   ``RTE_ETH_RX_OFFLOAD_CHECKSUM``
 
-*   ``DEV_RX_OFFLOAD_HEADER_SPLIT``
+*   ``RTE_ETH_RX_OFFLOAD_HEADER_SPLIT``
 
 *   ``fdir_conf->mode``
 
doc/guides/nics/intel_vf.rst +5 -5
index fcea8151bf3c..e60e3b2a761d 100644
@@ -222,21 +222,21 @@ For example,
     *   If the max number of VFs (max_vfs) is set in the range of 1 to 32:
 
         If the number of Rx queues is specified as 4 (``--rxq=4`` in testpmd), then there are totally 32
-        pools (ETH_32_POOLS), and each VF could have 4 Rx queues;
+        pools (RTE_ETH_32_POOLS), and each VF could have 4 Rx queues;
 
         If the number of Rx queues is specified as 2 (``--rxq=2`` in testpmd), then there are totally 32
-        pools (ETH_32_POOLS), and each VF could have 2 Rx queues;
+        pools (RTE_ETH_32_POOLS), and each VF could have 2 Rx queues;
 
     *   If the max number of VFs (max_vfs) is in the range of 33 to 64:
 
         If the number of Rx queues in specified as 4 (``--rxq=4`` in testpmd), then error message is expected
         as ``rxq`` is not correct at this case;
 
-        If the number of rxq is 2 (``--rxq=2`` in testpmd), then there is totally 64 pools (ETH_64_POOLS),
+        If the number of rxq is 2 (``--rxq=2`` in testpmd), then there is totally 64 pools (RTE_ETH_64_POOLS),
         and each VF have 2 Rx queues;
 
-    On host, to enable VF RSS functionality, rx mq mode should be set as ETH_MQ_RX_VMDQ_RSS
-    or ETH_MQ_RX_RSS mode, and SRIOV mode should be activated (max_vfs >= 1).
+    On host, to enable VF RSS functionality, rx mq mode should be set as RTE_ETH_MQ_RX_VMDQ_RSS
+    or RTE_ETH_MQ_RX_RSS mode, and SRIOV mode should be activated (max_vfs >= 1).
     It also needs config VF RSS information like hash function, RSS key, RSS key length.
 
 .. note::
doc/guides/nics/ixgbe.rst +6 -6
index b82e63438285..24fbccc982f5 100644
@@ -69,13 +69,13 @@ Other features are supported using optional MACRO configuration. They include:
 
 To guarantee the constraint, capabilities in dev_conf.rxmode.offloads will be checked:
 
-*   DEV_RX_OFFLOAD_VLAN_STRIP
+*   RTE_ETH_RX_OFFLOAD_VLAN_STRIP
 
-*   DEV_RX_OFFLOAD_VLAN_EXTEND
+*   RTE_ETH_RX_OFFLOAD_VLAN_EXTEND
 
-*   DEV_RX_OFFLOAD_CHECKSUM
+*   RTE_ETH_RX_OFFLOAD_CHECKSUM
 
-*   DEV_RX_OFFLOAD_HEADER_SPLIT
+*   RTE_ETH_RX_OFFLOAD_HEADER_SPLIT
 
 *   dev_conf
 
@@ -143,13 +143,13 @@ l3fwd
 ~~~~~
 
 When running l3fwd with vPMD, there is one thing to note.
-In the configuration, ensure that DEV_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads is NOT set.
+In the configuration, ensure that RTE_ETH_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads is NOT set.
 Otherwise, by default, RX vPMD is disabled.
 
 load_balancer
 ~~~~~~~~~~~~~
 
-As in the case of l3fwd, to enable vPMD, do NOT set DEV_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads.
+As in the case of l3fwd, to enable vPMD, do NOT set RTE_ETH_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads.
 In addition, for improved performance, use -bsz "(32,32),(64,64),(32,32)" in load_balancer to avoid using the default burst size of 144.
 
 
doc/guides/nics/mlx5.rst +2 -2
index bae73f42d882..6facb68b9545 100644
@@ -371,7 +371,7 @@ Limitations
 
 - CRC:
 
-  - ``DEV_RX_OFFLOAD_KEEP_CRC`` cannot be supported with decapsulation
+  - ``RTE_ETH_RX_OFFLOAD_KEEP_CRC`` cannot be supported with decapsulation
     for some NICs (such as ConnectX-6 Dx, ConnectX-6 Lx, and BlueField-2).
     The capability bit ``scatter_fcs_w_decap_disable`` shows NIC support.
 
@@ -607,7 +607,7 @@ Driver options
   small-packet traffic.
 
   When MPRQ is enabled, max_rx_pkt_len can be larger than the size of
-  user-provided mbuf even if DEV_RX_OFFLOAD_SCATTER isn't enabled. PMD will
+  user-provided mbuf even if RTE_ETH_RX_OFFLOAD_SCATTER isn't enabled. PMD will
   configure large stride size enough to accommodate max_rx_pkt_len as long as
   device allows. Note that this can waste system memory compared to enabling Rx
   scatter and multi-segment packet.
doc/guides/nics/tap.rst +1 -1
index 3ce696b605d1..681010d9ed7d 100644
@@ -275,7 +275,7 @@ An example utility for eBPF instruction generation in the format of C arrays wil
 be added in next releases
 
 TAP reports on supported RSS functions as part of dev_infos_get callback:
-``ETH_RSS_IP``, ``ETH_RSS_UDP`` and ``ETH_RSS_TCP``.
+``RTE_ETH_RSS_IP``, ``RTE_ETH_RSS_UDP`` and ``RTE_ETH_RSS_TCP``.
 **Known limitation:** TAP supports all of the above hash functions together
 and not in partial combinations.
 
doc/guides/prog_guide/generic_segmentation_offload_lib.rst +4 -4
index 7bff0aef0b74..9b2c31a2f0bc 100644
@@ -194,11 +194,11 @@ To segment an outgoing packet, an application must:
 
    - the bit mask of required GSO types. The GSO library uses the same macros as
      those that describe a physical device's TX offloading capabilities (i.e.
-     ``DEV_TX_OFFLOAD_*_TSO``) for gso_types. For example, if an application
+     ``RTE_ETH_TX_OFFLOAD_*_TSO``) for gso_types. For example, if an application
      wants to segment TCP/IPv4 packets, it should set gso_types to
-     ``DEV_TX_OFFLOAD_TCP_TSO``. The only other supported values currently
-     supported for gso_types are ``DEV_TX_OFFLOAD_VXLAN_TNL_TSO``, and
-     ``DEV_TX_OFFLOAD_GRE_TNL_TSO``; a combination of these macros is also
+     ``RTE_ETH_TX_OFFLOAD_TCP_TSO``. The only other supported values currently
+     supported for gso_types are ``RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO``, and
+     ``RTE_ETH_TX_OFFLOAD_GRE_TNL_TSO``; a combination of these macros is also
      allowed.
 
    - a flag, that indicates whether the IPv4 headers of output segments should
doc/guides/prog_guide/mbuf_lib.rst +9 -9
index 2f190b40e43a..dc6186a44ae2 100644
@@ -137,7 +137,7 @@ a vxlan-encapsulated tcp packet:
     mb->ol_flags |= PKT_TX_IPV4 | PKT_TX_IP_CSUM
     set out_ip checksum to 0 in the packet
 
-  This is supported on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM.
+  This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM.
 
 - calculate checksum of out_ip and out_udp::
 
@@ -147,8 +147,8 @@ a vxlan-encapsulated tcp packet:
     set out_ip checksum to 0 in the packet
     set out_udp checksum to pseudo header using rte_ipv4_phdr_cksum()
 
-  This is supported on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM
-  and DEV_TX_OFFLOAD_UDP_CKSUM.
+  This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM
+  and RTE_ETH_TX_OFFLOAD_UDP_CKSUM.
 
 - calculate checksum of in_ip::
 
@@ -158,7 +158,7 @@ a vxlan-encapsulated tcp packet:
     set in_ip checksum to 0 in the packet
 
   This is similar to case 1), but l2_len is different. It is supported
-  on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM.
+  on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM.
   Note that it can only work if outer L4 checksum is 0.
 
 - calculate checksum of in_ip and in_tcp::
@@ -170,8 +170,8 @@ a vxlan-encapsulated tcp packet:
     set in_tcp checksum to pseudo header using rte_ipv4_phdr_cksum()
 
   This is similar to case 2), but l2_len is different. It is supported
-  on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM and
-  DEV_TX_OFFLOAD_TCP_CKSUM.
+  on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM and
+  RTE_ETH_TX_OFFLOAD_TCP_CKSUM.
   Note that it can only work if outer L4 checksum is 0.
 
 - segment inner TCP::
@@ -185,7 +185,7 @@ a vxlan-encapsulated tcp packet:
     set in_tcp checksum to pseudo header without including the IP
       payload length using rte_ipv4_phdr_cksum()
 
-  This is supported on hardware advertising DEV_TX_OFFLOAD_TCP_TSO.
+  This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_TCP_TSO.
   Note that it can only work if outer L4 checksum is 0.
 
 - calculate checksum of out_ip, in_ip, in_tcp::
@@ -200,8 +200,8 @@ a vxlan-encapsulated tcp packet:
     set in_ip checksum to 0 in the packet
     set in_tcp checksum to pseudo header using rte_ipv4_phdr_cksum()
 
-  This is supported on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM,
-  DEV_TX_OFFLOAD_UDP_CKSUM and DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM.
+  This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM,
+  RTE_ETH_TX_OFFLOAD_UDP_CKSUM and RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM.
 
 The list of flags and their precise meaning is described in the mbuf API
 documentation (rte_mbuf.h). Also refer to the testpmd source code
doc/guides/prog_guide/poll_mode_drv.rst +4 -4
index 0d4ac77a7ccf..68312898448c 100644
@@ -57,7 +57,7 @@ Whenever needed and appropriate, asynchronous communication should be introduced
 
 Avoiding lock contention is a key issue in a multi-core environment.
 To address this issue, PMDs are designed to work with per-core private resources as much as possible.
-For example, a PMD maintains a separate transmit queue per-core, per-port, if the PMD is not ``DEV_TX_OFFLOAD_MT_LOCKFREE`` capable.
+For example, a PMD maintains a separate transmit queue per-core, per-port, if the PMD is not ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capable.
 In the same way, every receive queue of a port is assigned to and polled by a single logical core (lcore).
 
 To comply with Non-Uniform Memory Access (NUMA), memory management is designed to assign to each logical core
@@ -119,7 +119,7 @@ This is also true for the pipe-line model provided all logical cores used are lo
 
 Multiple logical cores should never share receive or transmit queues for interfaces since this would require global locks and hinder performance.
 
-If the PMD is ``DEV_TX_OFFLOAD_MT_LOCKFREE`` capable, multiple threads can invoke ``rte_eth_tx_burst()``
+If the PMD is ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capable, multiple threads can invoke ``rte_eth_tx_burst()``
 concurrently on the same tx queue without SW lock. This PMD feature found in some NICs and useful in the following use cases:
 
 *  Remove explicit spinlock in some applications where lcores are not mapped to Tx queues with 1:1 relation.
@@ -127,7 +127,7 @@ concurrently on the same tx queue without SW lock. This PMD feature found in som
 *  In the eventdev use case, avoid dedicating a separate TX core for transmitting and thus
    enables more scaling as all workers can send the packets.
 
-See `Hardware Offload`_ for ``DEV_TX_OFFLOAD_MT_LOCKFREE`` capability probing details.
+See `Hardware Offload`_ for ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capability probing details.
 
 Device Identification, Ownership and Configuration
 --------------------------------------------------
@@ -311,7 +311,7 @@ The ``dev_info->[rt]x_queue_offload_capa`` returned from ``rte_eth_dev_info_get(
 The ``dev_info->[rt]x_offload_capa`` returned from ``rte_eth_dev_info_get()`` includes all pure per-port and per-queue offloading capabilities.
 Supported offloads can be either per-port or per-queue.
 
-Offloads are enabled using the existing ``DEV_TX_OFFLOAD_*`` or ``DEV_RX_OFFLOAD_*`` flags.
+Offloads are enabled using the existing ``RTE_ETH_TX_OFFLOAD_*`` or ``RTE_ETH_RX_OFFLOAD_*`` flags.
 Any requested offloading by an application must be within the device capabilities.
 Any offloading is disabled by default if it is not set in the parameter
 ``dev_conf->[rt]xmode.offloads`` to ``rte_eth_dev_configure()`` and
doc/guides/prog_guide/rte_flow.rst +17 -17
index 2b42d5ec8c05..1bac8f04b96e 100644
@@ -1835,23 +1835,23 @@ only matching traffic goes through.
 
 .. table:: RSS
 
-   +---------------+---------------------------------------------+
-   | Field         | Value                                       |
-   +===============+=============================================+
-   | ``func``      | RSS hash function to apply                  |
-   +---------------+---------------------------------------------+
-   | ``level``     | encapsulation level for ``types``           |
-   +---------------+---------------------------------------------+
-   | ``types``     | specific RSS hash types (see ``ETH_RSS_*``) |
-   +---------------+---------------------------------------------+
-   | ``key_len``   | hash key length in bytes                    |
-   +---------------+---------------------------------------------+
-   | ``queue_num`` | number of entries in ``queue``              |
-   +---------------+---------------------------------------------+
-   | ``key``       | hash key                                    |
-   +---------------+---------------------------------------------+
-   | ``queue``     | queue indices to use                        |
-   +---------------+---------------------------------------------+
+   +---------------+-------------------------------------------------+
+   | Field         | Value                                           |
+   +===============+=================================================+
+   | ``func``      | RSS hash function to apply                      |
+   +---------------+-------------------------------------------------+
+   | ``level``     | encapsulation level for ``types``               |
+   +---------------+-------------------------------------------------+
+   | ``types``     | specific RSS hash types (see ``RTE_ETH_RSS_*``) |
+   +---------------+-------------------------------------------------+
+   | ``key_len``   | hash key length in bytes                        |
+   +---------------+-------------------------------------------------+
+   | ``queue_num`` | number of entries in ``queue``                  |
+   +---------------+-------------------------------------------------+
+   | ``key``       | hash key                                        |
+   +---------------+-------------------------------------------------+
+   | ``queue``     | queue indices to use                            |
+   +---------------+-------------------------------------------------+
 
 Action: ``PF``
 ^^^^^^^^^^^^^^
doc/guides/prog_guide/rte_security.rst +1 -1
index f72bc8a78fa6..e3bd451917f0 100644
@@ -560,7 +560,7 @@ created by the application is attached to the security session by the API
 
 For Inline Crypto and Inline protocol offload, device specific defined metadata is
 updated in the mbuf using ``rte_security_set_pkt_metadata()`` if
-``DEV_TX_OFFLOAD_SEC_NEED_MDATA`` is set.
+``RTE_ETH_TX_OFFLOAD_SEC_NEED_MDATA`` is set.
 
 For inline protocol offloaded ingress traffic, the application can register a
 pointer, ``userdata`` , in the security session. When the packet is received,
doc/guides/rel_notes/deprecation.rst +3 -9
index 76a4abfd6b0b..20159a1c9a90 100644
@@ -58,22 +58,16 @@ Deprecation Notices
   ``RTE_ETH_FLOW_MAX`` is one sample of the mentioned case, adding a new flow
   type will break the ABI because of ``flex_mask[RTE_ETH_FLOW_MAX]`` array
   usage in following public struct hierarchy:
-  ``rte_eth_fdir_flex_conf -> rte_fdir_conf -> rte_eth_conf (in the middle)``.
+  ``rte_eth_fdir_flex_conf -> rte_eth_fdir_conf -> rte_eth_conf (in the middle)``.
   Need to identify this kind of usages and fix in 20.11, otherwise this blocks
   us extending existing enum/define.
   One solution can be using a fixed size array instead of ``.*MAX.*`` value.
 
-* ethdev: Will add ``RTE_ETH_`` prefix to all ethdev macros/enums in v21.11.
-  Macros will be added for backward compatibility.
-  Backward compatibility macros will be removed on v22.11.
-  A few old backward compatibility macros from 2013 that does not have
-  proper prefix will be removed on v21.11.
-
 * ethdev: The flow director API, including ``rte_eth_conf.fdir_conf`` field,
   and the related structures (``rte_fdir_*`` and ``rte_eth_fdir_*``),
   will be removed in DPDK 20.11.
 
-* ethdev: New offload flags ``DEV_RX_OFFLOAD_FLOW_MARK`` will be added in 19.11.
+* ethdev: New offload flags ``RTE_ETH_RX_OFFLOAD_FLOW_MARK`` will be added in 19.11.
   This will allow application to enable or disable PMDs from updating
   ``rte_mbuf::hash::fdir``.
   This scheme will allow PMDs to avoid writes to ``rte_mbuf`` fields on Rx and
@@ -98,7 +92,7 @@ Deprecation Notices
   either by ``rte_eth_dev_configure()`` or ``rte_eth_dev_set_mtu()``.
 
   An application may need to configure device for a specific Rx packet size, like for
-  cases ``DEV_RX_OFFLOAD_SCATTER`` is not supported and device received packet size
+  cases ``RTE_ETH_RX_OFFLOAD_SCATTER`` is not supported and device received packet size
   can't be bigger than Rx buffer size.
   To cover these cases an application needs to know the device packet overhead to be
   able to calculate the ``mtu`` corresponding to a Rx buffer size, for this
doc/guides/sample_app_ug/ipsec_secgw.rst +2 -2
index 78171b25f96e..782574dd39d5 100644
@@ -209,12 +209,12 @@ Where:
     device will ensure the ordering. Ordering will be lost when tried in PARALLEL.
 
 *   ``--rxoffload MASK``: RX HW offload capabilities to enable/use on this port
-    (bitmask of DEV_RX_OFFLOAD_* values). It is an optional parameter and
+    (bitmask of RTE_ETH_RX_OFFLOAD_* values). It is an optional parameter and
     allows user to disable some of the RX HW offload capabilities.
     By default all HW RX offloads are enabled.
 
 *   ``--txoffload MASK``: TX HW offload capabilities to enable/use on this port
-    (bitmask of DEV_TX_OFFLOAD_* values). It is an optional parameter and
+    (bitmask of RTE_ETH_TX_OFFLOAD_* values). It is an optional parameter and
     allows user to disable some of the TX HW offload capabilities.
     By default all HW TX offloads are enabled.
 
doc/guides/testpmd_app_ug/run_app.rst +1 -1
index 6061674239f4..d7f5951d4639 100644
@@ -526,7 +526,7 @@ The command line options are:
     Set the hexadecimal bitmask of RX multi queue mode which can be enabled.
     The default value is 0x7::
 
-       ETH_MQ_RX_RSS_FLAG | ETH_MQ_RX_DCB_FLAG | ETH_MQ_RX_VMDQ_FLAG
+       RTE_ETH_MQ_RX_RSS_FLAG | RTE_ETH_MQ_RX_DCB_FLAG | RTE_ETH_MQ_RX_VMDQ_FLAG
 
 *   ``--record-core-cycles``
 
drivers/bus/dpaa/include/process.h +8 -8
index be52e6f72dab..a922988607ef 100644
@@ -90,20 +90,20 @@ int dpaa_intr_disable(char *if_name);
 struct usdpaa_ioctl_link_status_args_old {
 	/* network device node name */
 	char    if_name[IF_NAME_MAX_LEN];
-	/* link status(ETH_LINK_UP/DOWN) */
+	/* link status(RTE_ETH_LINK_UP/DOWN) */
 	int     link_status;
 };
 
 struct usdpaa_ioctl_link_status_args {
 	/* network device node name */
 	char    if_name[IF_NAME_MAX_LEN];
-	/* link status(ETH_LINK_UP/DOWN) */
+	/* link status(RTE_ETH_LINK_UP/DOWN) */
 	int     link_status;
-	/* link speed (ETH_SPEED_NUM_)*/
+	/* link speed (RTE_ETH_SPEED_NUM_)*/
 	int     link_speed;
-	/* link duplex (ETH_LINK_[HALF/FULL]_DUPLEX)*/
+	/* link duplex (RTE_ETH_LINK_[HALF/FULL]_DUPLEX)*/
 	int     link_duplex;
-	/* link autoneg (ETH_LINK_AUTONEG/FIXED)*/
+	/* link autoneg (RTE_ETH_LINK_AUTONEG/FIXED)*/
 	int     link_autoneg;
 
 };
@@ -111,16 +111,16 @@ struct usdpaa_ioctl_link_status_args {
 struct usdpaa_ioctl_update_link_status_args {
 	/* network device node name */
 	char    if_name[IF_NAME_MAX_LEN];
-	/* link status(ETH_LINK_UP/DOWN) */
+	/* link status(RTE_ETH_LINK_UP/DOWN) */
 	int     link_status;
 };
 
 struct usdpaa_ioctl_update_link_speed {
 	/* network device node name*/
 	char    if_name[IF_NAME_MAX_LEN];
-	/* link speed (ETH_SPEED_NUM_)*/
+	/* link speed (RTE_ETH_SPEED_NUM_)*/
 	int     link_speed;
-	/* link duplex (ETH_LINK_[HALF/FULL]_DUPLEX)*/
+	/* link duplex (RTE_ETH_LINK_[HALF/FULL]_DUPLEX)*/
 	int     link_duplex;
 };
 
drivers/common/cnxk/roc_npc.h +1 -1
index bab25fd72eee..360bf75d3861 100644
@@ -153,7 +153,7 @@ enum roc_npc_rss_hash_function {
 struct roc_npc_action_rss {
 	enum roc_npc_rss_hash_function func;
 	uint32_t level;
-	uint64_t types;	       /**< Specific RSS hash types (see ETH_RSS_*). */
+	uint64_t types;	       /**< Specific RSS hash types (see RTE_ETH_RSS_*). */
 	uint32_t key_len;      /**< Hash key length in bytes. */
 	uint32_t queue_num;    /**< Number of entries in @p queue. */
 	const uint8_t *key;    /**< Hash key. */
drivers/net/af_packet/rte_eth_af_packet.c +8 -8
index b73b211fd249..fb5d549e6227 100644
@@ -91,10 +91,10 @@ static const char *valid_arguments[] = {
 };
 
 static struct rte_eth_link pmd_link = {
-	.link_speed = ETH_SPEED_NUM_10G,
-	.link_duplex = ETH_LINK_FULL_DUPLEX,
-	.link_status = ETH_LINK_DOWN,
-	.link_autoneg = ETH_LINK_FIXED,
+	.link_speed = RTE_ETH_SPEED_NUM_10G,
+	.link_duplex = RTE_ETH_LINK_FULL_DUPLEX,
+	.link_status = RTE_ETH_LINK_DOWN,
+	.link_autoneg = RTE_ETH_LINK_FIXED,
 };
 
 RTE_LOG_REGISTER_DEFAULT(af_packet_logtype, NOTICE);
@@ -265,7 +265,7 @@ eth_af_packet_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
 static int
 eth_dev_start(struct rte_eth_dev *dev)
 {
-	dev->data->dev_link.link_status = ETH_LINK_UP;
+	dev->data->dev_link.link_status = RTE_ETH_LINK_UP;
 	return 0;
 }
 
@@ -295,7 +295,7 @@ eth_dev_stop(struct rte_eth_dev *dev)
 		internals->tx_queue[i].sockfd = -1;
 	}
 
-	dev->data->dev_link.link_status = ETH_LINK_DOWN;
+	dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 	return 0;
 }
 
@@ -316,8 +316,8 @@ eth_dev_info(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 	dev_info->max_rx_queues = (uint16_t)internals->nb_queues;
 	dev_info->max_tx_queues = (uint16_t)internals->nb_queues;
 	dev_info->min_rx_bufsize = 0;
-	dev_info->tx_offload_capa = DEV_TX_OFFLOAD_MULTI_SEGS |
-		DEV_TX_OFFLOAD_VLAN_INSERT;
+	dev_info->tx_offload_capa = RTE_ETH_TX_OFFLOAD_MULTI_SEGS |
+		RTE_ETH_TX_OFFLOAD_VLAN_INSERT;
 
 	return 0;
 }
drivers/net/af_xdp/rte_eth_af_xdp.c +6 -6
index 74ffa4511284..dbf745852716 100644
@@ -163,10 +163,10 @@ static const char * const valid_arguments[] = {
 };
 
 static const struct rte_eth_link pmd_link = {
-	.link_speed = ETH_SPEED_NUM_10G,
-	.link_duplex = ETH_LINK_FULL_DUPLEX,
-	.link_status = ETH_LINK_DOWN,
-	.link_autoneg = ETH_LINK_AUTONEG
+	.link_speed = RTE_ETH_SPEED_NUM_10G,
+	.link_duplex = RTE_ETH_LINK_FULL_DUPLEX,
+	.link_status = RTE_ETH_LINK_DOWN,
+	.link_autoneg = RTE_ETH_LINK_AUTONEG
 };
 
 /* List which tracks PMDs to facilitate sharing UMEMs across them. */
@@ -654,7 +654,7 @@ eth_af_xdp_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
 static int
 eth_dev_start(struct rte_eth_dev *dev)
 {
-	dev->data->dev_link.link_status = ETH_LINK_UP;
+	dev->data->dev_link.link_status = RTE_ETH_LINK_UP;
 
 	return 0;
 }
@@ -663,7 +663,7 @@ eth_dev_start(struct rte_eth_dev *dev)
 static int
 eth_dev_stop(struct rte_eth_dev *dev)
 {
-	dev->data->dev_link.link_status = ETH_LINK_DOWN;
+	dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 	return 0;
 }
 
drivers/net/ark/ark_ethdev.c +8 -8
index 377299b14c7a..b618cba3f023 100644
@@ -736,14 +736,14 @@ eth_ark_dev_info_get(struct rte_eth_dev *dev,
 		.nb_align = ARK_TX_MIN_QUEUE}; /* power of 2 */
 
 	/* ARK PMD supports all line rates, how do we indicate that here ?? */
-	dev_info->speed_capa = (ETH_LINK_SPEED_1G |
-				ETH_LINK_SPEED_10G |
-				ETH_LINK_SPEED_25G |
-				ETH_LINK_SPEED_40G |
-				ETH_LINK_SPEED_50G |
-				ETH_LINK_SPEED_100G);
-
-	dev_info->rx_offload_capa = DEV_RX_OFFLOAD_TIMESTAMP;
+	dev_info->speed_capa = (RTE_ETH_LINK_SPEED_1G |
+				RTE_ETH_LINK_SPEED_10G |
+				RTE_ETH_LINK_SPEED_25G |
+				RTE_ETH_LINK_SPEED_40G |
+				RTE_ETH_LINK_SPEED_50G |
+				RTE_ETH_LINK_SPEED_100G);
+
+	dev_info->rx_offload_capa = RTE_ETH_RX_OFFLOAD_TIMESTAMP;
 
 	return 0;
 }
drivers/net/atlantic/atl_ethdev.c +45 -45

176 lines not on this page · raw message

drivers/net/atlantic/atl_ethdev.h +9 -9
index f547571b5c97..da993be35faa 100644
@@ -11,15 +11,15 @@
 #include "hw_atl/hw_atl_utils.h"
 
 #define ATL_RSS_OFFLOAD_ALL ( \
-	ETH_RSS_IPV4 | \
-	ETH_RSS_NONFRAG_IPV4_TCP | \
-	ETH_RSS_NONFRAG_IPV4_UDP | \
-	ETH_RSS_IPV6 | \
-	ETH_RSS_NONFRAG_IPV6_TCP | \
-	ETH_RSS_NONFRAG_IPV6_UDP | \
-	ETH_RSS_IPV6_EX | \
-	ETH_RSS_IPV6_TCP_EX | \
-	ETH_RSS_IPV6_UDP_EX)
+	RTE_ETH_RSS_IPV4 | \
+	RTE_ETH_RSS_NONFRAG_IPV4_TCP | \
+	RTE_ETH_RSS_NONFRAG_IPV4_UDP | \
+	RTE_ETH_RSS_IPV6 | \
+	RTE_ETH_RSS_NONFRAG_IPV6_TCP | \
+	RTE_ETH_RSS_NONFRAG_IPV6_UDP | \
+	RTE_ETH_RSS_IPV6_EX | \
+	RTE_ETH_RSS_IPV6_TCP_EX | \
+	RTE_ETH_RSS_IPV6_UDP_EX)
 
 #define ATL_DEV_PRIVATE_TO_HW(adapter) \
 	(&((struct atl_adapter *)adapter)->hw)
drivers/net/atlantic/atl_rxtx.c +3 -3
index 7d367c9306ec..ddf110d6ce7e 100644
@@ -145,10 +145,10 @@ atl_rx_queue_setup(struct rte_eth_dev *dev, uint16_t rx_queue_id,
 	rxq->rx_free_thresh = rx_conf->rx_free_thresh;
 
 	rxq->l3_csum_enabled = dev->data->dev_conf.rxmode.offloads &
-		DEV_RX_OFFLOAD_IPV4_CKSUM;
+		RTE_ETH_RX_OFFLOAD_IPV4_CKSUM;
 	rxq->l4_csum_enabled = dev->data->dev_conf.rxmode.offloads &
-		(DEV_RX_OFFLOAD_UDP_CKSUM | DEV_RX_OFFLOAD_TCP_CKSUM);
-	if (dev->data->dev_conf.rxmode.offloads & DEV_RX_OFFLOAD_KEEP_CRC)
+		(RTE_ETH_RX_OFFLOAD_UDP_CKSUM | RTE_ETH_RX_OFFLOAD_TCP_CKSUM);
+	if (dev->data->dev_conf.rxmode.offloads & RTE_ETH_RX_OFFLOAD_KEEP_CRC)
 		PMD_DRV_LOG(ERR, "PMD does not support KEEP_CRC offload");
 
 	/* allocate memory for the software ring */
drivers/net/avp/avp_ethdev.c +13 -13
index 623fa5e5ff5b..e870ced7e992 100644
@@ -2011,9 +2011,9 @@ avp_dev_configure(struct rte_eth_dev *eth_dev)
 	/* Setup required number of queues */
 	_avp_set_queue_counts(eth_dev);
 
-	mask = (ETH_VLAN_STRIP_MASK |
-		ETH_VLAN_FILTER_MASK |
-		ETH_VLAN_EXTEND_MASK);
+	mask = (RTE_ETH_VLAN_STRIP_MASK |
+		RTE_ETH_VLAN_FILTER_MASK |
+		RTE_ETH_VLAN_EXTEND_MASK);
 	ret = avp_vlan_offload_set(eth_dev, mask);
 	if (ret < 0) {
 		PMD_DRV_LOG(ERR, "VLAN offload set failed by host, ret=%d\n",
@@ -2153,8 +2153,8 @@ avp_dev_link_update(struct rte_eth_dev *eth_dev,
 	struct avp_dev *avp = AVP_DEV_PRIVATE_TO_HW(eth_dev->data->dev_private);
 	struct rte_eth_link *link = &eth_dev->data->dev_link;
 
-	link->link_speed = ETH_SPEED_NUM_10G;
-	link->link_duplex = ETH_LINK_FULL_DUPLEX;
+	link->link_speed = RTE_ETH_SPEED_NUM_10G;
+	link->link_duplex = RTE_ETH_LINK_FULL_DUPLEX;
 	link->link_status = !!(avp->flags & AVP_F_LINKUP);
 
 	return -1;
@@ -2204,8 +2204,8 @@ avp_dev_info_get(struct rte_eth_dev *eth_dev,
 	dev_info->max_rx_pktlen = avp->max_rx_pkt_len;
 	dev_info->max_mac_addrs = AVP_MAX_MAC_ADDRS;
 	if (avp->host_features & RTE_AVP_FEATURE_VLAN_OFFLOAD) {
-		dev_info->rx_offload_capa = DEV_RX_OFFLOAD_VLAN_STRIP;
-		dev_info->tx_offload_capa = DEV_TX_OFFLOAD_VLAN_INSERT;
+		dev_info->rx_offload_capa = RTE_ETH_RX_OFFLOAD_VLAN_STRIP;
+		dev_info->tx_offload_capa = RTE_ETH_TX_OFFLOAD_VLAN_INSERT;
 	}
 
 	return 0;
@@ -2218,9 +2218,9 @@ avp_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask)
 	struct rte_eth_conf *dev_conf = &eth_dev->data->dev_conf;
 	uint64_t offloads = dev_conf->rxmode.offloads;
 
-	if (mask & ETH_VLAN_STRIP_MASK) {
+	if (mask & RTE_ETH_VLAN_STRIP_MASK) {
 		if (avp->host_features & RTE_AVP_FEATURE_VLAN_OFFLOAD) {
-			if (offloads & DEV_RX_OFFLOAD_VLAN_STRIP)
+			if (offloads & RTE_ETH_RX_OFFLOAD_VLAN_STRIP)
 				avp->features |= RTE_AVP_FEATURE_VLAN_OFFLOAD;
 			else
 				avp->features &= ~RTE_AVP_FEATURE_VLAN_OFFLOAD;
@@ -2229,13 +2229,13 @@ avp_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask)
 		}
 	}
 
-	if (mask & ETH_VLAN_FILTER_MASK) {
-		if (offloads & DEV_RX_OFFLOAD_VLAN_FILTER)
+	if (mask & RTE_ETH_VLAN_FILTER_MASK) {
+		if (offloads & RTE_ETH_RX_OFFLOAD_VLAN_FILTER)
 			PMD_DRV_LOG(ERR, "VLAN filter offload not supported\n");
 	}
 
-	if (mask & ETH_VLAN_EXTEND_MASK) {
-		if (offloads & DEV_RX_OFFLOAD_VLAN_EXTEND)
+	if (mask & RTE_ETH_VLAN_EXTEND_MASK) {
+		if (offloads & RTE_ETH_RX_OFFLOAD_VLAN_EXTEND)
 			PMD_DRV_LOG(ERR, "VLAN extend offload not supported\n");
 	}
 
drivers/net/axgbe/axgbe_dev.c +3 -3
index 786288a7b079..c0f033e06b15 100644
@@ -840,11 +840,11 @@ static void axgbe_rss_options(struct axgbe_port *pdata)
 	pdata->rss_hf = rss_conf->rss_hf;
 	rss_hf = rss_conf->rss_hf;
 
-	if (rss_hf & (ETH_RSS_IPV4 | ETH_RSS_IPV6))
+	if (rss_hf & (RTE_ETH_RSS_IPV4 | RTE_ETH_RSS_IPV6))
 		AXGMAC_SET_BITS(pdata->rss_options, MAC_RSSCR, IP2TE, 1);
-	if (rss_hf & (ETH_RSS_NONFRAG_IPV4_TCP | ETH_RSS_NONFRAG_IPV6_TCP))
+	if (rss_hf & (RTE_ETH_RSS_NONFRAG_IPV4_TCP | RTE_ETH_RSS_NONFRAG_IPV6_TCP))
 		AXGMAC_SET_BITS(pdata->rss_options, MAC_RSSCR, TCP4TE, 1);
-	if (rss_hf & (ETH_RSS_NONFRAG_IPV4_UDP | ETH_RSS_NONFRAG_IPV6_UDP))
+	if (rss_hf & (RTE_ETH_RSS_NONFRAG_IPV4_UDP | RTE_ETH_RSS_NONFRAG_IPV6_UDP))
 		AXGMAC_SET_BITS(pdata->rss_options, MAC_RSSCR, UDP4TE, 1);
 }
 
drivers/net/axgbe/axgbe_ethdev.c +51 -51

79 lines not on this page · raw message

drivers/net/axgbe/axgbe_ethdev.h +6 -6
index a6226729fe4d..0a3e1c59df1a 100644

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

drivers/net/axgbe/axgbe_mdio.c +1 -1
index 4f98e695ae74..59fa9175aded 100644

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

drivers/net/axgbe/axgbe_rxtx.c +3 -3
index 33f709a6bb02..baa17a5fb43f 100644

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

drivers/net/bnx2x/bnx2x_ethdev.c +8 -8
index 463886f17a58..14d91f868cd8 100644

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

drivers/net/bnxt/bnxt.h +34 -34

68 lines not on this page · raw message

drivers/net/bnxt/bnxt_ethdev.c +85 -85

170 lines not on this page · raw message

drivers/net/bnxt/bnxt_flow.c +2 -2
index 59489b591a6f..98e1107f629c 100644

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

drivers/net/bnxt/bnxt_hwrm.c +56 -56

112 lines not on this page · raw message

drivers/net/bnxt/bnxt_reps.c +1 -1
index bdbad53b7d7f..a9f5e13476b0 100644

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

drivers/net/bnxt/bnxt_ring.c +2 -2
index 957b175f1b89..632a611bf612 100644

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

drivers/net/bnxt/bnxt_rxq.c +14 -14
index bbcb3b06e7df..0ac3a2b3b7d3 100644

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

drivers/net/bnxt/bnxt_rxr.c +2 -2
index 73fbdd17d126..0909bab89b76 100644

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

drivers/net/bnxt/bnxt_rxtx_vec_avx2.c +1 -1
index d08854ff61e2..e4905b4fd169 100644

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

drivers/net/bnxt/bnxt_rxtx_vec_common.h +1 -1
index 9b9489a695a2..0627fd212d0a 100644

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

drivers/net/bnxt/bnxt_rxtx_vec_neon.c +1 -1
index 13211060cf0e..f15e2d3b4ed4 100644

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

drivers/net/bnxt/bnxt_rxtx_vec_sse.c +1 -1
index 6e563053260a..ffd560166cac 100644

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

drivers/net/bnxt/bnxt_txr.c +2 -2
index 47824334ae3e..401dd83f4e7d 100644

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

drivers/net/bnxt/bnxt_vnic.c +15 -15
index 26253a7e17f2..c63cf4b943fa 100644

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

drivers/net/bnxt/rte_pmd_bnxt.c +4 -4
index f71543810970..77ecbef04c3d 100644

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

drivers/net/bonding/eth_bond_private.h +1 -1
index fc179a2732ac..fcf878b9b858 100644

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

drivers/net/bonding/rte_eth_bond_8023ad.c +8 -8
index 128754f4595a..20adfcf0ea9c 100644

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

drivers/net/bonding/rte_eth_bond_api.c +3 -3
index eb8d15d16034..f12060bcafb0 100644

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

drivers/net/bonding/rte_eth_bond_pmd.c +21 -21

42 lines not on this page · raw message

drivers/net/cnxk/cn10k_ethdev.c +19 -19
index 7caec6cf14c8..9a09748673b2 100644

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

drivers/net/cnxk/cn10k_rx.c +2 -2
index 69e767ac3dd6..e3b1bd8ad225 100644

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

drivers/net/cnxk/cn10k_tx.c +2 -2
index 0e1276c60ba2..f63b8fabefd4 100644

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

drivers/net/cnxk/cn9k_ethdev.c +28 -28

56 lines not on this page · raw message

drivers/net/cnxk/cn9k_rx.c +2 -2
index 7d9f1bd61f79..08ee28658bce 100644

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

drivers/net/cnxk/cn9k_tx.c +2 -2
index 763f9a14fd79..f35ae8e70438 100644

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

drivers/net/cnxk/cnxk_ethdev.c +42 -42

84 lines not on this page · raw message

drivers/net/cnxk/cnxk_ethdev.h +26 -23

49 lines not on this page · raw message

drivers/net/cnxk/cnxk_ethdev_devargs.c +3 -3
index 37720fb0954e..bf0c6d6b4ad8 100644

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

drivers/net/cnxk/cnxk_ethdev_ops.c +52 -52

104 lines not on this page · raw message

drivers/net/cnxk/cnxk_link.c +7 -7
index 3fdbdba49549..1cff8d56e65b 100644

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

drivers/net/cnxk/cnxk_ptp.c +2 -2
index 449489f599c4..139fea256ccd 100644

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

drivers/net/cnxk/cnxk_rte_flow.c +1 -1
index 32c1b5dee5fa..ecdfee7b11a6 100644

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

drivers/net/cxgbe/cxgbe.h +24 -24

48 lines not on this page · raw message

drivers/net/cxgbe/cxgbe_ethdev.c +21 -21

42 lines not on this page · raw message

drivers/net/cxgbe/cxgbe_main.c +6 -6
index 6dd1bf1f836e..54723edc2144 100644

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

drivers/net/cxgbe/sge.c +1 -1
index e5f7721dc4b3..eddb818c4861 100644

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

drivers/net/dpaa/dpaa_ethdev.c +95 -95

190 lines not on this page · raw message

drivers/net/dpaa/dpaa_ethdev.h +5 -5
index b5728e09c29f..c868e9d5bd9b 100644

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

drivers/net/dpaa/dpaa_flow.c +16 -16
index c5b5ec869519..1ccd03602790 100644

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

drivers/net/dpaa2/base/dpaa2_hw_dpni.c +17 -17
index 641e7027f12e..7c92b2a42e3f 100644

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

drivers/net/dpaa2/dpaa2_ethdev.c +74 -74

148 lines not on this page · raw message

drivers/net/dpaa2/dpaa2_ethdev.h +6 -6
index b9c729f6cdc0..ca75a2175524 100644

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

drivers/net/dpaa2/dpaa2_rxtx.c +4 -4
index f40369e2c3f9..7c77243b5d1a 100644

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

drivers/net/e1000/e1000_ethdev.h +9 -9
index 3b4d9c3ee6f4..ca488fea966f 100644

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

drivers/net/e1000/em_ethdev.c +34 -34

68 lines not on this page · raw message

drivers/net/e1000/em_rxtx.c +24 -24

48 lines not on this page · raw message

drivers/net/e1000/igb_ethdev.c +79 -79

158 lines not on this page · raw message

drivers/net/e1000/igb_pf.c +1 -1
index 2ce74dd5a9a5..fe355ef6b3b5 100644

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

drivers/net/e1000/igb_rxtx.c +58 -58

116 lines not on this page · raw message

drivers/net/ena/ena_ethdev.c +35 -35

70 lines not on this page · raw message

drivers/net/ena/ena_ethdev.h +2 -2
index 06ac8b06b5cb..3b1844e50982 100644

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

drivers/net/ena/ena_rss.c +33 -33

66 lines not on this page · raw message

drivers/net/enetc/enetc_ethdev.c +19 -19
index b496cd470045..e0fb44edeb41 100644

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

drivers/net/enic/enic_ethdev.c +40 -40

80 lines not on this page · raw message

drivers/net/enic/enic_main.c +20 -20
index 2affd380c6a4..754cf362c6d8 100644

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

drivers/net/enic/enic_res.c +26 -26

52 lines not on this page · raw message

drivers/net/failsafe/failsafe.c +4 -4
index 8216063a3d8b..9b22a6ce8941 100644

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

drivers/net/failsafe/failsafe_intr.c +2 -2
index 602c04033c18..5f4810051dac 100644

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

drivers/net/failsafe/failsafe_ops.c +41 -41

82 lines not on this page · raw message

drivers/net/fm10k/fm10k.h +2 -2
index 916b856acc4b..7af115399e0f 100644

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

drivers/net/fm10k/fm10k_ethdev.c +70 -70

140 lines not on this page · raw message

drivers/net/fm10k/fm10k_rxtx_vec.c +3 -3
index 83af01dc2da6..50973a662c67 100644

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

drivers/net/hinic/base/hinic_pmd_hwdev.c +11 -11
index cb9cf6efa287..80f9eb5c3031 100644

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

drivers/net/hinic/hinic_pmd_ethdev.c +67 -67

134 lines not on this page · raw message

drivers/net/hinic/hinic_pmd_rx.c +18 -18
index 842399cc4cd8..d347afe9a6a9 100644

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

drivers/net/hinic/hinic_pmd_rx.h +11 -11
index 8a45f2d9fc50..5c303398b635 100644

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

drivers/net/hns3/hns3_dcb.c +7 -7
index b71e2e9ea451..953c146d0200 100644

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

drivers/net/hns3/hns3_ethdev.c +180 -180

360 lines not on this page · raw message

drivers/net/hns3/hns3_ethdev.h +6 -6
index 0e4e4269a12f..c40d28af1d46 100644

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

drivers/net/hns3/hns3_ethdev_vf.c +54 -54

108 lines not on this page · raw message

drivers/net/hns3/hns3_flow.c +3 -3
index fc77979c5f14..0ac8705b590b 100644

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

drivers/net/hns3/hns3_ptp.c +1 -1
index df8485904688..395590c86c03 100644

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

drivers/net/hns3/hns3_rss.c +50 -50

100 lines not on this page · raw message

drivers/net/hns3/hns3_rss.h +14 -14
index 996083b88b25..6f153a1b7bfb 100644

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

drivers/net/hns3/hns3_rxtx.c +15 -15
index 0f222b37f9d1..01e43791572b 100644

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

drivers/net/hns3/hns3_rxtx.h +1 -1
index cd7c21c1d0c8..2fa3a01dd3bf 100644

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

drivers/net/hns3/hns3_rxtx_vec.c +5 -5
index 844512f6ceec..d01a8d62bfb1 100644

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

drivers/net/i40e/i40e_ethdev.c +135 -135

270 lines not on this page · raw message

drivers/net/i40e/i40e_ethdev.h +12 -12
index cd6deabd60b3..f21c2de6bdb9 100644

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

drivers/net/i40e/i40e_ethdev_vf.c +55 -55

110 lines not on this page · raw message

drivers/net/i40e/i40e_flow.c +1 -1
index 3c1570bd9c47..d1cb992be61d 100644

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

drivers/net/i40e/i40e_hash.c +78 -78

156 lines not on this page · raw message

drivers/net/i40e/i40e_pf.c +7 -7
index e2d8b2b5f7f1..ccb3924a5f68 100644

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

drivers/net/i40e/i40e_rxtx.c +5 -5
index 8329cbdd4e30..3bad4052ed1b 100644

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

drivers/net/i40e/i40e_rxtx.h +2 -2
index 5ccf5773e857..303a4db47dbd 100644

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

drivers/net/i40e/i40e_rxtx_vec_avx512.c +1 -1
index bd21d6422394..5f00d43950aa 100644

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

drivers/net/i40e/i40e_rxtx_vec_common.h +4 -4
index f52ed98d62d0..0192164c35fa 100644

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

drivers/net/i40e/i40e_vf_representor.c +24 -24

48 lines not on this page · raw message

drivers/net/iavf/iavf.h +12 -12
index b3bd07811198..1d4383e89327 100644

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

drivers/net/iavf/iavf_ethdev.c +89 -89

178 lines not on this page · raw message

drivers/net/iavf/iavf_hash.c +150 -150

300 lines not on this page · raw message

drivers/net/iavf/iavf_rxtx.c +1 -1
index e33fe4576b6e..4ff856fc82aa 100644

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

drivers/net/iavf/iavf_rxtx.h +12 -12
index e210b913d633..096be81e8a69 100644

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

drivers/net/iavf/iavf_rxtx_vec_avx2.c +2 -2
index 475070e036ef..8f9a397e4143 100644

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

drivers/net/iavf/iavf_rxtx_vec_avx512.c +3 -3
index 571161c0cdec..2329928c62cb 100644

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

drivers/net/iavf/iavf_rxtx_vec_sse.c +1 -1
index ee1e9055259b..58f928bdd7ca 100644

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

drivers/net/ice/ice_dcf.c +1 -1
index 4c2e0c7216fd..ec53478083b4 100644

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

drivers/net/ice/ice_dcf_ethdev.c +45 -45

90 lines not on this page · raw message

drivers/net/ice/ice_dcf_vf_representor.c +29 -29

58 lines not on this page · raw message

drivers/net/ice/ice_ethdev.c +91 -91

182 lines not on this page · raw message

drivers/net/ice/ice_ethdev.h +13 -13
index b4bf651c1c7f..1c4bc4e30349 100644

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

drivers/net/ice/ice_hash.c +134 -134

268 lines not on this page · raw message

drivers/net/ice/ice_rxtx.c +4 -4
index 5d7ab4f047ee..63c07e001f07 100644

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

drivers/net/ice/ice_rxtx_vec_avx2.c +1 -1
index 9725ac018043..8c870354619e 100644

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

drivers/net/ice/ice_rxtx_vec_avx512.c +2 -2
index 5bba9887d296..6d2038975830 100644

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

drivers/net/ice/ice_rxtx_vec_common.h +13 -13
index 2d8ef7dc8a93..a5b573c22da2 100644

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

drivers/net/ice/ice_rxtx_vec_sse.c +1 -1
index 653bd28b417c..117494131f32 100644

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

drivers/net/igc/igc_ethdev.c +67 -67

134 lines not on this page · raw message

drivers/net/igc/igc_ethdev.h +28 -28

56 lines not on this page · raw message

drivers/net/igc/igc_txrx.c +25 -25

50 lines not on this page · raw message

drivers/net/ionic/ionic_ethdev.c +64 -64

128 lines not on this page · raw message

drivers/net/ionic/ionic_ethdev.h +6 -6
index 6cbcd0f825a3..652f28c97d57 100644

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

drivers/net/ionic/ionic_lif.c +18 -18
index 431eda777b78..d4eb6c1d78be 100644

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

drivers/net/ionic/ionic_rxtx.c +5 -5
index b83ea1bcaa6a..0c1f6113d0e9 100644

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

drivers/net/ipn3ke/ipn3ke_representor.c +35 -35

70 lines not on this page · raw message

drivers/net/ixgbe/ixgbe_ethdev.c +151 -151

302 lines not on this page · raw message

drivers/net/ixgbe/ixgbe_ethdev.h +9 -9
index a0ce18ca246b..3443154589e8 100644

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

drivers/net/ixgbe/ixgbe_fdir.c +12 -12
index 27a49bbce5e7..7894047829a8 100644

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

drivers/net/ixgbe/ixgbe_flow.c +1 -1
index 511b612f7fe4..0557de6c1aa5 100644

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

drivers/net/ixgbe/ixgbe_ipsec.c +6 -6
index e45c5501e6bf..944c9f23809e 100644

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

drivers/net/ixgbe/ixgbe_pf.c +19 -19
index fbf2b17d160f..d03238b728ba 100644

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

drivers/net/ixgbe/ixgbe_rxtx.c +126 -126

252 lines not on this page · raw message

drivers/net/ixgbe/ixgbe_rxtx.h +2 -2
index 476ef62cfda2..220efffe4d08 100644

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

drivers/net/ixgbe/ixgbe_rxtx_vec_common.h +1 -1
index adba855ca30f..714707941537 100644

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

drivers/net/ixgbe/ixgbe_tm.c +8 -8
index a8407e742e6d..c2ab3131f22e 100644

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

drivers/net/ixgbe/ixgbe_vf_representor.c +8 -8
index d5b636a19408..536e33010703 100644

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

drivers/net/ixgbe/rte_pmd_ixgbe.c +7 -7
index cf089cd9aee5..9729f8575f53 100644

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

drivers/net/ixgbe/rte_pmd_ixgbe.h +2 -2
index 90fc8160b1f8..bad6691648a1 100644

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

drivers/net/kni/rte_eth_kni.c +4 -4
index 871d11c4133d..29060ca76f93 100644

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

drivers/net/liquidio/lio_ethdev.c +51 -51

102 lines not on this page · raw message

drivers/net/memif/memif_socket.c +1 -1
index f58ff4c0cb77..a117a05228fc 100644

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

drivers/net/memif/rte_eth_memif.c +7 -7
index de6becd45e3e..ea66f5bfd452 100644

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

drivers/net/mlx4/mlx4_ethdev.c +16 -16
index 783ff94dce8d..d606ec8ca76d 100644

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

drivers/net/mlx4/mlx4_flow.c +15 -15
index 71ea91b3fb82..2e1b6c87e983 100644

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

drivers/net/mlx4/mlx4_intr.c +4 -4
index d56009c41845..2aab0f60a7b5 100644

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

drivers/net/mlx4/mlx4_rxq.c +10 -10
index 978cbb8201ea..9977c761880a 100644

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

drivers/net/mlx4/mlx4_txq.c +12 -12
index 2df26842fbe4..19feec5e5202 100644

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

drivers/net/mlx5/linux/mlx5_ethdev_os.c +27 -27

54 lines not on this page · raw message

drivers/net/mlx5/linux/mlx5_os.c +3 -3
index 5f8766aa481e..c40cda8fcaf9 100644

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

drivers/net/mlx5/mlx5.c +2 -2
index f84e061fe719..ff1c8e17460a 100644

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

drivers/net/mlx5/mlx5.h +1 -1
index e02714e23196..9588dff05180 100644

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

drivers/net/mlx5/mlx5_defs.h +3 -3
index fe86bb40d351..12ddf4c7ff28 100644

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

drivers/net/mlx5/mlx5_ethdev.c +3 -3
index 82e2284d9866..f2b78c3cc69e 100644

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

drivers/net/mlx5/mlx5_flow.c +27 -27

54 lines not on this page · raw message

drivers/net/mlx5/mlx5_flow.h +6 -6
index 76ad53f2a1e8..d5d3a89374fe 100644

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

drivers/net/mlx5/mlx5_flow_dv.c +22 -22

44 lines not on this page · raw message

drivers/net/mlx5/mlx5_flow_verbs.c +2 -2
index b93fd4d2c962..ef286a13729c 100644

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

drivers/net/mlx5/mlx5_rss.c +1 -1
index c32129cdc2b8..1ee014776643 100644

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

drivers/net/mlx5/mlx5_rxq.c +21 -21

42 lines not on this page · raw message

drivers/net/mlx5/mlx5_rxtx_vec.h +4 -4
index 93b4f517bb3e..65d91bdf67e2 100644

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

drivers/net/mlx5/mlx5_tx.c +15 -15
index df671379e46d..12aeba60348a 100644

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

drivers/net/mlx5/mlx5_txq.c +26 -26

52 lines not on this page · raw message

drivers/net/mlx5/mlx5_vlan.c +2 -2
index 60f97f2d2d1f..07792fc5d94f 100644

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

drivers/net/mlx5/windows/mlx5_os.c +2 -2
index 7e1df1c75147..578816fe0513 100644

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

drivers/net/mvneta/mvneta_ethdev.c +17 -17
index a3ee15020466..37803fe34538 100644

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

drivers/net/mvneta/mvneta_ethdev.h +6 -6
index ef8067790f82..ccd47e8f4927 100644

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

drivers/net/mvneta/mvneta_rxtx.c +1 -1
index dfa7ecc09039..d28125ce9635 100644

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

drivers/net/mvpp2/mrvl_ethdev.c +58 -58

116 lines not on this page · raw message

drivers/net/netvsc/hn_ethdev.c +31 -31

62 lines not on this page · raw message

drivers/net/netvsc/hn_rndis.c +25 -25

50 lines not on this page · raw message

drivers/net/nfb/nfb_ethdev.c +10 -10
index 7e91d5984740..c2ff1c999869 100644

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

drivers/net/nfb/nfb_rx.c +1 -1
index d6d4ba9663c6..f19e9834848b 100644

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

drivers/net/nfp/nfp_common.c +61 -61

122 lines not on this page · raw message

drivers/net/nfp/nfp_ethdev.c +1 -1
index 534a38c14f94..7a6a963bf6cc 100644

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

drivers/net/nfp/nfp_ethdev_vf.c +1 -1
index b697b55865cc..ac960328c7de 100644

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

drivers/net/ngbe/ngbe_ethdev.c +25 -25

50 lines not on this page · raw message

drivers/net/null/rte_eth_null.c +8 -8
index 508bafc12a14..789c6b9c4b9a 100644

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

drivers/net/octeontx/octeontx_ethdev.c +39 -39

78 lines not on this page · raw message

drivers/net/octeontx/octeontx_ethdev.h +16 -16
index b73515de37ca..7215039507c3 100644

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

drivers/net/octeontx/octeontx_ethdev_ops.c +13 -13
index dbe13ce3826b..6ec2b71b0672 100644

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

drivers/net/octeontx2/otx2_ethdev.c +48 -48

96 lines not on this page · raw message

drivers/net/octeontx2/otx2_ethdev.h +33 -33

66 lines not on this page · raw message

drivers/net/octeontx2/otx2_ethdev_devargs.c +6 -6
index 83f905315b38..60bf6c3f5f05 100644

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

drivers/net/octeontx2/otx2_ethdev_ops.c +9 -9
index 5a4501208e9e..41761085e156 100644

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

drivers/net/octeontx2/otx2_ethdev_sec.c +4 -4
index c2a36883cbf2..e1654ef5b284 100644

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

drivers/net/octeontx2/otx2_flow.c +1 -1
index 6df0732189eb..1d0fe4e950d4 100644

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

drivers/net/octeontx2/otx2_flow_ctrl.c +18 -18
index 76bf48100183..071740de86a7 100644

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

drivers/net/octeontx2/otx2_flow_parse.c +2 -2
index 63a33142a579..3fe6727f1d2a 100644

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

drivers/net/octeontx2/otx2_link.c +20 -20
index 81dd6243b977..8f5d0eed92b6 100644

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

drivers/net/octeontx2/otx2_mcast.c +1 -1
index f84aa1bf570c..b9c63ad3bc21 100644

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

drivers/net/octeontx2/otx2_ptp.c +2 -2
index 91e5c0f6bd11..abb213058792 100644

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

drivers/net/octeontx2/otx2_rss.c +31 -31

62 lines not on this page · raw message

drivers/net/octeontx2/otx2_rx.c +2 -2
index ffeade5952dc..986902287b67 100644

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

drivers/net/octeontx2/otx2_tx.c +1 -1
index ff299f00b913..c60190074926 100644

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

drivers/net/octeontx2/otx2_vlan.c +21 -21

42 lines not on this page · raw message

drivers/net/octeontx_ep/otx_ep_ethdev.c +4 -4
index a243683d61d3..7bfa6098e230 100644

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

drivers/net/octeontx_ep/otx_ep_rxtx.c +4 -4
index a7d433547e36..77593111f141 100644

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

drivers/net/pcap/pcap_ethdev.c +6 -6
index a8774b7a432a..13d18e875444 100644

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

drivers/net/pfe/pfe_ethdev.c +9 -9
index feec4d10a26e..a74f27bf8158 100644

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

drivers/net/qede/base/mcp_public.h +2 -2
index 6667c2d7ab6d..511742c6a1b3 100644

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

drivers/net/qede/qede_ethdev.c +69 -69

138 lines not on this page · raw message

drivers/net/qede/qede_filter.c +5 -5
index c756594bfc4b..ceb47c17d0d6 100644

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

drivers/net/qede/qede_rxtx.c +1 -1
index 298f4e3e4273..144dfef269f3 100644

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

drivers/net/qede/qede_rxtx.h +8 -8
index c9334448c887..15112b83f4f7 100644

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

drivers/net/ring/rte_eth_ring.c +10 -10
index 1faf38a714cf..8d1ef5fb22bc 100644

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

drivers/net/sfc/sfc.c +15 -15
index 274a98e228e4..d93f9d2418b9 100644

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

drivers/net/sfc/sfc_ef100_rx.c +5 -5
index d4cb96881cd2..ca8774ad0950 100644

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

drivers/net/sfc/sfc_ef100_tx.c +10 -10
index 522e9a0d3470..7c91ee3fcb53 100644

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

drivers/net/sfc/sfc_ef10_essb_rx.c +2 -2
index 991329e86f01..9ea207cca163 100644

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

drivers/net/sfc/sfc_ef10_rx.c +4 -4
index 49a7d4fb42fd..9aaabd30eee6 100644

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

drivers/net/sfc/sfc_ef10_tx.c +16 -16
index ed43adb4ca5c..e7da4608bcb0 100644

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

drivers/net/sfc/sfc_ethdev.c +21 -21

42 lines not on this page · raw message

drivers/net/sfc/sfc_flow.c +1 -1
index 4f5993a68d23..dc2cdfea13c4 100644

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

drivers/net/sfc/sfc_port.c +27 -27

54 lines not on this page · raw message

drivers/net/sfc/sfc_rx.c +26 -26

52 lines not on this page · raw message

drivers/net/sfc/sfc_tx.c +25 -25

50 lines not on this page · raw message

drivers/net/softnic/rte_eth_softnic.c +6 -6
index b3b55b9035b1..3ef33818a9e0 100644

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

drivers/net/szedata2/rte_eth_szedata2.c +7 -7
index 7416a6b1b816..255444a4181d 100644

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

drivers/net/tap/rte_eth_tap.c +52 -52

104 lines not on this page · raw message

drivers/net/tap/tap_rss.h +1 -1
index 176e7180bdaa..48c151cf6b68 100644

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

drivers/net/thunderx/nicvf_ethdev.c +50 -50

100 lines not on this page · raw message

drivers/net/thunderx/nicvf_ethdev.h +21 -21

42 lines not on this page · raw message

drivers/net/txgbe/txgbe_ethdev.c +118 -118

236 lines not on this page · raw message

drivers/net/txgbe/txgbe_ethdev.h +9 -9
index 3021933965c8..75a9e2580e27 100644

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

drivers/net/txgbe/txgbe_ethdev_vf.c +12 -12
index 18ed94bd277b..05773cb20786 100644

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

drivers/net/txgbe/txgbe_fdir.c +10 -10
index 8abb86228608..e303d87176ed 100644

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

drivers/net/txgbe/txgbe_flow.c +1 -1
index eae400b14176..6d7fd1842843 100644

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

drivers/net/txgbe/txgbe_ipsec.c +6 -6
index ccd747973ba2..445733f3ba46 100644

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

drivers/net/txgbe/txgbe_pf.c +17 -17
index 494d779a3c9d..44f6f103edd2 100644

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

drivers/net/txgbe/txgbe_rxtx.c +156 -156

312 lines not on this page · raw message

drivers/net/txgbe/txgbe_rxtx.h +2 -2
index b96f58a3f848..27d4c842c0e7 100644

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

drivers/net/txgbe/txgbe_tm.c +8 -8
index 3abe3959eb1a..3171be73d05d 100644

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

drivers/net/vhost/rte_eth_vhost.c +8 -8
index a202931e9aed..778460aab5e1 100644

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

drivers/net/virtio/virtio_ethdev.c +63 -63

126 lines not on this page · raw message

drivers/net/vmxnet3/vmxnet3_ethdev.c +37 -37

74 lines not on this page · raw message

drivers/net/vmxnet3/vmxnet3_ethdev.h +8 -8
index 59bee9723cfc..7588ba929b65 100644

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

drivers/net/vmxnet3/vmxnet3_rxtx.c +8 -8
index 5cf53d4de825..0f2671f528f4 100644

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

examples/bbdev_app/main.c +3 -3
index 5251db0b1674..ecc6ef2965ee 100644

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

examples/bond/main.c +7 -7
index f48400e21156..e4c627e203a4 100644

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

examples/distributor/main.c +6 -6
index 1b1029660e77..e6af8420e4c6 100644

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

examples/ethtool/ethtool-app/main.c +1 -1
index 21ed85c7d6c9..5053d174335c 100644

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

examples/ethtool/lib/rte_ethtool.c +9 -9
index 413251630709..e7cdf8d5775b 100644

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

examples/eventdev_pipeline/pipeline_worker_generic.c +8 -8
index f70ab0cc9e38..3ac98add5692 100644

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

examples/eventdev_pipeline/pipeline_worker_tx.c +6 -6
index ca6cd200caad..5780928d75ee 100644

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

examples/flow_classify/flow_classify.c +2 -2
index db71f5aa0401..f44ee65372ff 100644

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

examples/flow_filtering/main.c +8 -8
index 29fb4b3d55ef..150406e385d4 100644

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

examples/ioat/ioatfwd.c +4 -4
index 0c413180f889..94e3ac91b299 100644

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

examples/ip_fragmentation/main.c +7 -7
index f24536972084..aa41fcc1d037 100644

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

examples/ip_pipeline/link.c +7 -7
index 16bcffe356bc..8e974a8d0a92 100644

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

examples/ip_reassembly/main.c +10 -10
index 8645ac790be4..8aabea002bbb 100644

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

examples/ipsec-secgw/ipsec-secgw.c +17 -17
index f252d34985b4..73932564e459 100644

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

examples/ipsec-secgw/sa.c +4 -4
index 17a28556c971..5cdd794f017f 100644

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

examples/ipv4_multicast/main.c +4 -4
index cc527d7f6b38..96fb325ff180 100644

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

examples/kni/main.c +6 -6
index beabb3c848aa..81124dc0dc88 100644

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

examples/l2fwd-crypto/main.c +5 -5
index 5f539c458cdd..89489843e2bd 100644

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

examples/l2fwd-event/l2fwd_common.c +5 -5
index b8c1e02d7598..80a72f7095cf 100644

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

examples/l2fwd-event/main.c +1 -1
index 1db89f2bd139..9806204b81d1 100644

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

examples/l2fwd-jobstats/main.c +4 -4
index bbb4a27a6d54..2e50339afb61 100644

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

examples/l2fwd-keepalive/main.c +4 -4
index 4e1a17cfe4f5..d228a842788d 100644

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

examples/l2fwd/main.c +4 -4
index 911e40c66e0e..b4a69dde63dc 100644

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

examples/l3fwd-acl/main.c +10 -10
index a1f457b564b6..9323426e9b1d 100644

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

examples/l3fwd-graph/main.c +8 -8
index a0de8ca9b42d..278fe95970f3 100644

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

examples/l3fwd-power/main.c +9 -9
index aa7b8db44ae8..85609e9d4593 100644

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

examples/l3fwd/l3fwd_event.c +2 -2
index 961860ea18ef..7c7613a83aad 100644

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

examples/l3fwd/main.c +10 -10
index 00ac267af1dd..500444565463 100644

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

examples/link_status_interrupt/main.c +5 -5
index 7470aa539a90..7c1214512983 100644

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

examples/multi_process/client_server_mp/mp_server/init.c +2 -2
index 1ad71ca7ec5f..23307073c904 100644

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

examples/multi_process/symmetric_mp/main.c +7 -7
index 01dc3acf34d5..85955375f1bf 100644

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

examples/ntb/ntb_fwd.c +3 -3
index e9a388710647..f110fc129f55 100644

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

examples/packet_ordering/main.c +2 -2
index d2fe9f6b50d8..eb15899c902f 100644

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

examples/performance-thread/l3fwd-thread/main.c +9 -9
index 2f593abf263d..86671655b432 100644

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

examples/pipeline/obj.c +7 -7
index 467cda5a6dac..2e68a3870a09 100644

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

examples/ptpclient/ptpclient.c +5 -5
index 4f32ade7fbf7..db32b0d6c427 100644

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

examples/qos_meter/main.c +8 -8
index 7ffccc8369dc..5ef14c176b11 100644

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

examples/qos_sched/init.c +3 -3
index 1abe003fc6ae..e750928fb89d 100644

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

examples/rxtx_callbacks/main.c +4 -4
index 6f20f98b2b30..08df716dc0fb 100644

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

examples/server_node_efd/server/init.c +4 -4
index 9ebd88bac20e..074fee5b26b2 100644

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

examples/skeleton/basicfwd.c +2 -2
index ae08261befd7..737df4ca2a17 100644

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

examples/vhost/main.c +14 -14
index bc3d71c8984e..b1d363ae21db 100644

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

examples/vm_power_manager/main.c +3 -3
index 7d5bf6855426..dddcde40efe2 100644

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

examples/vmdq/main.c +10 -10
index d3bc19f78ee5..16782a5d850f 100644

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

examples/vmdq_dcb/main.c +20 -20
index 685a03bdd194..f58625a76227 100644

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

lib/ethdev/rte_ethdev.c +92 -95

187 lines not on this page · raw message

lib/ethdev/rte_ethdev.h +569 -338

907 lines not on this page · raw message

lib/ethdev/rte_ethdev_core.h +1 -1
index edf96de2dc2e..8e6156a62aa9 100644

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

lib/ethdev/rte_flow.h +1 -1
index 70f455d47d60..4152067368b8 100644

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

lib/gso/rte_gso.c +10 -10
index 0d02ec3cee05..119fdcac0b7f 100644

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

lib/gso/rte_gso.h +2 -2
index d93ee8e5b171..0a65afc11e64 100644

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

lib/mbuf/rte_mbuf_core.h +4 -4
index bb38d7f58102..50e611e887bf 100644

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

lib/mbuf/rte_mbuf_dyn.h +1 -1
index 13f06d8ed25b..be43f8c328e1 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.31.1

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

Acked-by on v2 1/1
#5 lore raw
Quoted 7 lines · Ferruh Yigit

Add 'RTE_ETH' namespace to all enums & macros in a backward compatible way. The macros for backward compatibility can be removed in next LTS.

Internal components switched to new enum & macro names.

I think that it should be pushed as early as possible in the release cycle.

The changeset definitely deserves entry in release notes.

#6 lore raw
Quoted 6 lines · Andrew Rybchenko
Quoted 5 lines · Ferruh Yigit

Add 'RTE_ETH' namespace to all enums & macros in a backward compatible way. The macros for backward compatibility can be removed in next LTS.

Internal components switched to new enum & macro names.

Quoted 8 lines
Quoted 2 lines

I think that it should be pushed as early as possible in the release cycle.

ack

Quoted 1 line

The changeset definitely deserves entry in release notes.

and ack. I will send a new version with release notes update on Monday.

Acked-by
#7 lore raw
In reply to Andrew Rybchenko
Quoted 11 lines · Andrew Rybchenko
Quoted 7 lines · Ferruh Yigit

Add 'RTE_ETH' namespace to all enums & macros in a backward compatible way. The macros for backward compatibility can be removed in next LTS.

Internal components switched to new enum & macro names.

Quoted 5 lines

I think that it should be pushed as early as possible in the release cycle.

The changeset definitely deserves entry in release notes.

Acked-by
#8 lore raw
Quoted 8 lines · Ajit Khaparde
Quoted 5 lines · Andrew Rybchenko
Quoted 3 lines · Ferruh Yigit

Add 'RTE_ETH' namespace to all enums & macros in a backward compatible way. The macros for backward compatibility can be removed in next LTS.

Quoted 7 lines
Quoted 6 lines
Quoted 4 lines

Internal components switched to new enum & macro names.

Quoted 6 lines
Quoted 6 lines

I think that it should be pushed as early as possible in the release cycle.

The changeset definitely deserves entry in release notes.

Acked-by
#9 lore raw
In reply to Ajit Khaparde

Hi,

Quoted 82 lines

-----Original Message-----
From: Ajit Khaparde <[email protected]>
Sent: Saturday, August 28, 2021 5:26 PM
To: Andrew Rybchenko <[email protected]>
Cc: Ferruh Yigit <[email protected]>; Maryam Tahhan <[email protected]>; Reshma Pattan <[email protected]>; Jerin Jacob <[email protected]>; Wisam Monther <[email protected]>; Cristian Dumitrescu <[email protected]>; Xiaoyun Li <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Jay Jayatheerthan <[email protected]>; Chas Williams <[email protected]>; Min Hu (Connor) <[email protected]>; Pavan Nikhilesh <[email protected]>; Shijith Thotton <[email protected]>; Somnath Kotur <[email protected]>; John Daley <[email protected]>; Hyong Youb Kim <[email protected]>; Qi Zhang <[email protected]>; Xiao Wang <[email protected]>; Beilei Xing <[email protected]>; Haiyue Wang <[email protected]>; Matan Azrad <[email protected]>; Shahaf Shuler <[email protected]>; Slava Ovsiienko <[email protected]>; Keith Wiles <[email protected]>; Jiayu Hu <[email protected]>; Olivier Matz <[email protected]>; Ori Kam <[email protected]>; Akhil Goyal <[email protected]>; Declan Doherty <[email protected]>; Ray Kinsella <[email protected]>; Radu Nicolau <[email protected]>; Hemant Agrawal <[email protected]>; Sachin Saxena <[email protected]>; Nithin Dabilpuram <[email protected]>; Kiran Kumar K <[email protected]>; Sunil Kumar Kori <[email protected]>; Satha Rao <[email protected]>; John W. Linville <[email protected]>; Ciara Loftus <[email protected]>; Shepard Siegel <[email protected]>; Ed Czeck <[email protected]>; John Miller <[email protected]>; Igor Russkikh <[email protected]>; Steven Webster <[email protected]>; Matt Peters <[email protected]>; Somalapuram Amaranath <[email protected]>; Rasesh Mody <[email protected]>; Shahed Shaikh <[email protected]>; Bruce Richardson <[email protected]>; Konstantin Ananyev <[email protected]>; Ruifeng Wang <[email protected]>; Rahul Lakkireddy <[email protected]>; Marcin Wojtas <[email protected]>; Michal Krawczyk <[email protected]>; Shai Brandes <[email protected]>; Evgeny Schemeilin <[email protected]>; Igor Chauskin <[email protected]>; Gagandeep Singh <[email protected]>; Gaetan Rivet <[email protected]>; Ziyang Xuan <[email protected]>; Xiaoyun Wang <[email protected]>; Guoyang Zhou <[email protected]>; Yisen Zhuang <[email protected]>; Lijun Ou <[email protected]>; Jingjing Wu <[email protected]>; Qiming Yang <[email protected]>; Andrew Boyer <[email protected]>; Rosen Xu <[email protected]>; Srisivasubramanian Srinivasan <[email protected]>; Jakub Grajciar <[email protected]>; Zyta Szpak <[email protected]>; Liron Himi <[email protected]>; Stephen Hemminger <[email protected]>; NBU-Contact-longli <[email protected]>; Martin Spinler <[email protected]>; Heinrich Kuhn <[email protected]>; Jiawen Wu <[email protected]>; Tetsuya Mukawa <[email protected]>; Harman Kalra <[email protected]>; Anoob Joseph <[email protected]>; Nalla Pradeep <[email protected]>; Radha Mohan Chintakuntla <[email protected]>; Veerasenareddy Burru <[email protected]>; Devendra Singh Rawat <[email protected]>; Jasvinder Singh <[email protected]>; Maciej Czekaj <[email protected]>; Jian Wang <[email protected]>; Maxime Coquelin <[email protected]>; Chenbo Xia <[email protected]>; Yong Wang <[email protected]>; Nicolas Chautru <[email protected]>; David Hunt <[email protected]>; Harry van Haaren <[email protected]>; Bernard Iremonger <[email protected]>; Anatoly Burakov <[email protected]>; John McNamara <[email protected]>; Kirill Rybalchenko <[email protected]>; Byron Marohn <[email protected]>; Yipeng Wang <[email protected]>; dpdk-dev <[email protected]>; Tyler Retzlaff <[email protected]>
Subject: Re: [PATCH v2] ethdev: add namespace

Quoted 3 lines · Andrew Rybchenko
Quoted 1 line · Ferruh Yigit

Add 'RTE_ETH' namespace to all enums & macros in a backward

compatible

Quoted 2 lines
Quoted 2 lines

way. The macros for backward compatibility can be removed in next LTS.

Quoted 7 lines
Quoted 6 lines
Quoted 4 lines

Internal components switched to new enum & macro names.

Quoted 6 lines
Quoted 6 lines

I think that it should be pushed as early as possible in the release cycle.

The changeset definitely deserves entry in release notes.

Acked-by
#10 lore raw

Hi,

Quoted 168 lines

-----Original Message-----
From: Wisam Monther <[email protected]>
Sent: Sunday, August 29, 2021 16:18
To: Ajit Khaparde <[email protected]>; Andrew Rybchenko <[email protected]>
Cc: Yigit, Ferruh <[email protected]>; Tahhan, Maryam <[email protected]>; Pattan, Reshma <[email protected]>; Jerin Jacob <[email protected]>; Dumitrescu, Cristian <[email protected]>; Li, Xiaoyun <[email protected]>; NBU- Contact-Thomas Monjalon <[email protected]>; Jayatheerthan, Jay <[email protected]>; Chas Williams <[email protected]>; Min Hu (Connor) <[email protected]>; Pavan Nikhilesh <[email protected]>; Shijith Thotton <[email protected]>; Somnath Kotur <[email protected]>; Daley, John <[email protected]>; Hyong Youb Kim <[email protected]>; Zhang, Qi Z <[email protected]>; Wang, Xiao W <[email protected]>; Xing, Beilei <[email protected]>; Wang, Haiyue <[email protected]>; Matan Azrad <[email protected]>; Shahaf Shuler <[email protected]>; Slava Ovsiienko <[email protected]>; Wiles, Keith <[email protected]>; Hu, Jiayu <[email protected]>; Olivier Matz <[email protected]>; Ori Kam <[email protected]>; Akhil Goyal <[email protected]>; Doherty, Declan <[email protected]>; Ray Kinsella <[email protected]>; Nicolau, Radu <[email protected]>; Hemant Agrawal <[email protected]>; Sachin Saxena <[email protected]>; Nithin Dabilpuram <[email protected]>; Kiran Kumar K <[email protected]>; Sunil Kumar Kori <[email protected]>; Satha Rao <[email protected]>; John W. Linville <[email protected]>; Loftus, Ciara <[email protected]>; Shepard Siegel <[email protected]>; Ed Czeck <[email protected]>; John Miller <[email protected]>; Igor Russkikh <[email protected]>; Steven Webster <[email protected]>; Matt Peters <[email protected]>; Somalapuram Amaranath <[email protected]>; Rasesh Mody <[email protected]>; Shahed Shaikh <[email protected]>; Richardson, Bruce <[email protected]>; Ananyev, Konstantin <[email protected]>; Ruifeng Wang <[email protected]>; Rahul Lakkireddy <[email protected]>; Marcin Wojtas <[email protected]>; Michal Krawczyk <[email protected]>; Shai Brandes <[email protected]>; Evgeny Schemeilin <[email protected]>; Igor Chauskin <[email protected]>; Gagandeep Singh <[email protected]>; Gaetan Rivet <[email protected]>; Ziyang Xuan <[email protected]>; Xiaoyun Wang <[email protected]>; Guoyang Zhou <[email protected]>; Yisen Zhuang <[email protected]>; Lijun Ou <[email protected]>; Wu, Jingjing <[email protected]>; Yang, Qiming <[email protected]>; Andrew Boyer <[email protected]>; Xu, Rosen <[email protected]>; Srisivasubramanian Srinivasan <[email protected]>; Jakub Grajciar <[email protected]>; Zyta Szpak <[email protected]>; Liron Himi <[email protected]>; Stephen Hemminger <[email protected]>; NBU-Contact-longli <[email protected]>; Martin Spinler <[email protected]>; Heinrich Kuhn <[email protected]>; Jiawen Wu <[email protected]>; Tetsuya Mukawa <[email protected]>; Harman Kalra <[email protected]>; Anoob Joseph <[email protected]>; Nalla Pradeep <[email protected]>; Radha Mohan Chintakuntla <[email protected]>; Veerasenareddy Burru <[email protected]>; Devendra Singh Rawat <[email protected]>; Singh, Jasvinder <[email protected]>; Maciej Czekaj <[email protected]>; Jian Wang <[email protected]>; Maxime Coquelin <[email protected]>; Xia, Chenbo <[email protected]>; Yong Wang <[email protected]>; Chautru, Nicolas <[email protected]>; Hunt, David <[email protected]>; Van Haaren, Harry <[email protected]>; Iremonger, Bernard <[email protected]>; Burakov, Anatoly <[email protected]>; Mcnamara, John <[email protected]>; Rybalchenko, Kirill <[email protected]>; Marohn, Byron <[email protected]>; Wang, Yipeng1 <[email protected]>; dpdk-dev <[email protected]>; Tyler Retzlaff <[email protected]>
Subject: RE: [PATCH v2] ethdev: add namespace

Hi,

Quoted 6 lines

-----Original Message-----
From: Ajit Khaparde <[email protected]>
Sent: Saturday, August 28, 2021 5:26 PM
To: Andrew Rybchenko <[email protected]>
Cc: Ferruh Yigit <[email protected]>; Maryam Tahhan <[email protected]>; Reshma Pattan

<[email protected]>;

Quoted 1 line

Jerin Jacob <[email protected]>; Wisam Monther

<[email protected]>;

Quoted 15 lines

Cristian Dumitrescu <[email protected]>; Xiaoyun Li <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>; Jay Jayatheerthan <[email protected]>; Chas Williams <[email protected]>; Min Hu (Connor) <[email protected]>; Pavan Nikhilesh <[email protected]>; Shijith Thotton <[email protected]>; Somnath Kotur <[email protected]>; John Daley <[email protected]>; Hyong Youb Kim <[email protected]>; Qi Zhang <[email protected]>; Xiao Wang <[email protected]>; Beilei Xing <[email protected]>; Haiyue Wang <[email protected]>; Matan Azrad <[email protected]>; Shahaf Shuler <[email protected]>; Slava Ovsiienko <[email protected]>; Keith Wiles <[email protected]>; Jiayu Hu <[email protected]>; Olivier Matz <[email protected]>; Ori Kam <[email protected]>; Akhil Goyal <[email protected]>; Declan Doherty <[email protected]>; Ray

Quoted 8 lines

Kinsella <[email protected]>; Radu Nicolau <[email protected]>; Hemant Agrawal <[email protected]>; Sachin Saxena <[email protected]>; Nithin Dabilpuram <[email protected]>; Kiran Kumar K <[email protected]>; Sunil Kumar Kori <[email protected]>; Satha Rao <[email protected]>; John W. Linville <[email protected]>; Ciara Loftus <[email protected]>; Shepard Siegel <[email protected]>; Ed Czeck

<[email protected]>;

Quoted 4 lines

John Miller <[email protected]>; Igor Russkikh <[email protected]>; Steven Webster <[email protected]>; Matt Peters <[email protected]>; Somalapuram Amaranath

<[email protected]>;

Quoted 1 line

Rasesh Mody <[email protected]>; Shahed Shaikh

<[email protected]>;

Quoted 2 lines

Bruce Richardson <[email protected]>; Konstantin Ananyev <[email protected]>; Ruifeng Wang

<[email protected]>;

Quoted 3 lines

Rahul Lakkireddy <[email protected]>; Marcin Wojtas <[email protected]>; Michal Krawczyk <[email protected]>; Shai Brandes <[email protected]>; Evgeny Schemeilin <[email protected]>;

Igor

Quoted 4 lines

Chauskin <[email protected]>; Gagandeep Singh <[email protected]>; Gaetan Rivet <[email protected]>; Ziyang Xuan <[email protected]>; Xiaoyun Wang <[email protected]>; Guoyang Zhou <[email protected]>; Yisen Zhuang

<[email protected]>;

Quoted 10 lines

Lijun Ou <[email protected]>; Jingjing Wu <[email protected]>; Qiming Yang <[email protected]>; Andrew Boyer <[email protected]>; Rosen Xu <[email protected]>; Srisivasubramanian Srinivasan <[email protected]>; Jakub Grajciar <[email protected]>; Zyta Szpak <[email protected]>; Liron Himi <[email protected]>; Stephen Hemminger <[email protected]>; NBU-Contact-longli <[email protected]>; Martin Spinler <[email protected]>; Heinrich Kuhn <[email protected]>; Jiawen Wu <[email protected]>; Tetsuya Mukawa <[email protected]>; Harman Kalra <[email protected]>; Anoob

Joseph

Quoted 1 line

<[email protected]>; Nalla Pradeep <[email protected]>; Radha

Mohan

Quoted 2 lines

Chintakuntla <[email protected]>; Veerasenareddy Burru <[email protected]>; Devendra Singh Rawat

<[email protected]>;

Quoted 8 lines

Jasvinder Singh <[email protected]>; Maciej Czekaj <[email protected]>; Jian Wang <[email protected]>; Maxime Coquelin <[email protected]>; Chenbo Xia <[email protected]>; Yong Wang <[email protected]>; Nicolas Chautru <[email protected]>; David Hunt <[email protected]>; Harry van Haaren <[email protected]>; Bernard Iremonger <[email protected]>; Anatoly Burakov <[email protected]>; John McNamara

<[email protected]>;

Quoted 15 lines

Kirill Rybalchenko <[email protected]>; Byron Marohn <[email protected]>; Yipeng Wang <[email protected]>; dpdk-dev <[email protected]>; Tyler Retzlaff <[email protected]>
Subject: Re: [PATCH v2] ethdev: add namespace

Quoted 3 lines · Andrew Rybchenko
Quoted 1 line · Ferruh Yigit

Add 'RTE_ETH' namespace to all enums & macros in a backward

compatible

Quoted 4 lines
Quoted 4 lines

way. The macros for backward compatibility can be removed in next LTS.

Internal components switched to new enum & macro names.

Quoted 7 lines
Quoted 5 lines
Quoted 4 lines
Quoted 2 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I think that it should be pushed as early as possible in the release cycle.

The changeset definitely deserves entry in release notes.

Acked-by
#11 lore raw
Quoted 15 lines

-----Original Message-----
From: Xu, Rosen <[email protected]>

Quoted 13 lines
Quoted 13 lines
Quoted 3 lines · Andrew Rybchenko
Quoted 1 line · Ferruh Yigit

Add 'RTE_ETH' namespace to all enums & macros in a backward

compatible

Quoted 7 lines
Quoted 6 lines

way. The macros for backward compatibility can be removed in next LTS.

Internal components switched to new enum & macro names.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Quoted 1 line

For virtio/vhost part:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I think that it should be pushed as early as possible in the release cycle.

The changeset definitely deserves entry in release notes.

#12 lore raw
In reply to Wisam Monther
Quoted 11 lines
Quoted 7 lines
Quoted 3 lines · Andrew Rybchenko
Quoted 1 line · Ferruh Yigit

Add 'RTE_ETH' namespace to all enums & macros in a backward

compatible

Quoted 1 line
Quoted 1 line

way. The macros for backward compatibility can be removed in next

LTS.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Internal components switched to new enum & macro names.

Quoted 7 lines
Quoted 5 lines
Quoted 4 lines
Quoted 2 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I think that it should be pushed as early as possible in the release cycle.

The changeset definitely deserves entry in release notes.

#13 lore raw
In reply to Ferruh Yigit

Hi Ferruh,

Quoted 2 lines · Ferruh Yigit

Add 'RTE_ETH' namespace to all enums & macros in a backward compatible

For completeness, there are some struct renames too in this patch.

Quoted 1 line

way. The macros for backward compatibility can be removed in next LTS.

Olivier had provided a script when he prefixed librte_net macros.
https://inbox.dpdk.org/dev/20190529144602.5tpfb5p3yasz3tvl@platinum/

Did you use a script to do those renames and can you share it? Or maybe we can simply reuse Olivier script.

Quoted 2 lines

Internal components switched to new enum & macro names.

I found remaining references for macros and structs. Enums look fine.

With this patch applied:

# For structs:

$ for word in $(git show -- 'lib/ethdev/rte_ethdev.h' |awk '/^-struct
/ {print $2}' |sort -u); do git grep -w $word |grep -v '#define
'$word'[[:space:]]'; done
lib/ethdev/rte_ethdev.h:    struct rte_fdir_conf fdir_conf; /**< FDIR
configuration. DEPRECATED */
lib/ethdev/rte_ethdev.h:    struct rte_intr_conf intr_conf; /**<
Interrupt mode configuration. */

# Enums look fine:

$ for word in $(git show -- 'lib/ethdev/rte_ethdev.h' |awk '/^-enum /
{print $2}' |sort -u); do git grep -w $word |grep -v '#define
'$word'[[:space:]]'; done
$ for word in $(git show -- 'lib/ethdev/rte_ethdev.h' |awk
'/^-\t(RTE|ETH)_[^ ,]*,/ {print $2}' |sort -u); do word=${word%%,};
git grep -w $word |grep -v '#define '$word'[[:space:]]'; done
$ for word in $(git show -- 'lib/ethdev/rte_ethdev.h' |awk
'/^-\t(RTE|ETH)_[^ ,]* = / {print $2}' |sort -u); do git grep -w $word
|grep -v '#define '$word'[[:space:]]'; done

# For macros:

$ for word in $(git show -- 'lib/ethdev/rte_ethdev.h' |awk '/^-#define
/ {print $2}' |sort -u); do git grep -w $word |grep -v '#define
'$word'[[:space:]]' && echo; done
doc/guides/rel_notes/release_18_11.rst:  To request keeping CRC,
application should set ``DEV_RX_OFFLOAD_KEEP_CRC``

doc/guides/rel_notes/release_19_11.rst: * Added new Rx offload flag ``DEV_RX_OFFLOAD_RSS_HASH`` which can be used to

lib/ethdev/rte_ethdev.h:    } tc_rxq[ETH_MAX_VMDQ_POOL][ETH_DCB_NUM_TCS];
lib/ethdev/rte_ethdev.h:    } tc_txq[ETH_MAX_VMDQ_POOL][ETH_DCB_NUM_TCS];
lib/ethdev/rte_ethdev.h:    uint8_t tc_bws[ETH_DCB_NUM_TCS]; /**< TX

BW percentage for each TC */

lib/ethdev/rte_ethdev.h:    uint8_t dcb_tc[ETH_DCB_NUM_USER_PRIORITIES];
lib/ethdev/rte_ethdev.h:    uint8_t dcb_tc[ETH_DCB_NUM_USER_PRIORITIES];
lib/ethdev/rte_ethdev.h:    uint8_t dcb_tc[ETH_DCB_NUM_USER_PRIORITIES];
lib/ethdev/rte_ethdev.h:    uint8_t dcb_tc[ETH_DCB_NUM_USER_PRIORITIES];
lib/ethdev/rte_ethdev.h:    uint8_t

prio_tc[ETH_DCB_NUM_USER_PRIORITIES]; /**< Priority to tc */

[snipped the rest of the output] etc...

Signature · 1 line
David Marchand
#14 lore raw
Quoted 8 lines · David Marchand

Hi Ferruh,

Quoted 2 lines · Ferruh Yigit

Add 'RTE_ETH' namespace to all enums & macros in a backward compatible

For completeness, there are some struct renames too in this patch.

ack, will add to the commit log. Also fixing some checkpatch warnings and noting this in the commit log.

Quoted 9 lines
Quoted 2 lines

way. The macros for backward compatibility can be removed in next LTS.

Olivier had provided a script when he prefixed librte_net macros.
https://inbox.dpdk.org/dev/20190529144602.5tpfb5p3yasz3tvl@platinum/

Did you use a script to do those renames and can you share it? Or maybe we can simply reuse Olivier script.

Using Olivier script seems was good idea, but unfortunately I updated manually.

Quoted 7 lines
Quoted 3 lines

Internal components switched to new enum & macro names.

I found remaining references for macros and structs. Enums look fine.

Thanks for catching these, I am updating patch to fix them.

Quoted 47 lines

With this patch applied:

# For structs:

$ for word in $(git show -- 'lib/ethdev/rte_ethdev.h' |awk '/^-struct
/ {print $2}' |sort -u); do git grep -w $word |grep -v '#define
'$word'[[:space:]]'; done
lib/ethdev/rte_ethdev.h:    struct rte_fdir_conf fdir_conf; /**< FDIR
configuration. DEPRECATED */
lib/ethdev/rte_ethdev.h:    struct rte_intr_conf intr_conf; /**<
Interrupt mode configuration. */

# Enums look fine:

$ for word in $(git show -- 'lib/ethdev/rte_ethdev.h' |awk '/^-enum /
{print $2}' |sort -u); do git grep -w $word |grep -v '#define
'$word'[[:space:]]'; done
$ for word in $(git show -- 'lib/ethdev/rte_ethdev.h' |awk
'/^-\t(RTE|ETH)_[^ ,]*,/ {print $2}' |sort -u); do word=${word%%,};
git grep -w $word |grep -v '#define '$word'[[:space:]]'; done
$ for word in $(git show -- 'lib/ethdev/rte_ethdev.h' |awk
'/^-\t(RTE|ETH)_[^ ,]* = / {print $2}' |sort -u); do git grep -w $word
|grep -v '#define '$word'[[:space:]]'; done

# For macros:

$ for word in $(git show -- 'lib/ethdev/rte_ethdev.h' |awk '/^-#define
/ {print $2}' |sort -u); do git grep -w $word |grep -v '#define
'$word'[[:space:]]' && echo; done
doc/guides/rel_notes/release_18_11.rst:  To request keeping CRC,
application should set ``DEV_RX_OFFLOAD_KEEP_CRC``

doc/guides/rel_notes/release_19_11.rst: * Added new Rx offload flag ``DEV_RX_OFFLOAD_RSS_HASH`` which can be used to

lib/ethdev/rte_ethdev.h:    } tc_rxq[ETH_MAX_VMDQ_POOL][ETH_DCB_NUM_TCS];
lib/ethdev/rte_ethdev.h:    } tc_txq[ETH_MAX_VMDQ_POOL][ETH_DCB_NUM_TCS];
lib/ethdev/rte_ethdev.h:    uint8_t tc_bws[ETH_DCB_NUM_TCS]; /**< TX

BW percentage for each TC */

lib/ethdev/rte_ethdev.h:    uint8_t dcb_tc[ETH_DCB_NUM_USER_PRIORITIES];
lib/ethdev/rte_ethdev.h:    uint8_t dcb_tc[ETH_DCB_NUM_USER_PRIORITIES];
lib/ethdev/rte_ethdev.h:    uint8_t dcb_tc[ETH_DCB_NUM_USER_PRIORITIES];
lib/ethdev/rte_ethdev.h:    uint8_t dcb_tc[ETH_DCB_NUM_USER_PRIORITIES];
lib/ethdev/rte_ethdev.h:    uint8_t

prio_tc[ETH_DCB_NUM_USER_PRIORITIES]; /**< Priority to tc */

[snipped the rest of the output] etc...

#15 lore raw

PATCH v3 1/1 ethdev: add namespace

In reply to Ferruh Yigit

Add 'RTE_ETH' namespace to all enums & macros in a backward compatible way. The macros for backward compatibility can be removed in next LTS. Also updated some struct names to have 'rte_eth' prefix.

All internal components switched to using new names.

Syntax fixed on lines that this patch touches.

---
Cc: David Marchand <[email protected]>

v2:
* Updated internal components
* Removed deprecation notice

v3:
* Updated missing macros / structs that David highlighted
* Added release notes update

---
 app/proc-info/main.c                          |   8 +-
 app/test-eventdev/test_perf_common.c          |   4 +-
 app/test-eventdev/test_pipeline_common.c      |  12 +-
 app/test-flow-perf/config.h                   |   2 +-
 app/test-pipeline/init.c                      |   8 +-
 app/test-pmd/cmdline.c                        | 298 +++---
 app/test-pmd/config.c                         | 202 ++--
 app/test-pmd/csumonly.c                       |  28 +-
 app/test-pmd/flowgen.c                        |   6 +-
 app/test-pmd/macfwd.c                         |   6 +-
 app/test-pmd/macswap_common.h                 |   6 +-
 app/test-pmd/parameters.c                     |  54 +-
 app/test-pmd/testpmd.c                        |  60 +-
 app/test-pmd/testpmd.h                        |   2 +-
 app/test-pmd/txonly.c                         |   6 +-
 app/test/test_ethdev_link.c                   |  68 +-
 app/test/test_event_eth_rx_adapter.c          |   4 +-
 app/test/test_kni.c                           |   2 +-
 app/test/test_link_bonding.c                  |   4 +-
 app/test/test_link_bonding_mode4.c            |   4 +-
 app/test/test_link_bonding_rssconf.c          |  28 +-
 app/test/test_pmd_perf.c                      |  12 +-
 app/test/virtual_pmd.c                        |  10 +-
 doc/guides/eventdevs/cnxk.rst                 |   2 +-
 doc/guides/eventdevs/octeontx2.rst            |   2 +-
 doc/guides/howto/debug_troubleshoot.rst       |   2 +-
 doc/guides/nics/bnxt.rst                      |  26 +-
 doc/guides/nics/enic.rst                      |   2 +-
 doc/guides/nics/features.rst                  | 116 +-
 doc/guides/nics/fm10k.rst                     |   6 +-
 doc/guides/nics/intel_vf.rst                  |  10 +-
 doc/guides/nics/ixgbe.rst                     |  12 +-
 doc/guides/nics/mlx5.rst                      |   4 +-
 doc/guides/nics/tap.rst                       |   2 +-
 .../generic_segmentation_offload_lib.rst      |   8 +-
 doc/guides/prog_guide/mbuf_lib.rst            |  18 +-
 doc/guides/prog_guide/poll_mode_drv.rst       |   8 +-
 doc/guides/prog_guide/rte_flow.rst            |  34 +-
 doc/guides/prog_guide/rte_security.rst        |   2 +-
 doc/guides/rel_notes/deprecation.rst          |  12 +-
 doc/guides/rel_notes/release_21_11.rst        |   3 +
 doc/guides/sample_app_ug/ipsec_secgw.rst      |   4 +-
 doc/guides/testpmd_app_ug/run_app.rst         |   2 +-
 drivers/bus/dpaa/include/process.h            |  16 +-
 drivers/common/cnxk/roc_npc.h                 |   2 +-
 drivers/net/af_packet/rte_eth_af_packet.c     |  16 +-
 drivers/net/af_xdp/rte_eth_af_xdp.c           |  12 +-
 drivers/net/ark/ark_ethdev.c                  |  16 +-
 drivers/net/atlantic/atl_ethdev.c             |  90 +-
 drivers/net/atlantic/atl_ethdev.h             |  18 +-
 drivers/net/atlantic/atl_rxtx.c               |   6 +-
 drivers/net/avp/avp_ethdev.c                  |  26 +-
 drivers/net/axgbe/axgbe_dev.c                 |   6 +-
 drivers/net/axgbe/axgbe_ethdev.c              | 110 +-
 drivers/net/axgbe/axgbe_ethdev.h              |  12 +-
 drivers/net/axgbe/axgbe_mdio.c                |   2 +-
 drivers/net/axgbe/axgbe_rxtx.c                |   6 +-
 drivers/net/bnx2x/bnx2x_ethdev.c              |  16 +-
 drivers/net/bnxt/bnxt.h                       |  68 +-
 drivers/net/bnxt/bnxt_ethdev.c                | 178 ++--
 drivers/net/bnxt/bnxt_flow.c                  |   4 +-
 drivers/net/bnxt/bnxt_hwrm.c                  | 112 +-
 drivers/net/bnxt/bnxt_reps.c                  |   2 +-
 drivers/net/bnxt/bnxt_ring.c                  |   4 +-
 drivers/net/bnxt/bnxt_rxq.c                   |  28 +-
 drivers/net/bnxt/bnxt_rxr.c                   |   4 +-
 drivers/net/bnxt/bnxt_rxtx_vec_avx2.c         |   2 +-
 drivers/net/bnxt/bnxt_rxtx_vec_common.h       |   2 +-
 drivers/net/bnxt/bnxt_rxtx_vec_neon.c         |   2 +-
 drivers/net/bnxt/bnxt_rxtx_vec_sse.c          |   2 +-
 drivers/net/bnxt/bnxt_txr.c                   |   4 +-
 drivers/net/bnxt/bnxt_vnic.c                  |  30 +-
 drivers/net/bnxt/rte_pmd_bnxt.c               |   8 +-
 drivers/net/bonding/eth_bond_private.h        |   4 +-
 drivers/net/bonding/rte_eth_bond_8023ad.c     |  16 +-
 drivers/net/bonding/rte_eth_bond_api.c        |   6 +-
 drivers/net/bonding/rte_eth_bond_pmd.c        |  56 +-
 drivers/net/cnxk/cn10k_ethdev.c               |  38 +-
 drivers/net/cnxk/cn10k_rx.c                   |   4 +-
 drivers/net/cnxk/cn10k_tx.c                   |   4 +-
 drivers/net/cnxk/cn9k_ethdev.c                |  56 +-
 drivers/net/cnxk/cn9k_rx.c                    |   4 +-
 drivers/net/cnxk/cn9k_tx.c                    |   4 +-
 drivers/net/cnxk/cnxk_ethdev.c                |  84 +-
 drivers/net/cnxk/cnxk_ethdev.h                |  49 +-
 drivers/net/cnxk/cnxk_ethdev_devargs.c        |   6 +-
 drivers/net/cnxk/cnxk_ethdev_ops.c            | 112 +-
 drivers/net/cnxk/cnxk_link.c                  |  14 +-
 drivers/net/cnxk/cnxk_ptp.c                   |   4 +-
 drivers/net/cnxk/cnxk_rte_flow.c              |   2 +-
 drivers/net/cxgbe/cxgbe.h                     |  48 +-
 drivers/net/cxgbe/cxgbe_ethdev.c              |  50 +-
 drivers/net/cxgbe/cxgbe_main.c                |  12 +-
 drivers/net/cxgbe/sge.c                       |   2 +-
 drivers/net/dpaa/dpaa_ethdev.c                | 190 ++--
 drivers/net/dpaa/dpaa_ethdev.h                |  10 +-
 drivers/net/dpaa/dpaa_flow.c                  |  32 +-
 drivers/net/dpaa2/base/dpaa2_hw_dpni.c        |  34 +-
 drivers/net/dpaa2/dpaa2_ethdev.c              | 148 +--
 drivers/net/dpaa2/dpaa2_ethdev.h              |  12 +-
 drivers/net/dpaa2/dpaa2_rxtx.c                |   8 +-
 drivers/net/e1000/e1000_ethdev.h              |  18 +-
 drivers/net/e1000/em_ethdev.c                 |  68 +-
 drivers/net/e1000/em_rxtx.c                   |  48 +-
 drivers/net/e1000/igb_ethdev.c                | 166 +--
 drivers/net/e1000/igb_pf.c                    |   2 +-
 drivers/net/e1000/igb_rxtx.c                  | 120 +--
 drivers/net/ena/ena_ethdev.c                  |  70 +-
 drivers/net/ena/ena_ethdev.h                  |   4 +-
 drivers/net/ena/ena_rss.c                     |  76 +-
 drivers/net/enetc/enetc_ethdev.c              |  38 +-
 drivers/net/enic/enic.h                       |   2 +-
 drivers/net/enic/enic_ethdev.c                |  88 +-
 drivers/net/enic/enic_main.c                  |  40 +-
 drivers/net/enic/enic_res.c                   |  52 +-
 drivers/net/failsafe/failsafe.c               |   8 +-
 drivers/net/failsafe/failsafe_intr.c          |   4 +-
 drivers/net/failsafe/failsafe_ops.c           |  82 +-
 drivers/net/fm10k/fm10k.h                     |   4 +-
 drivers/net/fm10k/fm10k_ethdev.c              | 148 +--
 drivers/net/fm10k/fm10k_rxtx_vec.c            |   6 +-
 drivers/net/hinic/base/hinic_pmd_hwdev.c      |  22 +-
 drivers/net/hinic/hinic_pmd_ethdev.c          | 142 +--
 drivers/net/hinic/hinic_pmd_rx.c              |  36 +-
 drivers/net/hinic/hinic_pmd_rx.h              |  22 +-
 drivers/net/hns3/hns3_dcb.c                   |  14 +-
 drivers/net/hns3/hns3_ethdev.c                | 360 +++----
 drivers/net/hns3/hns3_ethdev.h                |  12 +-
 drivers/net/hns3/hns3_ethdev_vf.c             | 108 +-
 drivers/net/hns3/hns3_flow.c                  |   6 +-
 drivers/net/hns3/hns3_ptp.c                   |   2 +-
 drivers/net/hns3/hns3_rss.c                   | 108 +-
 drivers/net/hns3/hns3_rss.h                   |  28 +-
 drivers/net/hns3/hns3_rxtx.c                  |  30 +-
 drivers/net/hns3/hns3_rxtx.h                  |   2 +-
 drivers/net/hns3/hns3_rxtx_vec.c              |  10 +-
 drivers/net/i40e/i40e_ethdev.c                | 278 ++---
 drivers/net/i40e/i40e_ethdev.h                |  24 +-
 drivers/net/i40e/i40e_ethdev_vf.c             | 118 +--
 drivers/net/i40e/i40e_flow.c                  |   2 +-
 drivers/net/i40e/i40e_hash.c                  | 156 +--
 drivers/net/i40e/i40e_pf.c                    |  14 +-
 drivers/net/i40e/i40e_rxtx.c                  |  10 +-
 drivers/net/i40e/i40e_rxtx.h                  |   4 +-
 drivers/net/i40e/i40e_rxtx_vec_avx512.c       |   2 +-
 drivers/net/i40e/i40e_rxtx_vec_common.h       |   8 +-
 drivers/net/i40e/i40e_vf_representor.c        |  48 +-
 drivers/net/iavf/iavf.h                       |  24 +-
 drivers/net/iavf/iavf_ethdev.c                | 186 ++--
 drivers/net/iavf/iavf_hash.c                  | 300 +++---
 drivers/net/iavf/iavf_rxtx.c                  |   2 +-
 drivers/net/iavf/iavf_rxtx.h                  |  24 +-
 drivers/net/iavf/iavf_rxtx_vec_avx2.c         |   4 +-
 drivers/net/iavf/iavf_rxtx_vec_avx512.c       |   6 +-
 drivers/net/iavf/iavf_rxtx_vec_sse.c          |   2 +-
 drivers/net/ice/ice_dcf.c                     |   2 +-
 drivers/net/ice/ice_dcf_ethdev.c              |  90 +-
 drivers/net/ice/ice_dcf_vf_representor.c      |  58 +-
 drivers/net/ice/ice_ethdev.c                  | 190 ++--
 drivers/net/ice/ice_ethdev.h                  |  26 +-
 drivers/net/ice/ice_hash.c                    | 268 ++---
 drivers/net/ice/ice_rxtx.c                    |   8 +-
 drivers/net/ice/ice_rxtx_vec_avx2.c           |   2 +-
 drivers/net/ice/ice_rxtx_vec_avx512.c         |   4 +-
 drivers/net/ice/ice_rxtx_vec_common.h         |  26 +-
 drivers/net/ice/ice_rxtx_vec_sse.c            |   2 +-
 drivers/net/igc/igc_ethdev.c                  | 146 +--
 drivers/net/igc/igc_ethdev.h                  |  56 +-
 drivers/net/igc/igc_txrx.c                    |  50 +-
 drivers/net/ionic/ionic_ethdev.c              | 140 +--
 drivers/net/ionic/ionic_ethdev.h              |  12 +-
 drivers/net/ionic/ionic_lif.c                 |  36 +-
 drivers/net/ionic/ionic_rxtx.c                |  10 +-
 drivers/net/ipn3ke/ipn3ke_representor.c       |  70 +-
 drivers/net/ixgbe/ixgbe_ethdev.c              | 313 +++---
 drivers/net/ixgbe/ixgbe_ethdev.h              |  18 +-
 drivers/net/ixgbe/ixgbe_fdir.c                |  24 +-
 drivers/net/ixgbe/ixgbe_flow.c                |   2 +-
 drivers/net/ixgbe/ixgbe_ipsec.c               |  12 +-
 drivers/net/ixgbe/ixgbe_pf.c                  |  38 +-
 drivers/net/ixgbe/ixgbe_rxtx.c                | 253 +++--
 drivers/net/ixgbe/ixgbe_rxtx.h                |   4 +-
 drivers/net/ixgbe/ixgbe_rxtx_vec_common.h     |   2 +-
 drivers/net/ixgbe/ixgbe_tm.c                  |  16 +-
 drivers/net/ixgbe/ixgbe_vf_representor.c      |  16 +-
 drivers/net/ixgbe/rte_pmd_ixgbe.c             |  14 +-
 drivers/net/ixgbe/rte_pmd_ixgbe.h             |   4 +-
 drivers/net/kni/rte_eth_kni.c                 |   8 +-
 drivers/net/liquidio/lio_ethdev.c             | 118 +--
 drivers/net/memif/memif_socket.c              |   2 +-
 drivers/net/memif/rte_eth_memif.c             |  14 +-
 drivers/net/mlx4/mlx4_ethdev.c                |  32 +-
 drivers/net/mlx4/mlx4_flow.c                  |  30 +-
 drivers/net/mlx4/mlx4_intr.c                  |   8 +-
 drivers/net/mlx4/mlx4_rxq.c                   |  20 +-
 drivers/net/mlx4/mlx4_txq.c                   |  24 +-
 drivers/net/mlx5/linux/mlx5_ethdev_os.c       |  54 +-
 drivers/net/mlx5/linux/mlx5_os.c              |   6 +-
 drivers/net/mlx5/mlx5.c                       |   4 +-
 drivers/net/mlx5/mlx5.h                       |   2 +-
 drivers/net/mlx5/mlx5_defs.h                  |   6 +-
 drivers/net/mlx5/mlx5_ethdev.c                |   6 +-
 drivers/net/mlx5/mlx5_flow.c                  |  54 +-
 drivers/net/mlx5/mlx5_flow.h                  |  12 +-
 drivers/net/mlx5/mlx5_flow_dv.c               |  44 +-
 drivers/net/mlx5/mlx5_flow_verbs.c            |   4 +-
 drivers/net/mlx5/mlx5_rss.c                   |  10 +-
 drivers/net/mlx5/mlx5_rxq.c                   |  42 +-
 drivers/net/mlx5/mlx5_rxtx_vec.h              |   8 +-
 drivers/net/mlx5/mlx5_tx.c                    |  30 +-
 drivers/net/mlx5/mlx5_txq.c                   |  52 +-
 drivers/net/mlx5/mlx5_vlan.c                  |   4 +-
 drivers/net/mlx5/windows/mlx5_os.c            |   4 +-
 drivers/net/mvneta/mvneta_ethdev.c            |  34 +-
 drivers/net/mvneta/mvneta_ethdev.h            |  12 +-
 drivers/net/mvneta/mvneta_rxtx.c              |   2 +-
 drivers/net/mvpp2/mrvl_ethdev.c               | 116 +-
 drivers/net/netvsc/hn_ethdev.c                |  70 +-
 drivers/net/netvsc/hn_rndis.c                 |  50 +-
 drivers/net/nfb/nfb_ethdev.c                  |  20 +-
 drivers/net/nfb/nfb_rx.c                      |   2 +-
 drivers/net/nfp/nfp_common.c                  | 130 +--
 drivers/net/nfp/nfp_ethdev.c                  |   2 +-
 drivers/net/nfp/nfp_ethdev_vf.c               |   2 +-
 drivers/net/ngbe/ngbe_ethdev.c                |  50 +-
 drivers/net/null/rte_eth_null.c               |  28 +-
 drivers/net/octeontx/octeontx_ethdev.c        |  78 +-
 drivers/net/octeontx/octeontx_ethdev.h        |  32 +-
 drivers/net/octeontx/octeontx_ethdev_ops.c    |  26 +-
 drivers/net/octeontx2/otx2_ethdev.c           |  96 +-
 drivers/net/octeontx2/otx2_ethdev.h           |  66 +-
 drivers/net/octeontx2/otx2_ethdev_devargs.c   |  12 +-
 drivers/net/octeontx2/otx2_ethdev_ops.c       |  18 +-
 drivers/net/octeontx2/otx2_ethdev_sec.c       |   8 +-
 drivers/net/octeontx2/otx2_flow.c             |   2 +-
 drivers/net/octeontx2/otx2_flow_ctrl.c        |  36 +-
 drivers/net/octeontx2/otx2_flow_parse.c       |   4 +-
 drivers/net/octeontx2/otx2_link.c             |  40 +-
 drivers/net/octeontx2/otx2_mcast.c            |   2 +-
 drivers/net/octeontx2/otx2_ptp.c              |   4 +-
 drivers/net/octeontx2/otx2_rss.c              |  70 +-
 drivers/net/octeontx2/otx2_rx.c               |   4 +-
 drivers/net/octeontx2/otx2_tx.c               |   2 +-
 drivers/net/octeontx2/otx2_vlan.c             |  42 +-
 drivers/net/octeontx_ep/otx_ep_ethdev.c       |   8 +-
 drivers/net/octeontx_ep/otx_ep_rxtx.c         |   8 +-
 drivers/net/pcap/pcap_ethdev.c                |  12 +-
 drivers/net/pfe/pfe_ethdev.c                  |  18 +-
 drivers/net/qede/base/mcp_public.h            |   4 +-
 drivers/net/qede/qede_ethdev.c                | 152 +--
 drivers/net/qede/qede_filter.c                |  10 +-
 drivers/net/qede/qede_rxtx.c                  |   2 +-
 drivers/net/qede/qede_rxtx.h                  |  16 +-
 drivers/net/ring/rte_eth_ring.c               |  20 +-
 drivers/net/sfc/sfc.c                         |  30 +-
 drivers/net/sfc/sfc_ef100_rx.c                |  10 +-
 drivers/net/sfc/sfc_ef100_tx.c                |  20 +-
 drivers/net/sfc/sfc_ef10_essb_rx.c            |   4 +-
 drivers/net/sfc/sfc_ef10_rx.c                 |   8 +-
 drivers/net/sfc/sfc_ef10_tx.c                 |  32 +-
 drivers/net/sfc/sfc_ethdev.c                  |  52 +-
 drivers/net/sfc/sfc_flow.c                    |   2 +-
 drivers/net/sfc/sfc_port.c                    |  54 +-
 drivers/net/sfc/sfc_rx.c                      |  52 +-
 drivers/net/sfc/sfc_tx.c                      |  50 +-
 drivers/net/softnic/rte_eth_softnic.c         |  12 +-
 drivers/net/szedata2/rte_eth_szedata2.c       |  14 +-
 drivers/net/tap/rte_eth_tap.c                 | 104 +-
 drivers/net/tap/tap_rss.h                     |   2 +-
 drivers/net/thunderx/nicvf_ethdev.c           | 108 +-
 drivers/net/thunderx/nicvf_ethdev.h           |  42 +-
 drivers/net/txgbe/txgbe_ethdev.c              | 244 ++---
 drivers/net/txgbe/txgbe_ethdev.h              |  18 +-
 drivers/net/txgbe/txgbe_ethdev_vf.c           |  24 +-
 drivers/net/txgbe/txgbe_fdir.c                |  20 +-
 drivers/net/txgbe/txgbe_flow.c                |   2 +-
 drivers/net/txgbe/txgbe_ipsec.c               |  12 +-
 drivers/net/txgbe/txgbe_pf.c                  |  34 +-
 drivers/net/txgbe/txgbe_rxtx.c                | 312 +++---
 drivers/net/txgbe/txgbe_rxtx.h                |   4 +-
 drivers/net/txgbe/txgbe_tm.c                  |  16 +-
 drivers/net/vhost/rte_eth_vhost.c             |  16 +-
 drivers/net/virtio/virtio_ethdev.c            | 126 +--
 drivers/net/vmxnet3/vmxnet3_ethdev.c          |  74 +-
 drivers/net/vmxnet3/vmxnet3_ethdev.h          |  16 +-
 drivers/net/vmxnet3/vmxnet3_rxtx.c            |  16 +-
 examples/bbdev_app/main.c                     |   6 +-
 examples/bond/main.c                          |  14 +-
 examples/distributor/main.c                   |  12 +-
 examples/ethtool/ethtool-app/main.c           |   2 +-
 examples/ethtool/lib/rte_ethtool.c            |  18 +-
 .../pipeline_worker_generic.c                 |  16 +-
 .../eventdev_pipeline/pipeline_worker_tx.c    |  12 +-
 examples/flow_classify/flow_classify.c        |   4 +-
 examples/flow_filtering/main.c                |  16 +-
 examples/ioat/ioatfwd.c                       |   8 +-
 examples/ip_fragmentation/main.c              |  14 +-
 examples/ip_pipeline/link.c                   |  20 +-
 examples/ip_reassembly/main.c                 |  20 +-
 examples/ipsec-secgw/ipsec-secgw.c            |  34 +-
 examples/ipsec-secgw/sa.c                     |   8 +-
 examples/ipv4_multicast/main.c                |   8 +-
 examples/kni/main.c                           |  12 +-
 examples/l2fwd-crypto/main.c                  |  10 +-
 examples/l2fwd-event/l2fwd_common.c           |  10 +-
 examples/l2fwd-event/main.c                   |   2 +-
 examples/l2fwd-jobstats/main.c                |   8 +-
 examples/l2fwd-keepalive/main.c               |   8 +-
 examples/l2fwd/main.c                         |   8 +-
 examples/l3fwd-acl/main.c                     |  20 +-
 examples/l3fwd-graph/main.c                   |  16 +-
 examples/l3fwd-power/main.c                   |  18 +-
 examples/l3fwd/l3fwd_event.c                  |   4 +-
 examples/l3fwd/main.c                         |  20 +-
 examples/link_status_interrupt/main.c         |  10 +-
 .../client_server_mp/mp_server/init.c         |   4 +-
 examples/multi_process/symmetric_mp/main.c    |  14 +-
 examples/ntb/ntb_fwd.c                        |   6 +-
 examples/packet_ordering/main.c               |   4 +-
 .../performance-thread/l3fwd-thread/main.c    |  18 +-
 examples/pipeline/obj.c                       |  20 +-
 examples/ptpclient/ptpclient.c                |  10 +-
 examples/qos_meter/main.c                     |  16 +-
 examples/qos_sched/init.c                     |   6 +-
 examples/rxtx_callbacks/main.c                |   8 +-
 examples/server_node_efd/server/init.c        |   8 +-
 examples/skeleton/basicfwd.c                  |   4 +-
 examples/vhost/main.c                         |  28 +-
 examples/vm_power_manager/main.c              |   6 +-
 examples/vmdq/main.c                          |  20 +-
 examples/vmdq_dcb/main.c                      |  40 +-
 lib/ethdev/rte_ethdev.c                       | 193 ++--
 lib/ethdev/rte_ethdev.h                       | 997 +++++++++++-------
 lib/ethdev/rte_ethdev_core.h                  |   2 +-
 lib/ethdev/rte_flow.h                         |   2 +-
 lib/gso/rte_gso.c                             |  20 +-
 lib/gso/rte_gso.h                             |   4 +-
 lib/mbuf/rte_mbuf_core.h                      |   8 +-
 lib/mbuf/rte_mbuf_dyn.h                       |   2 +-
 339 files changed, 6728 insertions(+), 6500 deletions(-)
app/proc-info/main.c +4 -4
index a8e928fa9ff3..963b6aa5c589 100644
@@ -757,11 +757,11 @@ show_port(void)
 		}
 
 		ret = rte_eth_dev_flow_ctrl_get(i, &fc_conf);
-		if (ret == 0 && fc_conf.mode != RTE_FC_NONE)  {
+		if (ret == 0 && fc_conf.mode != RTE_ETH_FC_NONE)  {
 			printf("\t  -- flow control mode %s%s high %u low %u pause %u%s%s\n",
-			       fc_conf.mode == RTE_FC_RX_PAUSE ? "rx " :
-			       fc_conf.mode == RTE_FC_TX_PAUSE ? "tx " :
-			       fc_conf.mode == RTE_FC_FULL ? "full" : "???",
+			       fc_conf.mode == RTE_ETH_FC_RX_PAUSE ? "rx " :
+			       fc_conf.mode == RTE_ETH_FC_TX_PAUSE ? "tx " :
+			       fc_conf.mode == RTE_ETH_FC_FULL ? "full" : "???",
 			       fc_conf.autoneg ? " auto" : "",
 			       fc_conf.high_water,
 			       fc_conf.low_water,
app/test-eventdev/test_perf_common.c +2 -2
index cc100650c21e..41e92143121b 100644
@@ -668,14 +668,14 @@ perf_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 	struct test_perf *t = evt_test_priv(test);
 	struct rte_eth_conf port_conf = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_RSS,
+			.mq_mode = RTE_ETH_MQ_RX_RSS,
 			.max_rx_pkt_len = RTE_ETHER_MAX_LEN,
 			.split_hdr_size = 0,
 		},
 		.rx_adv_conf = {
 			.rss_conf = {
 				.rss_key = NULL,
-				.rss_hf = ETH_RSS_IP,
+				.rss_hf = RTE_ETH_RSS_IP,
 			},
 		},
 	};
app/test-eventdev/test_pipeline_common.c +6 -6
index 6ee530d4cdc9..96c8a5828364 100644
@@ -176,12 +176,12 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 	struct rte_eth_rxconf rx_conf;
 	struct rte_eth_conf port_conf = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_RSS,
+			.mq_mode = RTE_ETH_MQ_RX_RSS,
 		},
 		.rx_adv_conf = {
 			.rss_conf = {
 				.rss_key = NULL,
-				.rss_hf = ETH_RSS_IP,
+				.rss_hf = RTE_ETH_RSS_IP,
 			},
 		},
 	};
@@ -199,7 +199,7 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 
 	port_conf.rxmode.max_rx_pkt_len = opt->max_pkt_sz;
 	if (opt->max_pkt_sz > RTE_ETHER_MAX_LEN)
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_JUMBO_FRAME;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_JUMBO_FRAME;
 
 	t->internal_port = 1;
 	RTE_ETH_FOREACH_DEV(i) {
@@ -224,7 +224,7 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 
 		if (!(caps & RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT))
 			local_port_conf.rxmode.offloads |=
-				DEV_RX_OFFLOAD_RSS_HASH;
+				RTE_ETH_RX_OFFLOAD_RSS_HASH;
 
 		ret = rte_eth_dev_info_get(i, &dev_info);
 		if (ret != 0) {
@@ -234,9 +234,9 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 		}
 
 		/* Enable mbuf fast free if PMD has the capability. */
-		if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_MBUF_FAST_FREE)
+		if (dev_info.tx_offload_capa & RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE)
 			local_port_conf.txmode.offloads |=
-				DEV_TX_OFFLOAD_MBUF_FAST_FREE;
+				RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE;
 
 		rx_conf = dev_info.default_rxconf;
 		rx_conf.offloads = port_conf.rxmode.offloads;
app/test-flow-perf/config.h +1 -1
index a14d4e05e185..4249b6175b82 100644
@@ -5,7 +5,7 @@
 #define FLOW_ITEM_MASK(_x) (UINT64_C(1) << _x)
 #define FLOW_ACTION_MASK(_x) (UINT64_C(1) << _x)
 #define FLOW_ATTR_MASK(_x) (UINT64_C(1) << _x)
-#define GET_RSS_HF() (ETH_RSS_IP)
+#define GET_RSS_HF() (RTE_ETH_RSS_IP)
 
 /* Configuration */
 #define RXQ_NUM 4
app/test-pipeline/init.c +4 -4
index fe37d63730c6..c73801904103 100644
@@ -70,16 +70,16 @@ struct app_params app = {
 static struct rte_eth_conf port_conf = {
 	.rxmode = {
 		.split_hdr_size = 0,
-		.offloads = DEV_RX_OFFLOAD_CHECKSUM,
+		.offloads = RTE_ETH_RX_OFFLOAD_CHECKSUM,
 	},
 	.rx_adv_conf = {
 		.rss_conf = {
 			.rss_key = NULL,
-			.rss_hf = ETH_RSS_IP,
+			.rss_hf = RTE_ETH_RSS_IP,
 		},
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 };
 
@@ -178,7 +178,7 @@ app_ports_check_link(void)
 		RTE_LOG(INFO, USER1, "Port %u %s\n",
 			port,
 			link_status_text);
-		if (link.link_status == ETH_LINK_DOWN)
+		if (link.link_status == RTE_ETH_LINK_DOWN)
 			all_ports_up = 0;
 	}
 
app/test-pmd/cmdline.c +149 -149

644 lines not on this page · raw message

app/test-pmd/config.c +101 -101

360 lines not on this page · raw message

app/test-pmd/csumonly.c +14 -14
index 38cc256533b6..454a2d41c366 100644
@@ -485,7 +485,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info,
 		if (info->l4_proto == IPPROTO_TCP && tso_segsz) {
 			ol_flags |= PKT_TX_IP_CKSUM;
 		} else {
-			if (tx_offloads & DEV_TX_OFFLOAD_IPV4_CKSUM) {
+			if (tx_offloads & RTE_ETH_TX_OFFLOAD_IPV4_CKSUM) {
 				ol_flags |= PKT_TX_IP_CKSUM;
 			} else {
 				ipv4_hdr->hdr_checksum = 0;
@@ -502,7 +502,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info,
 		udp_hdr = (struct rte_udp_hdr *)((char *)l3_hdr + info->l3_len);
 		/* do not recalculate udp cksum if it was 0 */
 		if (udp_hdr->dgram_cksum != 0) {
-			if (tx_offloads & DEV_TX_OFFLOAD_UDP_CKSUM) {
+			if (tx_offloads & RTE_ETH_TX_OFFLOAD_UDP_CKSUM) {
 				ol_flags |= PKT_TX_UDP_CKSUM;
 			} else {
 				udp_hdr->dgram_cksum = 0;
@@ -517,7 +517,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info,
 		tcp_hdr = (struct rte_tcp_hdr *)((char *)l3_hdr + info->l3_len);
 		if (tso_segsz)
 			ol_flags |= PKT_TX_TCP_SEG;
-		else if (tx_offloads & DEV_TX_OFFLOAD_TCP_CKSUM) {
+		else if (tx_offloads & RTE_ETH_TX_OFFLOAD_TCP_CKSUM) {
 			ol_flags |= PKT_TX_TCP_CKSUM;
 		} else {
 			tcp_hdr->cksum = 0;
@@ -532,7 +532,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info,
 			((char *)l3_hdr + info->l3_len);
 		/* sctp payload must be a multiple of 4 to be
 		 * offloaded */
-		if ((tx_offloads & DEV_TX_OFFLOAD_SCTP_CKSUM) &&
+		if ((tx_offloads & RTE_ETH_TX_OFFLOAD_SCTP_CKSUM) &&
 			((ipv4_hdr->total_length & 0x3) == 0)) {
 			ol_flags |= PKT_TX_SCTP_CKSUM;
 		} else {
@@ -559,7 +559,7 @@ process_outer_cksums(void *outer_l3_hdr, struct testpmd_offload_info *info,
 		ipv4_hdr->hdr_checksum = 0;
 		ol_flags |= PKT_TX_OUTER_IPV4;
 
-		if (tx_offloads	& DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM)
+		if (tx_offloads	& RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM)
 			ol_flags |= PKT_TX_OUTER_IP_CKSUM;
 		else
 			ipv4_hdr->hdr_checksum = rte_ipv4_cksum(ipv4_hdr);
@@ -576,7 +576,7 @@ process_outer_cksums(void *outer_l3_hdr, struct testpmd_offload_info *info,
 		ol_flags |= PKT_TX_TCP_SEG;
 
 	/* Skip SW outer UDP checksum generation if HW supports it */
-	if (tx_offloads & DEV_TX_OFFLOAD_OUTER_UDP_CKSUM) {
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM) {
 		if (info->outer_ethertype == _htons(RTE_ETHER_TYPE_IPV4))
 			udp_hdr->dgram_cksum
 				= rte_ipv4_phdr_cksum(ipv4_hdr, ol_flags);
@@ -959,9 +959,9 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
 		if (info.is_tunnel == 1) {
 			if (info.tunnel_tso_segsz ||
 			    (tx_offloads &
-			     DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM) ||
+			     RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM) ||
 			    (tx_offloads &
-			     DEV_TX_OFFLOAD_OUTER_UDP_CKSUM)) {
+			     RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM)) {
 				m->outer_l2_len = info.outer_l2_len;
 				m->outer_l3_len = info.outer_l3_len;
 				m->l2_len = info.l2_len;
@@ -1022,19 +1022,19 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
 					rte_be_to_cpu_16(info.outer_ethertype),
 					info.outer_l3_len);
 			/* dump tx packet info */
-			if ((tx_offloads & (DEV_TX_OFFLOAD_IPV4_CKSUM |
-					    DEV_TX_OFFLOAD_UDP_CKSUM |
-					    DEV_TX_OFFLOAD_TCP_CKSUM |
-					    DEV_TX_OFFLOAD_SCTP_CKSUM)) ||
+			if ((tx_offloads & (RTE_ETH_TX_OFFLOAD_IPV4_CKSUM |
+					    RTE_ETH_TX_OFFLOAD_UDP_CKSUM |
+					    RTE_ETH_TX_OFFLOAD_TCP_CKSUM |
+					    RTE_ETH_TX_OFFLOAD_SCTP_CKSUM)) ||
 				info.tso_segsz != 0)
 				printf("tx: m->l2_len=%d m->l3_len=%d "
 					"m->l4_len=%d\n",
 					m->l2_len, m->l3_len, m->l4_len);
 			if (info.is_tunnel == 1) {
 				if ((tx_offloads &
-				    DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM) ||
+				    RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM) ||
 				    (tx_offloads &
-				    DEV_TX_OFFLOAD_OUTER_UDP_CKSUM) ||
+				    RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM) ||
 				    (tx_ol_flags & PKT_TX_OUTER_IPV6))
 					printf("tx: m->outer_l2_len=%d "
 						"m->outer_l3_len=%d\n",
app/test-pmd/flowgen.c +3 -3
index 9348618d0f8d..7d658d002cb6 100644
@@ -100,11 +100,11 @@ pkt_burst_flow_gen(struct fwd_stream *fs)
 	vlan_tci_outer = ports[fs->tx_port].tx_vlan_id_outer;
 
 	tx_offloads = ports[fs->tx_port].dev_conf.txmode.offloads;
-	if (tx_offloads	& DEV_TX_OFFLOAD_VLAN_INSERT)
+	if (tx_offloads	& RTE_ETH_TX_OFFLOAD_VLAN_INSERT)
 		ol_flags |= PKT_TX_VLAN_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_QINQ_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_QINQ_INSERT)
 		ol_flags |= PKT_TX_QINQ_PKT;
-	if (tx_offloads	& DEV_TX_OFFLOAD_MACSEC_INSERT)
+	if (tx_offloads	& RTE_ETH_TX_OFFLOAD_MACSEC_INSERT)
 		ol_flags |= PKT_TX_MACSEC;
 
 	for (nb_pkt = 0; nb_pkt < nb_pkt_per_burst; nb_pkt++) {
app/test-pmd/macfwd.c +3 -3
index 0568ea794d48..1d878ba0a694 100644
@@ -72,11 +72,11 @@ pkt_burst_mac_forward(struct fwd_stream *fs)
 	fs->rx_packets += nb_rx;
 	txp = &ports[fs->tx_port];
 	tx_offloads = txp->dev_conf.txmode.offloads;
-	if (tx_offloads	& DEV_TX_OFFLOAD_VLAN_INSERT)
+	if (tx_offloads	& RTE_ETH_TX_OFFLOAD_VLAN_INSERT)
 		ol_flags = PKT_TX_VLAN_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_QINQ_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_QINQ_INSERT)
 		ol_flags |= PKT_TX_QINQ_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_MACSEC_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_MACSEC_INSERT)
 		ol_flags |= PKT_TX_MACSEC;
 	for (i = 0; i < nb_rx; i++) {
 		if (likely(i < nb_rx - 1))
app/test-pmd/macswap_common.h +3 -3
index 7e9a3590a436..7ade9a686b7c 100644
@@ -10,11 +10,11 @@ ol_flags_init(uint64_t tx_offload)
 {
 	uint64_t ol_flags = 0;
 
-	ol_flags |= (tx_offload & DEV_TX_OFFLOAD_VLAN_INSERT) ?
+	ol_flags |= (tx_offload & RTE_ETH_TX_OFFLOAD_VLAN_INSERT) ?
 			PKT_TX_VLAN : 0;
-	ol_flags |= (tx_offload & DEV_TX_OFFLOAD_QINQ_INSERT) ?
+	ol_flags |= (tx_offload & RTE_ETH_TX_OFFLOAD_QINQ_INSERT) ?
 			PKT_TX_QINQ : 0;
-	ol_flags |= (tx_offload & DEV_TX_OFFLOAD_MACSEC_INSERT) ?
+	ol_flags |= (tx_offload & RTE_ETH_TX_OFFLOAD_MACSEC_INSERT) ?
 			PKT_TX_MACSEC : 0;
 
 	return ol_flags;
app/test-pmd/parameters.c +27 -27

128 lines not on this page · raw message

app/test-pmd/testpmd.c +30 -30

183 lines not on this page · raw message

app/test-pmd/testpmd.h +1 -1
index 16a3598e48c5..e4ad8a6a7cff 100644
@@ -446,7 +446,7 @@ extern lcoreid_t bitrate_lcore_id;
 extern uint8_t bitrate_enabled;
 #endif
 
-extern struct rte_fdir_conf fdir_conf;
+extern struct rte_eth_fdir_conf fdir_conf;
 
 /*
  * Configuration of packet segments used to scatter received packets
app/test-pmd/txonly.c +3 -3
index aed820f5d340..5409d7a0deb0 100644
@@ -352,11 +352,11 @@ pkt_burst_transmit(struct fwd_stream *fs)
 	tx_offloads = txp->dev_conf.txmode.offloads;
 	vlan_tci = txp->tx_vlan_id;
 	vlan_tci_outer = txp->tx_vlan_id_outer;
-	if (tx_offloads	& DEV_TX_OFFLOAD_VLAN_INSERT)
+	if (tx_offloads	& RTE_ETH_TX_OFFLOAD_VLAN_INSERT)
 		ol_flags = PKT_TX_VLAN_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_QINQ_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_QINQ_INSERT)
 		ol_flags |= PKT_TX_QINQ_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_MACSEC_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_MACSEC_INSERT)
 		ol_flags |= PKT_TX_MACSEC;
 
 	/*
app/test/test_ethdev_link.c +34 -34

116 lines not on this page · raw message

app/test/test_event_eth_rx_adapter.c +2 -2
index 9198767b4194..bb7917010d62 100644
@@ -106,7 +106,7 @@ port_init_rx_intr(uint16_t port, struct rte_mempool *mp)
 {
 	static const struct rte_eth_conf port_conf_default = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_NONE,
+			.mq_mode = RTE_ETH_MQ_RX_NONE,
 		},
 		.intr_conf = {
 			.rxq = 1,
@@ -121,7 +121,7 @@ port_init(uint16_t port, struct rte_mempool *mp)
 {
 	static const struct rte_eth_conf port_conf_default = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_NONE,
+			.mq_mode = RTE_ETH_MQ_RX_NONE,
 		},
 	};
 
app/test/test_kni.c +1 -1
index 96733554b6c4..40ab0d5c4ca4 100644
@@ -74,7 +74,7 @@ static const struct rte_eth_txconf tx_conf = {
 
 static const struct rte_eth_conf port_conf = {
 	.txmode = {
-		.mq_mode = ETH_DCB_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 };
 
app/test/test_link_bonding.c +2 -2
index 8a5c8310a8b4..23c024aa1b0c 100644
@@ -134,12 +134,12 @@ static uint16_t vlan_id = 0x100;
 
 static struct rte_eth_conf default_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.split_hdr_size = 0,
 		.max_rx_pkt_len = RTE_ETHER_MAX_LEN,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 0,
 };
app/test/test_link_bonding_mode4.c +2 -2
index 2c835fa7adc7..1556f14d6921 100644
@@ -107,12 +107,12 @@ static struct link_bonding_unittest_params test_params  = {
 
 static struct rte_eth_conf default_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.max_rx_pkt_len = RTE_ETHER_MAX_LEN,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 0,
 };
app/test/test_link_bonding_rssconf.c +14 -14
index 5dac60ca1edd..cdf1c4fd259d 100644
@@ -52,7 +52,7 @@ struct slave_conf {
 
 	struct rte_eth_rss_conf rss_conf;
 	uint8_t rss_key[40];
-	struct rte_eth_rss_reta_entry64 reta_conf[512 / RTE_RETA_GROUP_SIZE];
+	struct rte_eth_rss_reta_entry64 reta_conf[512 / RTE_ETH_RETA_GROUP_SIZE];
 
 	uint8_t is_slave;
 	struct rte_ring *rxtx_queue[RXTX_QUEUE_COUNT];
@@ -61,7 +61,7 @@ struct slave_conf {
 struct link_bonding_rssconf_unittest_params {
 	uint8_t bond_port_id;
 	struct rte_eth_dev_info bond_dev_info;
-	struct rte_eth_rss_reta_entry64 bond_reta_conf[512 / RTE_RETA_GROUP_SIZE];
+	struct rte_eth_rss_reta_entry64 bond_reta_conf[512 / RTE_ETH_RETA_GROUP_SIZE];
 	struct slave_conf slave_ports[SLAVE_COUNT];
 
 	struct rte_mempool *mbuf_pool;
@@ -80,29 +80,29 @@ static struct link_bonding_rssconf_unittest_params test_params  = {
  */
 static struct rte_eth_conf default_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.max_rx_pkt_len = RTE_ETHER_MAX_LEN,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 0,
 };
 
 static struct rte_eth_conf rss_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_RSS,
+		.mq_mode = RTE_ETH_MQ_RX_RSS,
 		.max_rx_pkt_len = RTE_ETHER_MAX_LEN,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.rx_adv_conf = {
 		.rss_conf = {
 			.rss_key = NULL,
-			.rss_hf = ETH_RSS_IPV6,
+			.rss_hf = RTE_ETH_RSS_IPV6,
 		},
 	},
 	.lpbk_mode = 0,
@@ -209,13 +209,13 @@ bond_slaves(void)
 static int
 reta_set(uint16_t port_id, uint8_t value, int reta_size)
 {
-	struct rte_eth_rss_reta_entry64 reta_conf[512/RTE_RETA_GROUP_SIZE];
+	struct rte_eth_rss_reta_entry64 reta_conf[512/RTE_ETH_RETA_GROUP_SIZE];
 	int i, j;
 
-	for (i = 0; i < reta_size / RTE_RETA_GROUP_SIZE; i++) {
+	for (i = 0; i < reta_size / RTE_ETH_RETA_GROUP_SIZE; i++) {
 		/* select all fields to set */
 		reta_conf[i].mask = ~0LL;
-		for (j = 0; j < RTE_RETA_GROUP_SIZE; j++)
+		for (j = 0; j < RTE_ETH_RETA_GROUP_SIZE; j++)
 			reta_conf[i].reta[j] = value;
 	}
 
@@ -234,8 +234,8 @@ reta_check_synced(struct slave_conf *port)
 	for (i = 0; i < test_params.bond_dev_info.reta_size;
 			i++) {
 
-		int index = i / RTE_RETA_GROUP_SIZE;
-		int shift = i % RTE_RETA_GROUP_SIZE;
+		int index = i / RTE_ETH_RETA_GROUP_SIZE;
+		int shift = i % RTE_ETH_RETA_GROUP_SIZE;
 
 		if (port->reta_conf[index].reta[shift] !=
 				test_params.bond_reta_conf[index].reta[shift])
@@ -253,7 +253,7 @@ static int
 bond_reta_fetch(void) {
 	unsigned j;
 
-	for (j = 0; j < test_params.bond_dev_info.reta_size / RTE_RETA_GROUP_SIZE;
+	for (j = 0; j < test_params.bond_dev_info.reta_size / RTE_ETH_RETA_GROUP_SIZE;
 			j++)
 		test_params.bond_reta_conf[j].mask = ~0LL;
 
@@ -270,7 +270,7 @@ static int
 slave_reta_fetch(struct slave_conf *port) {
 	unsigned j;
 
-	for (j = 0; j < port->dev_info.reta_size / RTE_RETA_GROUP_SIZE; j++)
+	for (j = 0; j < port->dev_info.reta_size / RTE_ETH_RETA_GROUP_SIZE; j++)
 		port->reta_conf[j].mask = ~0LL;
 
 	TEST_ASSERT_SUCCESS(rte_eth_dev_rss_reta_query(port->port_id,
app/test/test_pmd_perf.c +6 -6
index 3a248d512c4a..da7b7ad1f7cc 100644
@@ -62,12 +62,12 @@ static struct rte_ether_addr ports_eth_addr[RTE_MAX_ETHPORTS];
 
 static struct rte_eth_conf port_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.max_rx_pkt_len = RTE_ETHER_MAX_LEN,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 1,  /* enable loopback */
 };
@@ -156,7 +156,7 @@ check_all_ports_link_status(uint16_t port_num, uint32_t port_mask)
 				continue;
 			}
 			/* clear all_ports_up flag if any link down */
-			if (link.link_status == ETH_LINK_DOWN) {
+			if (link.link_status == RTE_ETH_LINK_DOWN) {
 				all_ports_up = 0;
 				break;
 			}
@@ -823,7 +823,7 @@ test_set_rxtx_conf(cmdline_fixed_string_t mode)
 		/* bulk alloc rx, full-featured tx */
 		tx_conf.tx_rs_thresh = 32;
 		tx_conf.tx_free_thresh = 32;
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_CHECKSUM;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_CHECKSUM;
 		return 0;
 	} else if (!strcmp(mode, "hybrid")) {
 		/* bulk alloc rx, vector tx
@@ -832,13 +832,13 @@ test_set_rxtx_conf(cmdline_fixed_string_t mode)
 		 */
 		tx_conf.tx_rs_thresh = 32;
 		tx_conf.tx_free_thresh = 32;
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_CHECKSUM;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_CHECKSUM;
 		return 0;
 	} else if (!strcmp(mode, "full")) {
 		/* full feature rx,tx pair */
 		tx_conf.tx_rs_thresh = 32;
 		tx_conf.tx_free_thresh = 32;
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_SCATTER;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_SCATTER;
 		return 0;
 	}
 
app/test/virtual_pmd.c +5 -5
index 7036f401ed95..6eecfa385537 100644
@@ -53,7 +53,7 @@ static int  virtual_ethdev_stop(struct rte_eth_dev *eth_dev __rte_unused)
 	void *pkt = NULL;
 	struct virtual_ethdev_private *prv = eth_dev->data->dev_private;
 
-	eth_dev->data->dev_link.link_status = ETH_LINK_DOWN;
+	eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 	eth_dev->data->dev_started = 0;
 	while (rte_ring_dequeue(prv->rx_queue, &pkt) != -ENOENT)
 		rte_pktmbuf_free(pkt);
@@ -178,7 +178,7 @@ virtual_ethdev_link_update_success(struct rte_eth_dev *bonded_eth_dev,
 		int wait_to_complete __rte_unused)
 {
 	if (!bonded_eth_dev->data->dev_started)
-		bonded_eth_dev->data->dev_link.link_status = ETH_LINK_DOWN;
+		bonded_eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 
 	return 0;
 }
@@ -574,9 +574,9 @@ virtual_ethdev_create(const char *name, struct rte_ether_addr *mac_addr,
 	eth_dev->data->nb_rx_queues = (uint16_t)1;
 	eth_dev->data->nb_tx_queues = (uint16_t)1;
 
-	eth_dev->data->dev_link.link_status = ETH_LINK_DOWN;
-	eth_dev->data->dev_link.link_speed = ETH_SPEED_NUM_10G;
-	eth_dev->data->dev_link.link_duplex = ETH_LINK_FULL_DUPLEX;
+	eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
+	eth_dev->data->dev_link.link_speed = RTE_ETH_SPEED_NUM_10G;
+	eth_dev->data->dev_link.link_duplex = RTE_ETH_LINK_FULL_DUPLEX;
 
 	eth_dev->data->mac_addrs = rte_zmalloc(name, RTE_ETHER_ADDR_LEN, 0);
 	if (eth_dev->data->mac_addrs == NULL)
doc/guides/eventdevs/cnxk.rst +1 -1
index 53560d3830d7..1c0ea988f239 100644
@@ -42,7 +42,7 @@ Features of the OCTEON cnxk SSO PMD are:
 - HW managed packets enqueued from ethdev to eventdev exposed through event eth
   RX adapter.
 - N:1 ethernet device Rx queue to Event queue mapping.
-- Lockfree Tx from event eth Tx adapter using ``DEV_TX_OFFLOAD_MT_LOCKFREE``
+- Lockfree Tx from event eth Tx adapter using ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE``
   capability while maintaining receive packet order.
 - Full Rx/Tx offload support defined through ethdev queue configuration.
 - HW managed event vectorization on CN10K for packets enqueued from ethdev to
doc/guides/eventdevs/octeontx2.rst +1 -1
index 11fbebfcd243..0fa57abfa3e0 100644
@@ -35,7 +35,7 @@ Features of the OCTEON TX2 SSO PMD are:
 - HW managed packets enqueued from ethdev to eventdev exposed through event eth
   RX adapter.
 - N:1 ethernet device Rx queue to Event queue mapping.
-- Lockfree Tx from event eth Tx adapter using ``DEV_TX_OFFLOAD_MT_LOCKFREE``
+- Lockfree Tx from event eth Tx adapter using ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE``
   capability while maintaining receive packet order.
 - Full Rx/Tx offload support defined through ethdev queue config.
 
doc/guides/howto/debug_troubleshoot.rst +1 -1
index 457ac441429a..13f30e39363e 100644
@@ -71,7 +71,7 @@ RX Port and associated core :numref:`dtg_rx_rate`.
    * Identify if port Speed and Duplex is matching to desired values with
      ``rte_eth_link_get``.
 
-   * Check ``DEV_RX_OFFLOAD_JUMBO_FRAME`` is set with ``rte_eth_dev_info_get``.
+   * Check ``RTE_ETH_RX_OFFLOAD_JUMBO_FRAME`` is set with ``rte_eth_dev_info_get``.
 
    * Check promiscuous mode if the drops do not occur for unique MAC address
      with ``rte_eth_promiscuous_get``.
doc/guides/nics/bnxt.rst +13 -13
index e75f4fa9e3bc..77827e750195 100644
@@ -877,22 +877,22 @@ processing. This improved performance is derived from a number of optimizations:
     * TX: only the following reduced set of transmit offloads is supported in
       vector mode::
 
-       DEV_TX_OFFLOAD_MBUF_FAST_FREE
+       RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE
 
     * RX: only the following reduced set of receive offloads is supported in
       vector mode (note that jumbo MTU is allowed only when the MTU setting
-      does not require `DEV_RX_OFFLOAD_SCATTER` to be enabled)::
-
-       DEV_RX_OFFLOAD_VLAN_STRIP
-       DEV_RX_OFFLOAD_KEEP_CRC
-       DEV_RX_OFFLOAD_JUMBO_FRAME
-       DEV_RX_OFFLOAD_IPV4_CKSUM
-       DEV_RX_OFFLOAD_UDP_CKSUM
-       DEV_RX_OFFLOAD_TCP_CKSUM
-       DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM
-       DEV_RX_OFFLOAD_OUTER_UDP_CKSUM
-       DEV_RX_OFFLOAD_RSS_HASH
-       DEV_RX_OFFLOAD_VLAN_FILTER
+      does not require `RTE_ETH_RX_OFFLOAD_SCATTER` to be enabled)::
+
+       RTE_ETH_RX_OFFLOAD_VLAN_STRIP
+       RTE_ETH_RX_OFFLOAD_KEEP_CRC
+       RTE_ETH_RX_OFFLOAD_JUMBO_FRAME
+       RTE_ETH_RX_OFFLOAD_IPV4_CKSUM
+       RTE_ETH_RX_OFFLOAD_UDP_CKSUM
+       RTE_ETH_RX_OFFLOAD_TCP_CKSUM
+       RTE_ETH_RX_OFFLOAD_OUTER_IPV4_CKSUM
+       RTE_ETH_RX_OFFLOAD_OUTER_UDP_CKSUM
+       RTE_ETH_RX_OFFLOAD_RSS_HASH
+       RTE_ETH_RX_OFFLOAD_VLAN_FILTER
 
 The BNXT Vector PMD is enabled in DPDK builds by default. The decision to enable
 vector processing is made at run-time when the port is started; if no transmit
doc/guides/nics/enic.rst +1 -1
index 91bdcd065a95..0209730b904a 100644
@@ -432,7 +432,7 @@ Limitations
 .. code-block:: console
 
      vlan_offload = rte_eth_dev_get_vlan_offload(port);
-     vlan_offload |= ETH_VLAN_STRIP_OFFLOAD;
+     vlan_offload |= RTE_ETH_VLAN_STRIP_OFFLOAD;
      rte_eth_dev_set_vlan_offload(port, vlan_offload);
 
 Another alternative is modify the adapter's ingress VLAN rewrite mode so that
doc/guides/nics/features.rst +58 -58

309 lines not on this page · raw message

doc/guides/nics/fm10k.rst +3 -3
index 7b8ef0e7823d..3dff65d89b6d 100644
@@ -78,11 +78,11 @@ To enable via ``RX_OLFLAGS`` use ``RTE_LIBRTE_FM10K_RX_OLFLAGS_ENABLE=y``.
 To guarantee the constraint, the following capabilities in ``dev_conf.rxmode.offloads``
 will be checked:
 
-*   ``DEV_RX_OFFLOAD_VLAN_EXTEND``
+*   ``RTE_ETH_RX_OFFLOAD_VLAN_EXTEND``
 
-*   ``DEV_RX_OFFLOAD_CHECKSUM``
+*   ``RTE_ETH_RX_OFFLOAD_CHECKSUM``
 
-*   ``DEV_RX_OFFLOAD_HEADER_SPLIT``
+*   ``RTE_ETH_RX_OFFLOAD_HEADER_SPLIT``
 
 *   ``fdir_conf->mode``
 
doc/guides/nics/intel_vf.rst +5 -5
index fcea8151bf3c..e60e3b2a761d 100644
@@ -222,21 +222,21 @@ For example,
     *   If the max number of VFs (max_vfs) is set in the range of 1 to 32:
 
         If the number of Rx queues is specified as 4 (``--rxq=4`` in testpmd), then there are totally 32
-        pools (ETH_32_POOLS), and each VF could have 4 Rx queues;
+        pools (RTE_ETH_32_POOLS), and each VF could have 4 Rx queues;
 
         If the number of Rx queues is specified as 2 (``--rxq=2`` in testpmd), then there are totally 32
-        pools (ETH_32_POOLS), and each VF could have 2 Rx queues;
+        pools (RTE_ETH_32_POOLS), and each VF could have 2 Rx queues;
 
     *   If the max number of VFs (max_vfs) is in the range of 33 to 64:
 
         If the number of Rx queues in specified as 4 (``--rxq=4`` in testpmd), then error message is expected
         as ``rxq`` is not correct at this case;
 
-        If the number of rxq is 2 (``--rxq=2`` in testpmd), then there is totally 64 pools (ETH_64_POOLS),
+        If the number of rxq is 2 (``--rxq=2`` in testpmd), then there is totally 64 pools (RTE_ETH_64_POOLS),
         and each VF have 2 Rx queues;
 
-    On host, to enable VF RSS functionality, rx mq mode should be set as ETH_MQ_RX_VMDQ_RSS
-    or ETH_MQ_RX_RSS mode, and SRIOV mode should be activated (max_vfs >= 1).
+    On host, to enable VF RSS functionality, rx mq mode should be set as RTE_ETH_MQ_RX_VMDQ_RSS
+    or RTE_ETH_MQ_RX_RSS mode, and SRIOV mode should be activated (max_vfs >= 1).
     It also needs config VF RSS information like hash function, RSS key, RSS key length.
 
 .. note::
doc/guides/nics/ixgbe.rst +6 -6
index b82e63438285..24fbccc982f5 100644
@@ -69,13 +69,13 @@ Other features are supported using optional MACRO configuration. They include:
 
 To guarantee the constraint, capabilities in dev_conf.rxmode.offloads will be checked:
 
-*   DEV_RX_OFFLOAD_VLAN_STRIP
+*   RTE_ETH_RX_OFFLOAD_VLAN_STRIP
 
-*   DEV_RX_OFFLOAD_VLAN_EXTEND
+*   RTE_ETH_RX_OFFLOAD_VLAN_EXTEND
 
-*   DEV_RX_OFFLOAD_CHECKSUM
+*   RTE_ETH_RX_OFFLOAD_CHECKSUM
 
-*   DEV_RX_OFFLOAD_HEADER_SPLIT
+*   RTE_ETH_RX_OFFLOAD_HEADER_SPLIT
 
 *   dev_conf
 
@@ -143,13 +143,13 @@ l3fwd
 ~~~~~
 
 When running l3fwd with vPMD, there is one thing to note.
-In the configuration, ensure that DEV_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads is NOT set.
+In the configuration, ensure that RTE_ETH_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads is NOT set.
 Otherwise, by default, RX vPMD is disabled.
 
 load_balancer
 ~~~~~~~~~~~~~
 
-As in the case of l3fwd, to enable vPMD, do NOT set DEV_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads.
+As in the case of l3fwd, to enable vPMD, do NOT set RTE_ETH_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads.
 In addition, for improved performance, use -bsz "(32,32),(64,64),(32,32)" in load_balancer to avoid using the default burst size of 144.
 
 
doc/guides/nics/mlx5.rst +2 -2
index bae73f42d882..6facb68b9545 100644
@@ -371,7 +371,7 @@ Limitations
 
 - CRC:
 
-  - ``DEV_RX_OFFLOAD_KEEP_CRC`` cannot be supported with decapsulation
+  - ``RTE_ETH_RX_OFFLOAD_KEEP_CRC`` cannot be supported with decapsulation
     for some NICs (such as ConnectX-6 Dx, ConnectX-6 Lx, and BlueField-2).
     The capability bit ``scatter_fcs_w_decap_disable`` shows NIC support.
 
@@ -607,7 +607,7 @@ Driver options
   small-packet traffic.
 
   When MPRQ is enabled, max_rx_pkt_len can be larger than the size of
-  user-provided mbuf even if DEV_RX_OFFLOAD_SCATTER isn't enabled. PMD will
+  user-provided mbuf even if RTE_ETH_RX_OFFLOAD_SCATTER isn't enabled. PMD will
   configure large stride size enough to accommodate max_rx_pkt_len as long as
   device allows. Note that this can waste system memory compared to enabling Rx
   scatter and multi-segment packet.
doc/guides/nics/tap.rst +1 -1
index 3ce696b605d1..681010d9ed7d 100644
@@ -275,7 +275,7 @@ An example utility for eBPF instruction generation in the format of C arrays wil
 be added in next releases
 
 TAP reports on supported RSS functions as part of dev_infos_get callback:
-``ETH_RSS_IP``, ``ETH_RSS_UDP`` and ``ETH_RSS_TCP``.
+``RTE_ETH_RSS_IP``, ``RTE_ETH_RSS_UDP`` and ``RTE_ETH_RSS_TCP``.
 **Known limitation:** TAP supports all of the above hash functions together
 and not in partial combinations.
 
doc/guides/prog_guide/generic_segmentation_offload_lib.rst +4 -4
index 7bff0aef0b74..9b2c31a2f0bc 100644
@@ -194,11 +194,11 @@ To segment an outgoing packet, an application must:
 
    - the bit mask of required GSO types. The GSO library uses the same macros as
      those that describe a physical device's TX offloading capabilities (i.e.
-     ``DEV_TX_OFFLOAD_*_TSO``) for gso_types. For example, if an application
+     ``RTE_ETH_TX_OFFLOAD_*_TSO``) for gso_types. For example, if an application
      wants to segment TCP/IPv4 packets, it should set gso_types to
-     ``DEV_TX_OFFLOAD_TCP_TSO``. The only other supported values currently
-     supported for gso_types are ``DEV_TX_OFFLOAD_VXLAN_TNL_TSO``, and
-     ``DEV_TX_OFFLOAD_GRE_TNL_TSO``; a combination of these macros is also
+     ``RTE_ETH_TX_OFFLOAD_TCP_TSO``. The only other supported values currently
+     supported for gso_types are ``RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO``, and
+     ``RTE_ETH_TX_OFFLOAD_GRE_TNL_TSO``; a combination of these macros is also
      allowed.
 
    - a flag, that indicates whether the IPv4 headers of output segments should
doc/guides/prog_guide/mbuf_lib.rst +9 -9
index 2f190b40e43a..dc6186a44ae2 100644
@@ -137,7 +137,7 @@ a vxlan-encapsulated tcp packet:
     mb->ol_flags |= PKT_TX_IPV4 | PKT_TX_IP_CSUM
     set out_ip checksum to 0 in the packet
 
-  This is supported on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM.
+  This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM.
 
 - calculate checksum of out_ip and out_udp::
 
@@ -147,8 +147,8 @@ a vxlan-encapsulated tcp packet:
     set out_ip checksum to 0 in the packet
     set out_udp checksum to pseudo header using rte_ipv4_phdr_cksum()
 
-  This is supported on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM
-  and DEV_TX_OFFLOAD_UDP_CKSUM.
+  This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM
+  and RTE_ETH_TX_OFFLOAD_UDP_CKSUM.
 
 - calculate checksum of in_ip::
 
@@ -158,7 +158,7 @@ a vxlan-encapsulated tcp packet:
     set in_ip checksum to 0 in the packet
 
   This is similar to case 1), but l2_len is different. It is supported
-  on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM.
+  on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM.
   Note that it can only work if outer L4 checksum is 0.
 
 - calculate checksum of in_ip and in_tcp::
@@ -170,8 +170,8 @@ a vxlan-encapsulated tcp packet:
     set in_tcp checksum to pseudo header using rte_ipv4_phdr_cksum()
 
   This is similar to case 2), but l2_len is different. It is supported
-  on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM and
-  DEV_TX_OFFLOAD_TCP_CKSUM.
+  on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM and
+  RTE_ETH_TX_OFFLOAD_TCP_CKSUM.
   Note that it can only work if outer L4 checksum is 0.
 
 - segment inner TCP::
@@ -185,7 +185,7 @@ a vxlan-encapsulated tcp packet:
     set in_tcp checksum to pseudo header without including the IP
       payload length using rte_ipv4_phdr_cksum()
 
-  This is supported on hardware advertising DEV_TX_OFFLOAD_TCP_TSO.
+  This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_TCP_TSO.
   Note that it can only work if outer L4 checksum is 0.
 
 - calculate checksum of out_ip, in_ip, in_tcp::
@@ -200,8 +200,8 @@ a vxlan-encapsulated tcp packet:
     set in_ip checksum to 0 in the packet
     set in_tcp checksum to pseudo header using rte_ipv4_phdr_cksum()
 
-  This is supported on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM,
-  DEV_TX_OFFLOAD_UDP_CKSUM and DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM.
+  This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM,
+  RTE_ETH_TX_OFFLOAD_UDP_CKSUM and RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM.
 
 The list of flags and their precise meaning is described in the mbuf API
 documentation (rte_mbuf.h). Also refer to the testpmd source code
doc/guides/prog_guide/poll_mode_drv.rst +4 -4
index 0d4ac77a7ccf..68312898448c 100644
@@ -57,7 +57,7 @@ Whenever needed and appropriate, asynchronous communication should be introduced
 
 Avoiding lock contention is a key issue in a multi-core environment.
 To address this issue, PMDs are designed to work with per-core private resources as much as possible.
-For example, a PMD maintains a separate transmit queue per-core, per-port, if the PMD is not ``DEV_TX_OFFLOAD_MT_LOCKFREE`` capable.
+For example, a PMD maintains a separate transmit queue per-core, per-port, if the PMD is not ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capable.
 In the same way, every receive queue of a port is assigned to and polled by a single logical core (lcore).
 
 To comply with Non-Uniform Memory Access (NUMA), memory management is designed to assign to each logical core
@@ -119,7 +119,7 @@ This is also true for the pipe-line model provided all logical cores used are lo
 
 Multiple logical cores should never share receive or transmit queues for interfaces since this would require global locks and hinder performance.
 
-If the PMD is ``DEV_TX_OFFLOAD_MT_LOCKFREE`` capable, multiple threads can invoke ``rte_eth_tx_burst()``
+If the PMD is ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capable, multiple threads can invoke ``rte_eth_tx_burst()``
 concurrently on the same tx queue without SW lock. This PMD feature found in some NICs and useful in the following use cases:
 
 *  Remove explicit spinlock in some applications where lcores are not mapped to Tx queues with 1:1 relation.
@@ -127,7 +127,7 @@ concurrently on the same tx queue without SW lock. This PMD feature found in som
 *  In the eventdev use case, avoid dedicating a separate TX core for transmitting and thus
    enables more scaling as all workers can send the packets.
 
-See `Hardware Offload`_ for ``DEV_TX_OFFLOAD_MT_LOCKFREE`` capability probing details.
+See `Hardware Offload`_ for ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capability probing details.
 
 Device Identification, Ownership and Configuration
 --------------------------------------------------
@@ -311,7 +311,7 @@ The ``dev_info->[rt]x_queue_offload_capa`` returned from ``rte_eth_dev_info_get(
 The ``dev_info->[rt]x_offload_capa`` returned from ``rte_eth_dev_info_get()`` includes all pure per-port and per-queue offloading capabilities.
 Supported offloads can be either per-port or per-queue.
 
-Offloads are enabled using the existing ``DEV_TX_OFFLOAD_*`` or ``DEV_RX_OFFLOAD_*`` flags.
+Offloads are enabled using the existing ``RTE_ETH_TX_OFFLOAD_*`` or ``RTE_ETH_RX_OFFLOAD_*`` flags.
 Any requested offloading by an application must be within the device capabilities.
 Any offloading is disabled by default if it is not set in the parameter
 ``dev_conf->[rt]xmode.offloads`` to ``rte_eth_dev_configure()`` and
doc/guides/prog_guide/rte_flow.rst +17 -17
index 2b42d5ec8c05..1bac8f04b96e 100644
@@ -1835,23 +1835,23 @@ only matching traffic goes through.
 
 .. table:: RSS
 
-   +---------------+---------------------------------------------+
-   | Field         | Value                                       |
-   +===============+=============================================+
-   | ``func``      | RSS hash function to apply                  |
-   +---------------+---------------------------------------------+
-   | ``level``     | encapsulation level for ``types``           |
-   +---------------+---------------------------------------------+
-   | ``types``     | specific RSS hash types (see ``ETH_RSS_*``) |
-   +---------------+---------------------------------------------+
-   | ``key_len``   | hash key length in bytes                    |
-   +---------------+---------------------------------------------+
-   | ``queue_num`` | number of entries in ``queue``              |
-   +---------------+---------------------------------------------+
-   | ``key``       | hash key                                    |
-   +---------------+---------------------------------------------+
-   | ``queue``     | queue indices to use                        |
-   +---------------+---------------------------------------------+
+   +---------------+-------------------------------------------------+
+   | Field         | Value                                           |
+   +===============+=================================================+
+   | ``func``      | RSS hash function to apply                      |
+   +---------------+-------------------------------------------------+
+   | ``level``     | encapsulation level for ``types``               |
+   +---------------+-------------------------------------------------+
+   | ``types``     | specific RSS hash types (see ``RTE_ETH_RSS_*``) |
+   +---------------+-------------------------------------------------+
+   | ``key_len``   | hash key length in bytes                        |
+   +---------------+-------------------------------------------------+
+   | ``queue_num`` | number of entries in ``queue``                  |
+   +---------------+-------------------------------------------------+
+   | ``key``       | hash key                                        |
+   +---------------+-------------------------------------------------+
+   | ``queue``     | queue indices to use                            |
+   +---------------+-------------------------------------------------+
 
 Action: ``PF``
 ^^^^^^^^^^^^^^
doc/guides/prog_guide/rte_security.rst +1 -1
index f72bc8a78fa6..e3bd451917f0 100644
@@ -560,7 +560,7 @@ created by the application is attached to the security session by the API
 
 For Inline Crypto and Inline protocol offload, device specific defined metadata is
 updated in the mbuf using ``rte_security_set_pkt_metadata()`` if
-``DEV_TX_OFFLOAD_SEC_NEED_MDATA`` is set.
+``RTE_ETH_TX_OFFLOAD_SEC_NEED_MDATA`` is set.
 
 For inline protocol offloaded ingress traffic, the application can register a
 pointer, ``userdata`` , in the security session. When the packet is received,
doc/guides/rel_notes/deprecation.rst +3 -9
index 76a4abfd6b0b..20159a1c9a90 100644
@@ -58,22 +58,16 @@ Deprecation Notices
   ``RTE_ETH_FLOW_MAX`` is one sample of the mentioned case, adding a new flow
   type will break the ABI because of ``flex_mask[RTE_ETH_FLOW_MAX]`` array
   usage in following public struct hierarchy:
-  ``rte_eth_fdir_flex_conf -> rte_fdir_conf -> rte_eth_conf (in the middle)``.
+  ``rte_eth_fdir_flex_conf -> rte_eth_fdir_conf -> rte_eth_conf (in the middle)``.
   Need to identify this kind of usages and fix in 20.11, otherwise this blocks
   us extending existing enum/define.
   One solution can be using a fixed size array instead of ``.*MAX.*`` value.
 
-* ethdev: Will add ``RTE_ETH_`` prefix to all ethdev macros/enums in v21.11.
-  Macros will be added for backward compatibility.
-  Backward compatibility macros will be removed on v22.11.
-  A few old backward compatibility macros from 2013 that does not have
-  proper prefix will be removed on v21.11.
-
 * ethdev: The flow director API, including ``rte_eth_conf.fdir_conf`` field,
   and the related structures (``rte_fdir_*`` and ``rte_eth_fdir_*``),
   will be removed in DPDK 20.11.
 
-* ethdev: New offload flags ``DEV_RX_OFFLOAD_FLOW_MARK`` will be added in 19.11.
+* ethdev: New offload flags ``RTE_ETH_RX_OFFLOAD_FLOW_MARK`` will be added in 19.11.
   This will allow application to enable or disable PMDs from updating
   ``rte_mbuf::hash::fdir``.
   This scheme will allow PMDs to avoid writes to ``rte_mbuf`` fields on Rx and
@@ -98,7 +92,7 @@ Deprecation Notices
   either by ``rte_eth_dev_configure()`` or ``rte_eth_dev_set_mtu()``.
 
   An application may need to configure device for a specific Rx packet size, like for
-  cases ``DEV_RX_OFFLOAD_SCATTER`` is not supported and device received packet size
+  cases ``RTE_ETH_RX_OFFLOAD_SCATTER`` is not supported and device received packet size
   can't be bigger than Rx buffer size.
   To cover these cases an application needs to know the device packet overhead to be
   able to calculate the ``mtu`` corresponding to a Rx buffer size, for this
doc/guides/rel_notes/release_21_11.rst +3 -0
index d707a554efaf..daff4de36a76 100644
@@ -100,6 +100,9 @@ ABI Changes
    Also, make sure to start the actual text at the margin.
    =======================================================
 
+* ethdev: All enums & macros updated to have ``RTE_ETH`` prefix and structures
+  updated to have ``rte_eth`` prefix. DPDK components updated to use new names.
+
 
 Known Issues
 ------------
doc/guides/sample_app_ug/ipsec_secgw.rst +2 -2
index 78171b25f96e..782574dd39d5 100644
@@ -209,12 +209,12 @@ Where:
     device will ensure the ordering. Ordering will be lost when tried in PARALLEL.
 
 *   ``--rxoffload MASK``: RX HW offload capabilities to enable/use on this port
-    (bitmask of DEV_RX_OFFLOAD_* values). It is an optional parameter and
+    (bitmask of RTE_ETH_RX_OFFLOAD_* values). It is an optional parameter and
     allows user to disable some of the RX HW offload capabilities.
     By default all HW RX offloads are enabled.
 
 *   ``--txoffload MASK``: TX HW offload capabilities to enable/use on this port
-    (bitmask of DEV_TX_OFFLOAD_* values). It is an optional parameter and
+    (bitmask of RTE_ETH_TX_OFFLOAD_* values). It is an optional parameter and
     allows user to disable some of the TX HW offload capabilities.
     By default all HW TX offloads are enabled.
 
doc/guides/testpmd_app_ug/run_app.rst +1 -1
index 6061674239f4..d7f5951d4639 100644
@@ -526,7 +526,7 @@ The command line options are:
     Set the hexadecimal bitmask of RX multi queue mode which can be enabled.
     The default value is 0x7::
 
-       ETH_MQ_RX_RSS_FLAG | ETH_MQ_RX_DCB_FLAG | ETH_MQ_RX_VMDQ_FLAG
+       RTE_ETH_MQ_RX_RSS_FLAG | RTE_ETH_MQ_RX_DCB_FLAG | RTE_ETH_MQ_RX_VMDQ_FLAG
 
 *   ``--record-core-cycles``
 
drivers/bus/dpaa/include/process.h +8 -8
index be52e6f72dab..a922988607ef 100644
@@ -90,20 +90,20 @@ int dpaa_intr_disable(char *if_name);
 struct usdpaa_ioctl_link_status_args_old {
 	/* network device node name */
 	char    if_name[IF_NAME_MAX_LEN];
-	/* link status(ETH_LINK_UP/DOWN) */
+	/* link status(RTE_ETH_LINK_UP/DOWN) */
 	int     link_status;
 };
 
 struct usdpaa_ioctl_link_status_args {
 	/* network device node name */
 	char    if_name[IF_NAME_MAX_LEN];
-	/* link status(ETH_LINK_UP/DOWN) */
+	/* link status(RTE_ETH_LINK_UP/DOWN) */
 	int     link_status;
-	/* link speed (ETH_SPEED_NUM_)*/
+	/* link speed (RTE_ETH_SPEED_NUM_)*/
 	int     link_speed;
-	/* link duplex (ETH_LINK_[HALF/FULL]_DUPLEX)*/
+	/* link duplex (RTE_ETH_LINK_[HALF/FULL]_DUPLEX)*/
 	int     link_duplex;
-	/* link autoneg (ETH_LINK_AUTONEG/FIXED)*/
+	/* link autoneg (RTE_ETH_LINK_AUTONEG/FIXED)*/
 	int     link_autoneg;
 
 };
@@ -111,16 +111,16 @@ struct usdpaa_ioctl_link_status_args {
 struct usdpaa_ioctl_update_link_status_args {
 	/* network device node name */
 	char    if_name[IF_NAME_MAX_LEN];
-	/* link status(ETH_LINK_UP/DOWN) */
+	/* link status(RTE_ETH_LINK_UP/DOWN) */
 	int     link_status;
 };
 
 struct usdpaa_ioctl_update_link_speed {
 	/* network device node name*/
 	char    if_name[IF_NAME_MAX_LEN];
-	/* link speed (ETH_SPEED_NUM_)*/
+	/* link speed (RTE_ETH_SPEED_NUM_)*/
 	int     link_speed;
-	/* link duplex (ETH_LINK_[HALF/FULL]_DUPLEX)*/
+	/* link duplex (RTE_ETH_LINK_[HALF/FULL]_DUPLEX)*/
 	int     link_duplex;
 };
 
drivers/common/cnxk/roc_npc.h +1 -1
index bab25fd72eee..360bf75d3861 100644
@@ -153,7 +153,7 @@ enum roc_npc_rss_hash_function {
 struct roc_npc_action_rss {
 	enum roc_npc_rss_hash_function func;
 	uint32_t level;
-	uint64_t types;	       /**< Specific RSS hash types (see ETH_RSS_*). */
+	uint64_t types;	       /**< Specific RSS hash types (see RTE_ETH_RSS_*). */
 	uint32_t key_len;      /**< Hash key length in bytes. */
 	uint32_t queue_num;    /**< Number of entries in @p queue. */
 	const uint8_t *key;    /**< Hash key. */
drivers/net/af_packet/rte_eth_af_packet.c +8 -8
index b73b211fd249..fb5d549e6227 100644
@@ -91,10 +91,10 @@ static const char *valid_arguments[] = {
 };
 
 static struct rte_eth_link pmd_link = {
-	.link_speed = ETH_SPEED_NUM_10G,
-	.link_duplex = ETH_LINK_FULL_DUPLEX,
-	.link_status = ETH_LINK_DOWN,
-	.link_autoneg = ETH_LINK_FIXED,
+	.link_speed = RTE_ETH_SPEED_NUM_10G,
+	.link_duplex = RTE_ETH_LINK_FULL_DUPLEX,
+	.link_status = RTE_ETH_LINK_DOWN,
+	.link_autoneg = RTE_ETH_LINK_FIXED,
 };
 
 RTE_LOG_REGISTER_DEFAULT(af_packet_logtype, NOTICE);
@@ -265,7 +265,7 @@ eth_af_packet_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
 static int
 eth_dev_start(struct rte_eth_dev *dev)
 {
-	dev->data->dev_link.link_status = ETH_LINK_UP;
+	dev->data->dev_link.link_status = RTE_ETH_LINK_UP;
 	return 0;
 }
 
@@ -295,7 +295,7 @@ eth_dev_stop(struct rte_eth_dev *dev)
 		internals->tx_queue[i].sockfd = -1;
 	}
 
-	dev->data->dev_link.link_status = ETH_LINK_DOWN;
+	dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 	return 0;
 }
 
@@ -316,8 +316,8 @@ eth_dev_info(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 	dev_info->max_rx_queues = (uint16_t)internals->nb_queues;
 	dev_info->max_tx_queues = (uint16_t)internals->nb_queues;
 	dev_info->min_rx_bufsize = 0;
-	dev_info->tx_offload_capa = DEV_TX_OFFLOAD_MULTI_SEGS |
-		DEV_TX_OFFLOAD_VLAN_INSERT;
+	dev_info->tx_offload_capa = RTE_ETH_TX_OFFLOAD_MULTI_SEGS |
+		RTE_ETH_TX_OFFLOAD_VLAN_INSERT;
 
 	return 0;
 }
drivers/net/af_xdp/rte_eth_af_xdp.c +6 -6
index 74ffa4511284..dbf745852716 100644
@@ -163,10 +163,10 @@ static const char * const valid_arguments[] = {
 };
 
 static const struct rte_eth_link pmd_link = {
-	.link_speed = ETH_SPEED_NUM_10G,
-	.link_duplex = ETH_LINK_FULL_DUPLEX,
-	.link_status = ETH_LINK_DOWN,
-	.link_autoneg = ETH_LINK_AUTONEG
+	.link_speed = RTE_ETH_SPEED_NUM_10G,
+	.link_duplex = RTE_ETH_LINK_FULL_DUPLEX,
+	.link_status = RTE_ETH_LINK_DOWN,
+	.link_autoneg = RTE_ETH_LINK_AUTONEG
 };
 
 /* List which tracks PMDs to facilitate sharing UMEMs across them. */
@@ -654,7 +654,7 @@ eth_af_xdp_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
 static int
 eth_dev_start(struct rte_eth_dev *dev)
 {
-	dev->data->dev_link.link_status = ETH_LINK_UP;
+	dev->data->dev_link.link_status = RTE_ETH_LINK_UP;
 
 	return 0;
 }
@@ -663,7 +663,7 @@ eth_dev_start(struct rte_eth_dev *dev)
 static int
 eth_dev_stop(struct rte_eth_dev *dev)
 {
-	dev->data->dev_link.link_status = ETH_LINK_DOWN;
+	dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 	return 0;
 }
 
drivers/net/ark/ark_ethdev.c +8 -8
index 377299b14c7a..b618cba3f023 100644
@@ -736,14 +736,14 @@ eth_ark_dev_info_get(struct rte_eth_dev *dev,
 		.nb_align = ARK_TX_MIN_QUEUE}; /* power of 2 */
 
 	/* ARK PMD supports all line rates, how do we indicate that here ?? */
-	dev_info->speed_capa = (ETH_LINK_SPEED_1G |
-				ETH_LINK_SPEED_10G |
-				ETH_LINK_SPEED_25G |
-				ETH_LINK_SPEED_40G |
-				ETH_LINK_SPEED_50G |
-				ETH_LINK_SPEED_100G);
-
-	dev_info->rx_offload_capa = DEV_RX_OFFLOAD_TIMESTAMP;
+	dev_info->speed_capa = (RTE_ETH_LINK_SPEED_1G |
+				RTE_ETH_LINK_SPEED_10G |
+				RTE_ETH_LINK_SPEED_25G |
+				RTE_ETH_LINK_SPEED_40G |
+				RTE_ETH_LINK_SPEED_50G |
+				RTE_ETH_LINK_SPEED_100G);
+
+	dev_info->rx_offload_capa = RTE_ETH_RX_OFFLOAD_TIMESTAMP;
 
 	return 0;
 }
drivers/net/atlantic/atl_ethdev.c +45 -45

176 lines not on this page · raw message

drivers/net/atlantic/atl_ethdev.h +9 -9
index f547571b5c97..da993be35faa 100644
@@ -11,15 +11,15 @@
 #include "hw_atl/hw_atl_utils.h"
 
 #define ATL_RSS_OFFLOAD_ALL ( \
-	ETH_RSS_IPV4 | \
-	ETH_RSS_NONFRAG_IPV4_TCP | \
-	ETH_RSS_NONFRAG_IPV4_UDP | \
-	ETH_RSS_IPV6 | \
-	ETH_RSS_NONFRAG_IPV6_TCP | \
-	ETH_RSS_NONFRAG_IPV6_UDP | \
-	ETH_RSS_IPV6_EX | \
-	ETH_RSS_IPV6_TCP_EX | \
-	ETH_RSS_IPV6_UDP_EX)
+	RTE_ETH_RSS_IPV4 | \
+	RTE_ETH_RSS_NONFRAG_IPV4_TCP | \
+	RTE_ETH_RSS_NONFRAG_IPV4_UDP | \
+	RTE_ETH_RSS_IPV6 | \
+	RTE_ETH_RSS_NONFRAG_IPV6_TCP | \
+	RTE_ETH_RSS_NONFRAG_IPV6_UDP | \
+	RTE_ETH_RSS_IPV6_EX | \
+	RTE_ETH_RSS_IPV6_TCP_EX | \
+	RTE_ETH_RSS_IPV6_UDP_EX)
 
 #define ATL_DEV_PRIVATE_TO_HW(adapter) \
 	(&((struct atl_adapter *)adapter)->hw)
drivers/net/atlantic/atl_rxtx.c +3 -3
index 7d367c9306ec..ddf110d6ce7e 100644
@@ -145,10 +145,10 @@ atl_rx_queue_setup(struct rte_eth_dev *dev, uint16_t rx_queue_id,
 	rxq->rx_free_thresh = rx_conf->rx_free_thresh;
 
 	rxq->l3_csum_enabled = dev->data->dev_conf.rxmode.offloads &
-		DEV_RX_OFFLOAD_IPV4_CKSUM;
+		RTE_ETH_RX_OFFLOAD_IPV4_CKSUM;
 	rxq->l4_csum_enabled = dev->data->dev_conf.rxmode.offloads &
-		(DEV_RX_OFFLOAD_UDP_CKSUM | DEV_RX_OFFLOAD_TCP_CKSUM);
-	if (dev->data->dev_conf.rxmode.offloads & DEV_RX_OFFLOAD_KEEP_CRC)
+		(RTE_ETH_RX_OFFLOAD_UDP_CKSUM | RTE_ETH_RX_OFFLOAD_TCP_CKSUM);
+	if (dev->data->dev_conf.rxmode.offloads & RTE_ETH_RX_OFFLOAD_KEEP_CRC)
 		PMD_DRV_LOG(ERR, "PMD does not support KEEP_CRC offload");
 
 	/* allocate memory for the software ring */
drivers/net/avp/avp_ethdev.c +13 -13
index 623fa5e5ff5b..e870ced7e992 100644
@@ -2011,9 +2011,9 @@ avp_dev_configure(struct rte_eth_dev *eth_dev)
 	/* Setup required number of queues */
 	_avp_set_queue_counts(eth_dev);
 
-	mask = (ETH_VLAN_STRIP_MASK |
-		ETH_VLAN_FILTER_MASK |
-		ETH_VLAN_EXTEND_MASK);
+	mask = (RTE_ETH_VLAN_STRIP_MASK |
+		RTE_ETH_VLAN_FILTER_MASK |
+		RTE_ETH_VLAN_EXTEND_MASK);
 	ret = avp_vlan_offload_set(eth_dev, mask);
 	if (ret < 0) {
 		PMD_DRV_LOG(ERR, "VLAN offload set failed by host, ret=%d\n",
@@ -2153,8 +2153,8 @@ avp_dev_link_update(struct rte_eth_dev *eth_dev,
 	struct avp_dev *avp = AVP_DEV_PRIVATE_TO_HW(eth_dev->data->dev_private);
 	struct rte_eth_link *link = &eth_dev->data->dev_link;
 
-	link->link_speed = ETH_SPEED_NUM_10G;
-	link->link_duplex = ETH_LINK_FULL_DUPLEX;
+	link->link_speed = RTE_ETH_SPEED_NUM_10G;
+	link->link_duplex = RTE_ETH_LINK_FULL_DUPLEX;
 	link->link_status = !!(avp->flags & AVP_F_LINKUP);
 
 	return -1;
@@ -2204,8 +2204,8 @@ avp_dev_info_get(struct rte_eth_dev *eth_dev,
 	dev_info->max_rx_pktlen = avp->max_rx_pkt_len;
 	dev_info->max_mac_addrs = AVP_MAX_MAC_ADDRS;
 	if (avp->host_features & RTE_AVP_FEATURE_VLAN_OFFLOAD) {
-		dev_info->rx_offload_capa = DEV_RX_OFFLOAD_VLAN_STRIP;
-		dev_info->tx_offload_capa = DEV_TX_OFFLOAD_VLAN_INSERT;
+		dev_info->rx_offload_capa = RTE_ETH_RX_OFFLOAD_VLAN_STRIP;
+		dev_info->tx_offload_capa = RTE_ETH_TX_OFFLOAD_VLAN_INSERT;
 	}
 
 	return 0;
@@ -2218,9 +2218,9 @@ avp_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask)
 	struct rte_eth_conf *dev_conf = &eth_dev->data->dev_conf;
 	uint64_t offloads = dev_conf->rxmode.offloads;
 
-	if (mask & ETH_VLAN_STRIP_MASK) {
+	if (mask & RTE_ETH_VLAN_STRIP_MASK) {
 		if (avp->host_features & RTE_AVP_FEATURE_VLAN_OFFLOAD) {
-			if (offloads & DEV_RX_OFFLOAD_VLAN_STRIP)
+			if (offloads & RTE_ETH_RX_OFFLOAD_VLAN_STRIP)
 				avp->features |= RTE_AVP_FEATURE_VLAN_OFFLOAD;
 			else
 				avp->features &= ~RTE_AVP_FEATURE_VLAN_OFFLOAD;
@@ -2229,13 +2229,13 @@ avp_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask)
 		}
 	}
 
-	if (mask & ETH_VLAN_FILTER_MASK) {
-		if (offloads & DEV_RX_OFFLOAD_VLAN_FILTER)
+	if (mask & RTE_ETH_VLAN_FILTER_MASK) {
+		if (offloads & RTE_ETH_RX_OFFLOAD_VLAN_FILTER)
 			PMD_DRV_LOG(ERR, "VLAN filter offload not supported\n");
 	}
 
-	if (mask & ETH_VLAN_EXTEND_MASK) {
-		if (offloads & DEV_RX_OFFLOAD_VLAN_EXTEND)
+	if (mask & RTE_ETH_VLAN_EXTEND_MASK) {
[… more lines in the raw message]

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

drivers/net/axgbe/axgbe_dev.c +3 -3
index 786288a7b079..c0f033e06b15 100644

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

drivers/net/axgbe/axgbe_ethdev.c +55 -55

110 lines not on this page · raw message

drivers/net/axgbe/axgbe_ethdev.h +6 -6
index a6226729fe4d..0a3e1c59df1a 100644

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

drivers/net/axgbe/axgbe_mdio.c +1 -1
index 4f98e695ae74..59fa9175aded 100644

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

drivers/net/axgbe/axgbe_rxtx.c +3 -3
index 33f709a6bb02..baa17a5fb43f 100644

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

drivers/net/bnx2x/bnx2x_ethdev.c +8 -8
index 463886f17a58..14d91f868cd8 100644

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

drivers/net/bnxt/bnxt.h +34 -34

68 lines not on this page · raw message

drivers/net/bnxt/bnxt_ethdev.c +89 -89

178 lines not on this page · raw message

drivers/net/bnxt/bnxt_flow.c +2 -2
index 59489b591a6f..98e1107f629c 100644

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

drivers/net/bnxt/bnxt_hwrm.c +56 -56

112 lines not on this page · raw message

drivers/net/bnxt/bnxt_reps.c +1 -1
index bdbad53b7d7f..a9f5e13476b0 100644

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

drivers/net/bnxt/bnxt_ring.c +2 -2
index 957b175f1b89..632a611bf612 100644

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

drivers/net/bnxt/bnxt_rxq.c +14 -14
index bbcb3b06e7df..0ac3a2b3b7d3 100644

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

drivers/net/bnxt/bnxt_rxr.c +2 -2
index 73fbdd17d126..0909bab89b76 100644

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

drivers/net/bnxt/bnxt_rxtx_vec_avx2.c +1 -1
index d08854ff61e2..e4905b4fd169 100644

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

drivers/net/bnxt/bnxt_rxtx_vec_common.h +1 -1
index 9b9489a695a2..0627fd212d0a 100644

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

drivers/net/bnxt/bnxt_rxtx_vec_neon.c +1 -1
index 13211060cf0e..f15e2d3b4ed4 100644

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

drivers/net/bnxt/bnxt_rxtx_vec_sse.c +1 -1
index 6e563053260a..ffd560166cac 100644

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

drivers/net/bnxt/bnxt_txr.c +2 -2
index 47824334ae3e..401dd83f4e7d 100644

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

drivers/net/bnxt/bnxt_vnic.c +15 -15
index 26253a7e17f2..c63cf4b943fa 100644

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

drivers/net/bnxt/rte_pmd_bnxt.c +4 -4
index f71543810970..77ecbef04c3d 100644

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

drivers/net/bonding/eth_bond_private.h +2 -2
index fc179a2732ac..8b104b639184 100644

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

drivers/net/bonding/rte_eth_bond_8023ad.c +8 -8
index 128754f4595a..20adfcf0ea9c 100644

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

drivers/net/bonding/rte_eth_bond_api.c +3 -3
index eb8d15d16034..a6fe0304c648 100644

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

drivers/net/bonding/rte_eth_bond_pmd.c +28 -28

56 lines not on this page · raw message

drivers/net/cnxk/cn10k_ethdev.c +19 -19
index 7caec6cf14c8..9a09748673b2 100644

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

drivers/net/cnxk/cn10k_rx.c +2 -2
index 69e767ac3dd6..e3b1bd8ad225 100644

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

drivers/net/cnxk/cn10k_tx.c +2 -2
index 0e1276c60ba2..f63b8fabefd4 100644

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

drivers/net/cnxk/cn9k_ethdev.c +28 -28

56 lines not on this page · raw message

drivers/net/cnxk/cn9k_rx.c +2 -2
index 7d9f1bd61f79..08ee28658bce 100644

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

drivers/net/cnxk/cn9k_tx.c +2 -2
index 763f9a14fd79..f35ae8e70438 100644

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

drivers/net/cnxk/cnxk_ethdev.c +42 -42

84 lines not on this page · raw message

drivers/net/cnxk/cnxk_ethdev.h +26 -23

49 lines not on this page · raw message

drivers/net/cnxk/cnxk_ethdev_devargs.c +3 -3
index 37720fb0954e..bf0c6d6b4ad8 100644

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

drivers/net/cnxk/cnxk_ethdev_ops.c +56 -56

112 lines not on this page · raw message

drivers/net/cnxk/cnxk_link.c +7 -7
index 3fdbdba49549..1cff8d56e65b 100644

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

drivers/net/cnxk/cnxk_ptp.c +2 -2
index 449489f599c4..139fea256ccd 100644

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

drivers/net/cnxk/cnxk_rte_flow.c +1 -1
index 32c1b5dee5fa..ecdfee7b11a6 100644

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

drivers/net/cxgbe/cxgbe.h +24 -24

48 lines not on this page · raw message

drivers/net/cxgbe/cxgbe_ethdev.c +25 -25

50 lines not on this page · raw message

drivers/net/cxgbe/cxgbe_main.c +6 -6
index 6dd1bf1f836e..54723edc2144 100644

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

drivers/net/cxgbe/sge.c +1 -1
index e5f7721dc4b3..eddb818c4861 100644

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

drivers/net/dpaa/dpaa_ethdev.c +95 -95

190 lines not on this page · raw message

drivers/net/dpaa/dpaa_ethdev.h +5 -5
index b5728e09c29f..c868e9d5bd9b 100644

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

drivers/net/dpaa/dpaa_flow.c +16 -16
index c5b5ec869519..1ccd03602790 100644

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

drivers/net/dpaa2/base/dpaa2_hw_dpni.c +17 -17
index 641e7027f12e..7c92b2a42e3f 100644

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

drivers/net/dpaa2/dpaa2_ethdev.c +74 -74

148 lines not on this page · raw message

drivers/net/dpaa2/dpaa2_ethdev.h +6 -6
index b9c729f6cdc0..ca75a2175524 100644

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

drivers/net/dpaa2/dpaa2_rxtx.c +4 -4
index f40369e2c3f9..7c77243b5d1a 100644

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

drivers/net/e1000/e1000_ethdev.h +9 -9
index 3b4d9c3ee6f4..ca488fea966f 100644

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

drivers/net/e1000/em_ethdev.c +34 -34

68 lines not on this page · raw message

drivers/net/e1000/em_rxtx.c +24 -24

48 lines not on this page · raw message

drivers/net/e1000/igb_ethdev.c +83 -83

166 lines not on this page · raw message

drivers/net/e1000/igb_pf.c +1 -1
index 2ce74dd5a9a5..fe355ef6b3b5 100644

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

drivers/net/e1000/igb_rxtx.c +60 -60

120 lines not on this page · raw message

drivers/net/ena/ena_ethdev.c +35 -35

70 lines not on this page · raw message

drivers/net/ena/ena_ethdev.h +2 -2
index 06ac8b06b5cb..3b1844e50982 100644

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

drivers/net/ena/ena_rss.c +38 -38

76 lines not on this page · raw message

drivers/net/enetc/enetc_ethdev.c +19 -19
index b496cd470045..e0fb44edeb41 100644

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

drivers/net/enic/enic.h +1 -1
index 47bfdac2cfdd..d5493c98345d 100644

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

drivers/net/enic/enic_ethdev.c +44 -44

88 lines not on this page · raw message

drivers/net/enic/enic_main.c +20 -20
index 2affd380c6a4..754cf362c6d8 100644

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

drivers/net/enic/enic_res.c +26 -26

52 lines not on this page · raw message

drivers/net/failsafe/failsafe.c +4 -4
index 8216063a3d8b..9b22a6ce8941 100644

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

drivers/net/failsafe/failsafe_intr.c +2 -2
index 602c04033c18..5f4810051dac 100644

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

drivers/net/failsafe/failsafe_ops.c +41 -41

82 lines not on this page · raw message

drivers/net/fm10k/fm10k.h +2 -2
index 916b856acc4b..7af115399e0f 100644

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

drivers/net/fm10k/fm10k_ethdev.c +74 -74

148 lines not on this page · raw message

drivers/net/fm10k/fm10k_rxtx_vec.c +3 -3
index 83af01dc2da6..50973a662c67 100644

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

drivers/net/hinic/base/hinic_pmd_hwdev.c +11 -11
index cb9cf6efa287..80f9eb5c3031 100644

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

drivers/net/hinic/hinic_pmd_ethdev.c +71 -71

142 lines not on this page · raw message

drivers/net/hinic/hinic_pmd_rx.c +18 -18
index 842399cc4cd8..d347afe9a6a9 100644

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

drivers/net/hinic/hinic_pmd_rx.h +11 -11
index 8a45f2d9fc50..5c303398b635 100644

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

drivers/net/hns3/hns3_dcb.c +7 -7
index b71e2e9ea451..953c146d0200 100644

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

drivers/net/hns3/hns3_ethdev.c +180 -180

360 lines not on this page · raw message

drivers/net/hns3/hns3_ethdev.h +6 -6
index 0e4e4269a12f..c40d28af1d46 100644

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

drivers/net/hns3/hns3_ethdev_vf.c +54 -54

108 lines not on this page · raw message

drivers/net/hns3/hns3_flow.c +3 -3
index fc77979c5f14..0ac8705b590b 100644

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

drivers/net/hns3/hns3_ptp.c +1 -1
index df8485904688..395590c86c03 100644

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

drivers/net/hns3/hns3_rss.c +54 -54

108 lines not on this page · raw message

drivers/net/hns3/hns3_rss.h +14 -14
index 996083b88b25..6f153a1b7bfb 100644

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

drivers/net/hns3/hns3_rxtx.c +15 -15
index 0f222b37f9d1..01e43791572b 100644

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

drivers/net/hns3/hns3_rxtx.h +1 -1
index cd7c21c1d0c8..2fa3a01dd3bf 100644

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

drivers/net/hns3/hns3_rxtx_vec.c +5 -5
index 844512f6ceec..d01a8d62bfb1 100644

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

drivers/net/i40e/i40e_ethdev.c +139 -139

278 lines not on this page · raw message

drivers/net/i40e/i40e_ethdev.h +12 -12
index cd6deabd60b3..f21c2de6bdb9 100644

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

drivers/net/i40e/i40e_ethdev_vf.c +59 -59

118 lines not on this page · raw message

drivers/net/i40e/i40e_flow.c +1 -1
index 3c1570bd9c47..d1cb992be61d 100644

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

drivers/net/i40e/i40e_hash.c +78 -78

156 lines not on this page · raw message

drivers/net/i40e/i40e_pf.c +7 -7
index e2d8b2b5f7f1..ccb3924a5f68 100644

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

drivers/net/i40e/i40e_rxtx.c +5 -5
index 8329cbdd4e30..3bad4052ed1b 100644

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

drivers/net/i40e/i40e_rxtx.h +2 -2
index 5ccf5773e857..303a4db47dbd 100644

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

drivers/net/i40e/i40e_rxtx_vec_avx512.c +1 -1
index bd21d6422394..5f00d43950aa 100644

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

drivers/net/i40e/i40e_rxtx_vec_common.h +4 -4
index f52ed98d62d0..0192164c35fa 100644

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

drivers/net/i40e/i40e_vf_representor.c +24 -24

48 lines not on this page · raw message

drivers/net/iavf/iavf.h +12 -12
index b3bd07811198..1d4383e89327 100644

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

drivers/net/iavf/iavf_ethdev.c +93 -93

186 lines not on this page · raw message

drivers/net/iavf/iavf_hash.c +150 -150

300 lines not on this page · raw message

drivers/net/iavf/iavf_rxtx.c +1 -1
index e33fe4576b6e..4ff856fc82aa 100644

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

drivers/net/iavf/iavf_rxtx.h +12 -12
index e210b913d633..096be81e8a69 100644

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

drivers/net/iavf/iavf_rxtx_vec_avx2.c +2 -2
index 475070e036ef..8f9a397e4143 100644

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

drivers/net/iavf/iavf_rxtx_vec_avx512.c +3 -3
index 571161c0cdec..2329928c62cb 100644

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

drivers/net/iavf/iavf_rxtx_vec_sse.c +1 -1
index ee1e9055259b..58f928bdd7ca 100644

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

drivers/net/ice/ice_dcf.c +1 -1
index 4c2e0c7216fd..ec53478083b4 100644

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

drivers/net/ice/ice_dcf_ethdev.c +45 -45

90 lines not on this page · raw message

drivers/net/ice/ice_dcf_vf_representor.c +29 -29

58 lines not on this page · raw message

drivers/net/ice/ice_ethdev.c +95 -95

190 lines not on this page · raw message

drivers/net/ice/ice_ethdev.h +13 -13
index b4bf651c1c7f..1c4bc4e30349 100644

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

drivers/net/ice/ice_hash.c +134 -134

268 lines not on this page · raw message

drivers/net/ice/ice_rxtx.c +4 -4
index 5d7ab4f047ee..63c07e001f07 100644

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

drivers/net/ice/ice_rxtx_vec_avx2.c +1 -1
index 9725ac018043..8c870354619e 100644

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

drivers/net/ice/ice_rxtx_vec_avx512.c +2 -2
index 5bba9887d296..6d2038975830 100644

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

drivers/net/ice/ice_rxtx_vec_common.h +13 -13
index 2d8ef7dc8a93..a5b573c22da2 100644

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

drivers/net/ice/ice_rxtx_vec_sse.c +1 -1
index 653bd28b417c..117494131f32 100644

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

drivers/net/igc/igc_ethdev.c +73 -73

146 lines not on this page · raw message

drivers/net/igc/igc_ethdev.h +28 -28

56 lines not on this page · raw message

drivers/net/igc/igc_txrx.c +25 -25

50 lines not on this page · raw message

drivers/net/ionic/ionic_ethdev.c +70 -70

140 lines not on this page · raw message

drivers/net/ionic/ionic_ethdev.h +6 -6
index 6cbcd0f825a3..652f28c97d57 100644

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

drivers/net/ionic/ionic_lif.c +18 -18
index 431eda777b78..d4eb6c1d78be 100644

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

drivers/net/ionic/ionic_rxtx.c +5 -5
index b83ea1bcaa6a..0c1f6113d0e9 100644

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

drivers/net/ipn3ke/ipn3ke_representor.c +35 -35

70 lines not on this page · raw message

drivers/net/ixgbe/ixgbe_ethdev.c +156 -157

313 lines not on this page · raw message

drivers/net/ixgbe/ixgbe_ethdev.h +9 -9
index a0ce18ca246b..3443154589e8 100644

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

drivers/net/ixgbe/ixgbe_fdir.c +12 -12
index 27a49bbce5e7..7894047829a8 100644

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

drivers/net/ixgbe/ixgbe_flow.c +1 -1
index 511b612f7fe4..0557de6c1aa5 100644

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

drivers/net/ixgbe/ixgbe_ipsec.c +6 -6
index e45c5501e6bf..944c9f23809e 100644

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

drivers/net/ixgbe/ixgbe_pf.c +19 -19
index fbf2b17d160f..d03238b728ba 100644

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

drivers/net/ixgbe/ixgbe_rxtx.c +126 -127

253 lines not on this page · raw message

drivers/net/ixgbe/ixgbe_rxtx.h +2 -2
index 476ef62cfda2..220efffe4d08 100644

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

drivers/net/ixgbe/ixgbe_rxtx_vec_common.h +1 -1
index adba855ca30f..714707941537 100644

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

drivers/net/ixgbe/ixgbe_tm.c +8 -8
index a8407e742e6d..c2ab3131f22e 100644

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

drivers/net/ixgbe/ixgbe_vf_representor.c +8 -8
index d5b636a19408..536e33010703 100644

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

drivers/net/ixgbe/rte_pmd_ixgbe.c +7 -7
index cf089cd9aee5..9729f8575f53 100644

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

drivers/net/ixgbe/rte_pmd_ixgbe.h +2 -2
index 90fc8160b1f8..eef6f6661c74 100644

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

drivers/net/kni/rte_eth_kni.c +4 -4
index 871d11c4133d..29060ca76f93 100644

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

drivers/net/liquidio/lio_ethdev.c +59 -59

118 lines not on this page · raw message

drivers/net/memif/memif_socket.c +1 -1
index f58ff4c0cb77..a117a05228fc 100644

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

drivers/net/memif/rte_eth_memif.c +7 -7
index de6becd45e3e..ea66f5bfd452 100644

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

drivers/net/mlx4/mlx4_ethdev.c +16 -16
index 783ff94dce8d..d606ec8ca76d 100644

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

drivers/net/mlx4/mlx4_flow.c +15 -15
index 71ea91b3fb82..2e1b6c87e983 100644

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

drivers/net/mlx4/mlx4_intr.c +4 -4
index d56009c41845..2aab0f60a7b5 100644

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

drivers/net/mlx4/mlx4_rxq.c +10 -10
index 978cbb8201ea..9977c761880a 100644

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

drivers/net/mlx4/mlx4_txq.c +12 -12
index 2df26842fbe4..19feec5e5202 100644

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

drivers/net/mlx5/linux/mlx5_ethdev_os.c +27 -27

54 lines not on this page · raw message

drivers/net/mlx5/linux/mlx5_os.c +3 -3
index 5f8766aa481e..c40cda8fcaf9 100644

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

drivers/net/mlx5/mlx5.c +2 -2
index f84e061fe719..ff1c8e17460a 100644

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

drivers/net/mlx5/mlx5.h +1 -1
index e02714e23196..9588dff05180 100644

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

drivers/net/mlx5/mlx5_defs.h +3 -3
index fe86bb40d351..12ddf4c7ff28 100644

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

drivers/net/mlx5/mlx5_ethdev.c +3 -3
index 82e2284d9866..f2b78c3cc69e 100644

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

drivers/net/mlx5/mlx5_flow.c +27 -27

54 lines not on this page · raw message

drivers/net/mlx5/mlx5_flow.h +6 -6
index 76ad53f2a1e8..d5d3a89374fe 100644

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

drivers/net/mlx5/mlx5_flow_dv.c +22 -22

44 lines not on this page · raw message

drivers/net/mlx5/mlx5_flow_verbs.c +2 -2
index b93fd4d2c962..ef286a13729c 100644

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

drivers/net/mlx5/mlx5_rss.c +5 -5
index c32129cdc2b8..a4f690039e24 100644

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

drivers/net/mlx5/mlx5_rxq.c +21 -21

42 lines not on this page · raw message

drivers/net/mlx5/mlx5_rxtx_vec.h +4 -4
index 93b4f517bb3e..65d91bdf67e2 100644

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

drivers/net/mlx5/mlx5_tx.c +15 -15
index df671379e46d..12aeba60348a 100644

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

drivers/net/mlx5/mlx5_txq.c +26 -26

52 lines not on this page · raw message

drivers/net/mlx5/mlx5_vlan.c +2 -2
index 60f97f2d2d1f..07792fc5d94f 100644

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

drivers/net/mlx5/windows/mlx5_os.c +2 -2
index 7e1df1c75147..578816fe0513 100644

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

drivers/net/mvneta/mvneta_ethdev.c +17 -17
index a3ee15020466..37803fe34538 100644

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

drivers/net/mvneta/mvneta_ethdev.h +6 -6
index ef8067790f82..ccd47e8f4927 100644

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

drivers/net/mvneta/mvneta_rxtx.c +1 -1
index dfa7ecc09039..d28125ce9635 100644

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

drivers/net/mvpp2/mrvl_ethdev.c +58 -58

116 lines not on this page · raw message

drivers/net/netvsc/hn_ethdev.c +35 -35

70 lines not on this page · raw message

drivers/net/netvsc/hn_rndis.c +25 -25

50 lines not on this page · raw message

drivers/net/nfb/nfb_ethdev.c +10 -10
index 7e91d5984740..c2ff1c999869 100644

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

drivers/net/nfb/nfb_rx.c +1 -1
index d6d4ba9663c6..f19e9834848b 100644

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

drivers/net/nfp/nfp_common.c +65 -65

130 lines not on this page · raw message

drivers/net/nfp/nfp_ethdev.c +1 -1
index 534a38c14f94..7a6a963bf6cc 100644

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

drivers/net/nfp/nfp_ethdev_vf.c +1 -1
index b697b55865cc..ac960328c7de 100644

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

drivers/net/ngbe/ngbe_ethdev.c +25 -25

50 lines not on this page · raw message

drivers/net/null/rte_eth_null.c +14 -14
index 508bafc12a14..df4ddb3b40e2 100644

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

drivers/net/octeontx/octeontx_ethdev.c +39 -39

78 lines not on this page · raw message

drivers/net/octeontx/octeontx_ethdev.h +16 -16
index b73515de37ca..7215039507c3 100644

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

drivers/net/octeontx/octeontx_ethdev_ops.c +13 -13
index dbe13ce3826b..6ec2b71b0672 100644

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

drivers/net/octeontx2/otx2_ethdev.c +48 -48

96 lines not on this page · raw message

drivers/net/octeontx2/otx2_ethdev.h +33 -33

66 lines not on this page · raw message

drivers/net/octeontx2/otx2_ethdev_devargs.c +6 -6
index 83f905315b38..60bf6c3f5f05 100644

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

drivers/net/octeontx2/otx2_ethdev_ops.c +9 -9
index 5a4501208e9e..41761085e156 100644

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

drivers/net/octeontx2/otx2_ethdev_sec.c +4 -4
index c2a36883cbf2..e1654ef5b284 100644

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

drivers/net/octeontx2/otx2_flow.c +1 -1
index 6df0732189eb..1d0fe4e950d4 100644

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

drivers/net/octeontx2/otx2_flow_ctrl.c +18 -18
index 76bf48100183..071740de86a7 100644

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

drivers/net/octeontx2/otx2_flow_parse.c +2 -2
index 63a33142a579..3fe6727f1d2a 100644

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

drivers/net/octeontx2/otx2_link.c +20 -20
index 81dd6243b977..8f5d0eed92b6 100644

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

drivers/net/octeontx2/otx2_mcast.c +1 -1
index f84aa1bf570c..b9c63ad3bc21 100644

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

drivers/net/octeontx2/otx2_ptp.c +2 -2
index 91e5c0f6bd11..abb213058792 100644

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

drivers/net/octeontx2/otx2_rss.c +35 -35

70 lines not on this page · raw message

drivers/net/octeontx2/otx2_rx.c +2 -2
index ffeade5952dc..986902287b67 100644

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

drivers/net/octeontx2/otx2_tx.c +1 -1
index ff299f00b913..c60190074926 100644

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

drivers/net/octeontx2/otx2_vlan.c +21 -21

42 lines not on this page · raw message

drivers/net/octeontx_ep/otx_ep_ethdev.c +4 -4
index a243683d61d3..7bfa6098e230 100644

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

drivers/net/octeontx_ep/otx_ep_rxtx.c +4 -4
index a7d433547e36..77593111f141 100644

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

drivers/net/pcap/pcap_ethdev.c +6 -6
index a8774b7a432a..13d18e875444 100644

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

drivers/net/pfe/pfe_ethdev.c +9 -9
index feec4d10a26e..a74f27bf8158 100644

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

drivers/net/qede/base/mcp_public.h +2 -2
index 6667c2d7ab6d..511742c6a1b3 100644

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

drivers/net/qede/qede_ethdev.c +76 -76

152 lines not on this page · raw message

drivers/net/qede/qede_filter.c +5 -5
index c756594bfc4b..ceb47c17d0d6 100644

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

drivers/net/qede/qede_rxtx.c +1 -1
index 298f4e3e4273..144dfef269f3 100644

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

drivers/net/qede/qede_rxtx.h +8 -8
index c9334448c887..15112b83f4f7 100644

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

drivers/net/ring/rte_eth_ring.c +10 -10
index 1faf38a714cf..8d1ef5fb22bc 100644

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

drivers/net/sfc/sfc.c +15 -15
index 274a98e228e4..d93f9d2418b9 100644

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

drivers/net/sfc/sfc_ef100_rx.c +5 -5
index d4cb96881cd2..ca8774ad0950 100644

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

drivers/net/sfc/sfc_ef100_tx.c +10 -10
index 522e9a0d3470..7c91ee3fcb53 100644

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

drivers/net/sfc/sfc_ef10_essb_rx.c +2 -2
index 991329e86f01..9ea207cca163 100644

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

drivers/net/sfc/sfc_ef10_rx.c +4 -4
index 49a7d4fb42fd..9aaabd30eee6 100644

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

drivers/net/sfc/sfc_ef10_tx.c +16 -16
index ed43adb4ca5c..e7da4608bcb0 100644

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

drivers/net/sfc/sfc_ethdev.c +26 -26

52 lines not on this page · raw message

drivers/net/sfc/sfc_flow.c +1 -1
index 4f5993a68d23..dc2cdfea13c4 100644

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

drivers/net/sfc/sfc_port.c +27 -27

54 lines not on this page · raw message

drivers/net/sfc/sfc_rx.c +26 -26

52 lines not on this page · raw message

drivers/net/sfc/sfc_tx.c +25 -25

50 lines not on this page · raw message

drivers/net/softnic/rte_eth_softnic.c +6 -6
index b3b55b9035b1..3ef33818a9e0 100644

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

drivers/net/szedata2/rte_eth_szedata2.c +7 -7
index 7416a6b1b816..255444a4181d 100644

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

drivers/net/tap/rte_eth_tap.c +52 -52

104 lines not on this page · raw message

drivers/net/tap/tap_rss.h +1 -1
index 176e7180bdaa..48c151cf6b68 100644

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

drivers/net/thunderx/nicvf_ethdev.c +54 -54

108 lines not on this page · raw message

drivers/net/thunderx/nicvf_ethdev.h +21 -21

42 lines not on this page · raw message

drivers/net/txgbe/txgbe_ethdev.c +122 -122

244 lines not on this page · raw message

drivers/net/txgbe/txgbe_ethdev.h +9 -9
index 3021933965c8..75a9e2580e27 100644

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

drivers/net/txgbe/txgbe_ethdev_vf.c +12 -12
index 18ed94bd277b..05773cb20786 100644

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

drivers/net/txgbe/txgbe_fdir.c +10 -10
index 8abb86228608..e303d87176ed 100644

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

drivers/net/txgbe/txgbe_flow.c +1 -1
index eae400b14176..6d7fd1842843 100644

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

drivers/net/txgbe/txgbe_ipsec.c +6 -6
index ccd747973ba2..445733f3ba46 100644

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

drivers/net/txgbe/txgbe_pf.c +17 -17
index 494d779a3c9d..44f6f103edd2 100644

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

drivers/net/txgbe/txgbe_rxtx.c +156 -156

312 lines not on this page · raw message

drivers/net/txgbe/txgbe_rxtx.h +2 -2
index b96f58a3f848..27d4c842c0e7 100644

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

drivers/net/txgbe/txgbe_tm.c +8 -8
index 3abe3959eb1a..3171be73d05d 100644

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

drivers/net/vhost/rte_eth_vhost.c +8 -8
index a202931e9aed..778460aab5e1 100644

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

drivers/net/virtio/virtio_ethdev.c +63 -63

126 lines not on this page · raw message

drivers/net/vmxnet3/vmxnet3_ethdev.c +37 -37

74 lines not on this page · raw message

drivers/net/vmxnet3/vmxnet3_ethdev.h +8 -8
index 59bee9723cfc..7588ba929b65 100644

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

drivers/net/vmxnet3/vmxnet3_rxtx.c +8 -8
index 5cf53d4de825..0f2671f528f4 100644

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

examples/bbdev_app/main.c +3 -3
index 5251db0b1674..ecc6ef2965ee 100644

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

examples/bond/main.c +7 -7
index f48400e21156..e4c627e203a4 100644

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

examples/distributor/main.c +6 -6
index 1b1029660e77..e6af8420e4c6 100644

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

examples/ethtool/ethtool-app/main.c +1 -1
index 21ed85c7d6c9..5053d174335c 100644

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

examples/ethtool/lib/rte_ethtool.c +9 -9
index 413251630709..e7cdf8d5775b 100644

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

examples/eventdev_pipeline/pipeline_worker_generic.c +8 -8
index f70ab0cc9e38..3ac98add5692 100644

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

examples/eventdev_pipeline/pipeline_worker_tx.c +6 -6
index ca6cd200caad..5780928d75ee 100644

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

examples/flow_classify/flow_classify.c +2 -2
index db71f5aa0401..f44ee65372ff 100644

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

examples/flow_filtering/main.c +8 -8
index 29fb4b3d55ef..150406e385d4 100644

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

examples/ioat/ioatfwd.c +4 -4
index 0c413180f889..94e3ac91b299 100644

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

examples/ip_fragmentation/main.c +7 -7
index f24536972084..aa41fcc1d037 100644

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

examples/ip_pipeline/link.c +10 -10
index 16bcffe356bc..f6ecd9b0fe3a 100644

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

examples/ip_reassembly/main.c +10 -10
index 8645ac790be4..8aabea002bbb 100644

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

examples/ipsec-secgw/ipsec-secgw.c +17 -17
index f252d34985b4..73932564e459 100644

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

examples/ipsec-secgw/sa.c +4 -4
index 17a28556c971..5cdd794f017f 100644

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

examples/ipv4_multicast/main.c +4 -4
index cc527d7f6b38..96fb325ff180 100644

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

examples/kni/main.c +6 -6
index beabb3c848aa..81124dc0dc88 100644

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

examples/l2fwd-crypto/main.c +5 -5
index 5f539c458cdd..89489843e2bd 100644

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

examples/l2fwd-event/l2fwd_common.c +5 -5
index b8c1e02d7598..80a72f7095cf 100644

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

examples/l2fwd-event/main.c +1 -1
index 1db89f2bd139..9806204b81d1 100644

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

examples/l2fwd-jobstats/main.c +4 -4
index bbb4a27a6d54..2e50339afb61 100644

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

examples/l2fwd-keepalive/main.c +4 -4
index 4e1a17cfe4f5..d228a842788d 100644

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

examples/l2fwd/main.c +4 -4
index 911e40c66e0e..b4a69dde63dc 100644

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

examples/l3fwd-acl/main.c +10 -10
index a1f457b564b6..9323426e9b1d 100644

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

examples/l3fwd-graph/main.c +8 -8
index a0de8ca9b42d..278fe95970f3 100644

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

examples/l3fwd-power/main.c +9 -9
index aa7b8db44ae8..85609e9d4593 100644

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

examples/l3fwd/l3fwd_event.c +2 -2
index 961860ea18ef..7c7613a83aad 100644

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

examples/l3fwd/main.c +10 -10
index 00ac267af1dd..500444565463 100644

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

examples/link_status_interrupt/main.c +5 -5
index 7470aa539a90..6880b58476f4 100644

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

examples/multi_process/client_server_mp/mp_server/init.c +2 -2
index 1ad71ca7ec5f..23307073c904 100644

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

examples/multi_process/symmetric_mp/main.c +7 -7
index 01dc3acf34d5..85955375f1bf 100644

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

examples/ntb/ntb_fwd.c +3 -3
index e9a388710647..f110fc129f55 100644

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

examples/packet_ordering/main.c +2 -2
index d2fe9f6b50d8..eb15899c902f 100644

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

examples/performance-thread/l3fwd-thread/main.c +9 -9
index 2f593abf263d..86671655b432 100644

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

examples/pipeline/obj.c +10 -10
index 467cda5a6dac..7ea670f109b8 100644

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

examples/ptpclient/ptpclient.c +5 -5
index 4f32ade7fbf7..db32b0d6c427 100644

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

examples/qos_meter/main.c +8 -8
index 7ffccc8369dc..5ef14c176b11 100644

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

examples/qos_sched/init.c +3 -3
index 1abe003fc6ae..e750928fb89d 100644

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

examples/rxtx_callbacks/main.c +4 -4
index 6f20f98b2b30..08df716dc0fb 100644

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

examples/server_node_efd/server/init.c +4 -4
index 9ebd88bac20e..074fee5b26b2 100644

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

examples/skeleton/basicfwd.c +2 -2
index ae08261befd7..737df4ca2a17 100644

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

examples/vhost/main.c +14 -14
index bc3d71c8984e..b1d363ae21db 100644

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

examples/vm_power_manager/main.c +3 -3
index 7d5bf6855426..dddcde40efe2 100644

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

examples/vmdq/main.c +10 -10
index d3bc19f78ee5..16782a5d850f 100644

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

examples/vmdq_dcb/main.c +20 -20
index 685a03bdd194..3677a34da849 100644

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

lib/ethdev/rte_ethdev.c +95 -98

193 lines not on this page · raw message

lib/ethdev/rte_ethdev.h +615 -382

997 lines not on this page · raw message

lib/ethdev/rte_ethdev_core.h +1 -1
index edf96de2dc2e..8e6156a62aa9 100644

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

lib/ethdev/rte_flow.h +1 -1
index 70f455d47d60..4152067368b8 100644

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

lib/gso/rte_gso.c +10 -10
index 0d02ec3cee05..119fdcac0b7f 100644

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

lib/gso/rte_gso.h +2 -2
index d93ee8e5b171..0a65afc11e64 100644

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

lib/mbuf/rte_mbuf_core.h +4 -4
index bb38d7f58102..50e611e887bf 100644

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

lib/mbuf/rte_mbuf_dyn.h +1 -1
index 13f06d8ed25b..be43f8c328e1 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.31.1

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

#16 lore raw

30/08/2021 19:19, Ferruh Yigit:

Quoted 360 lines

Add 'RTE_ETH' namespace to all enums & macros in a backward compatible way. The macros for backward compatibility can be removed in next LTS. Also updated some struct names to have 'rte_eth' prefix.

All internal components switched to using new names.

Syntax fixed on lines that this patch touches.

---
Cc: David Marchand <[email protected]>

v2:
* Updated internal components
* Removed deprecation notice

v3:
* Updated missing macros / structs that David highlighted
* Added release notes update

---
 app/proc-info/main.c                          |   8 +-
 app/test-eventdev/test_perf_common.c          |   4 +-
 app/test-eventdev/test_pipeline_common.c      |  12 +-
 app/test-flow-perf/config.h                   |   2 +-
 app/test-pipeline/init.c                      |   8 +-
 app/test-pmd/cmdline.c                        | 298 +++---
 app/test-pmd/config.c                         | 202 ++--
 app/test-pmd/csumonly.c                       |  28 +-
 app/test-pmd/flowgen.c                        |   6 +-
 app/test-pmd/macfwd.c                         |   6 +-
 app/test-pmd/macswap_common.h                 |   6 +-
 app/test-pmd/parameters.c                     |  54 +-
 app/test-pmd/testpmd.c                        |  60 +-
 app/test-pmd/testpmd.h                        |   2 +-
 app/test-pmd/txonly.c                         |   6 +-
 app/test/test_ethdev_link.c                   |  68 +-
 app/test/test_event_eth_rx_adapter.c          |   4 +-
 app/test/test_kni.c                           |   2 +-
 app/test/test_link_bonding.c                  |   4 +-
 app/test/test_link_bonding_mode4.c            |   4 +-
 app/test/test_link_bonding_rssconf.c          |  28 +-
 app/test/test_pmd_perf.c                      |  12 +-
 app/test/virtual_pmd.c                        |  10 +-
 doc/guides/eventdevs/cnxk.rst                 |   2 +-
 doc/guides/eventdevs/octeontx2.rst            |   2 +-
 doc/guides/howto/debug_troubleshoot.rst       |   2 +-
 doc/guides/nics/bnxt.rst                      |  26 +-
 doc/guides/nics/enic.rst                      |   2 +-
 doc/guides/nics/features.rst                  | 116 +-
 doc/guides/nics/fm10k.rst                     |   6 +-
 doc/guides/nics/intel_vf.rst                  |  10 +-
 doc/guides/nics/ixgbe.rst                     |  12 +-
 doc/guides/nics/mlx5.rst                      |   4 +-
 doc/guides/nics/tap.rst                       |   2 +-
 .../generic_segmentation_offload_lib.rst      |   8 +-
 doc/guides/prog_guide/mbuf_lib.rst            |  18 +-
 doc/guides/prog_guide/poll_mode_drv.rst       |   8 +-
 doc/guides/prog_guide/rte_flow.rst            |  34 +-
 doc/guides/prog_guide/rte_security.rst        |   2 +-
 doc/guides/rel_notes/deprecation.rst          |  12 +-
 doc/guides/rel_notes/release_21_11.rst        |   3 +
 doc/guides/sample_app_ug/ipsec_secgw.rst      |   4 +-
 doc/guides/testpmd_app_ug/run_app.rst         |   2 +-
 drivers/bus/dpaa/include/process.h            |  16 +-
 drivers/common/cnxk/roc_npc.h                 |   2 +-
 drivers/net/af_packet/rte_eth_af_packet.c     |  16 +-
 drivers/net/af_xdp/rte_eth_af_xdp.c           |  12 +-
 drivers/net/ark/ark_ethdev.c                  |  16 +-
 drivers/net/atlantic/atl_ethdev.c             |  90 +-
 drivers/net/atlantic/atl_ethdev.h             |  18 +-
 drivers/net/atlantic/atl_rxtx.c               |   6 +-
 drivers/net/avp/avp_ethdev.c                  |  26 +-
 drivers/net/axgbe/axgbe_dev.c                 |   6 +-
 drivers/net/axgbe/axgbe_ethdev.c              | 110 +-
 drivers/net/axgbe/axgbe_ethdev.h              |  12 +-
 drivers/net/axgbe/axgbe_mdio.c                |   2 +-
 drivers/net/axgbe/axgbe_rxtx.c                |   6 +-
 drivers/net/bnx2x/bnx2x_ethdev.c              |  16 +-
 drivers/net/bnxt/bnxt.h                       |  68 +-
 drivers/net/bnxt/bnxt_ethdev.c                | 178 ++--
 drivers/net/bnxt/bnxt_flow.c                  |   4 +-
 drivers/net/bnxt/bnxt_hwrm.c                  | 112 +-
 drivers/net/bnxt/bnxt_reps.c                  |   2 +-
 drivers/net/bnxt/bnxt_ring.c                  |   4 +-
 drivers/net/bnxt/bnxt_rxq.c                   |  28 +-
 drivers/net/bnxt/bnxt_rxr.c                   |   4 +-
 drivers/net/bnxt/bnxt_rxtx_vec_avx2.c         |   2 +-
 drivers/net/bnxt/bnxt_rxtx_vec_common.h       |   2 +-
 drivers/net/bnxt/bnxt_rxtx_vec_neon.c         |   2 +-
 drivers/net/bnxt/bnxt_rxtx_vec_sse.c          |   2 +-
 drivers/net/bnxt/bnxt_txr.c                   |   4 +-
 drivers/net/bnxt/bnxt_vnic.c                  |  30 +-
 drivers/net/bnxt/rte_pmd_bnxt.c               |   8 +-
 drivers/net/bonding/eth_bond_private.h        |   4 +-
 drivers/net/bonding/rte_eth_bond_8023ad.c     |  16 +-
 drivers/net/bonding/rte_eth_bond_api.c        |   6 +-
 drivers/net/bonding/rte_eth_bond_pmd.c        |  56 +-
 drivers/net/cnxk/cn10k_ethdev.c               |  38 +-
 drivers/net/cnxk/cn10k_rx.c                   |   4 +-
 drivers/net/cnxk/cn10k_tx.c                   |   4 +-
 drivers/net/cnxk/cn9k_ethdev.c                |  56 +-
 drivers/net/cnxk/cn9k_rx.c                    |   4 +-
 drivers/net/cnxk/cn9k_tx.c                    |   4 +-
 drivers/net/cnxk/cnxk_ethdev.c                |  84 +-
 drivers/net/cnxk/cnxk_ethdev.h                |  49 +-
 drivers/net/cnxk/cnxk_ethdev_devargs.c        |   6 +-
 drivers/net/cnxk/cnxk_ethdev_ops.c            | 112 +-
 drivers/net/cnxk/cnxk_link.c                  |  14 +-
 drivers/net/cnxk/cnxk_ptp.c                   |   4 +-
 drivers/net/cnxk/cnxk_rte_flow.c              |   2 +-
 drivers/net/cxgbe/cxgbe.h                     |  48 +-
 drivers/net/cxgbe/cxgbe_ethdev.c              |  50 +-
 drivers/net/cxgbe/cxgbe_main.c                |  12 +-
 drivers/net/cxgbe/sge.c                       |   2 +-
 drivers/net/dpaa/dpaa_ethdev.c                | 190 ++--
 drivers/net/dpaa/dpaa_ethdev.h                |  10 +-
 drivers/net/dpaa/dpaa_flow.c                  |  32 +-
 drivers/net/dpaa2/base/dpaa2_hw_dpni.c        |  34 +-
 drivers/net/dpaa2/dpaa2_ethdev.c              | 148 +--
 drivers/net/dpaa2/dpaa2_ethdev.h              |  12 +-
 drivers/net/dpaa2/dpaa2_rxtx.c                |   8 +-
 drivers/net/e1000/e1000_ethdev.h              |  18 +-
 drivers/net/e1000/em_ethdev.c                 |  68 +-
 drivers/net/e1000/em_rxtx.c                   |  48 +-
 drivers/net/e1000/igb_ethdev.c                | 166 +--
 drivers/net/e1000/igb_pf.c                    |   2 +-
 drivers/net/e1000/igb_rxtx.c                  | 120 +--
 drivers/net/ena/ena_ethdev.c                  |  70 +-
 drivers/net/ena/ena_ethdev.h                  |   4 +-
 drivers/net/ena/ena_rss.c                     |  76 +-
 drivers/net/enetc/enetc_ethdev.c              |  38 +-
 drivers/net/enic/enic.h                       |   2 +-
 drivers/net/enic/enic_ethdev.c                |  88 +-
 drivers/net/enic/enic_main.c                  |  40 +-
 drivers/net/enic/enic_res.c                   |  52 +-
 drivers/net/failsafe/failsafe.c               |   8 +-
 drivers/net/failsafe/failsafe_intr.c          |   4 +-
 drivers/net/failsafe/failsafe_ops.c           |  82 +-
 drivers/net/fm10k/fm10k.h                     |   4 +-
 drivers/net/fm10k/fm10k_ethdev.c              | 148 +--
 drivers/net/fm10k/fm10k_rxtx_vec.c            |   6 +-
 drivers/net/hinic/base/hinic_pmd_hwdev.c      |  22 +-
 drivers/net/hinic/hinic_pmd_ethdev.c          | 142 +--
 drivers/net/hinic/hinic_pmd_rx.c              |  36 +-
 drivers/net/hinic/hinic_pmd_rx.h              |  22 +-
 drivers/net/hns3/hns3_dcb.c                   |  14 +-
 drivers/net/hns3/hns3_ethdev.c                | 360 +++----
 drivers/net/hns3/hns3_ethdev.h                |  12 +-
 drivers/net/hns3/hns3_ethdev_vf.c             | 108 +-
 drivers/net/hns3/hns3_flow.c                  |   6 +-
 drivers/net/hns3/hns3_ptp.c                   |   2 +-
 drivers/net/hns3/hns3_rss.c                   | 108 +-
 drivers/net/hns3/hns3_rss.h                   |  28 +-
 drivers/net/hns3/hns3_rxtx.c                  |  30 +-
 drivers/net/hns3/hns3_rxtx.h                  |   2 +-
 drivers/net/hns3/hns3_rxtx_vec.c              |  10 +-
 drivers/net/i40e/i40e_ethdev.c                | 278 ++---
 drivers/net/i40e/i40e_ethdev.h                |  24 +-
 drivers/net/i40e/i40e_ethdev_vf.c             | 118 +--
 drivers/net/i40e/i40e_flow.c                  |   2 +-
 drivers/net/i40e/i40e_hash.c                  | 156 +--
 drivers/net/i40e/i40e_pf.c                    |  14 +-
 drivers/net/i40e/i40e_rxtx.c                  |  10 +-
 drivers/net/i40e/i40e_rxtx.h                  |   4 +-
 drivers/net/i40e/i40e_rxtx_vec_avx512.c       |   2 +-
 drivers/net/i40e/i40e_rxtx_vec_common.h       |   8 +-
 drivers/net/i40e/i40e_vf_representor.c        |  48 +-
 drivers/net/iavf/iavf.h                       |  24 +-
 drivers/net/iavf/iavf_ethdev.c                | 186 ++--
 drivers/net/iavf/iavf_hash.c                  | 300 +++---
 drivers/net/iavf/iavf_rxtx.c                  |   2 +-
 drivers/net/iavf/iavf_rxtx.h                  |  24 +-
 drivers/net/iavf/iavf_rxtx_vec_avx2.c         |   4 +-
 drivers/net/iavf/iavf_rxtx_vec_avx512.c       |   6 +-
 drivers/net/iavf/iavf_rxtx_vec_sse.c          |   2 +-
 drivers/net/ice/ice_dcf.c                     |   2 +-
 drivers/net/ice/ice_dcf_ethdev.c              |  90 +-
 drivers/net/ice/ice_dcf_vf_representor.c      |  58 +-
 drivers/net/ice/ice_ethdev.c                  | 190 ++--
 drivers/net/ice/ice_ethdev.h                  |  26 +-
 drivers/net/ice/ice_hash.c                    | 268 ++---
 drivers/net/ice/ice_rxtx.c                    |   8 +-
 drivers/net/ice/ice_rxtx_vec_avx2.c           |   2 +-
 drivers/net/ice/ice_rxtx_vec_avx512.c         |   4 +-
 drivers/net/ice/ice_rxtx_vec_common.h         |  26 +-
 drivers/net/ice/ice_rxtx_vec_sse.c            |   2 +-
 drivers/net/igc/igc_ethdev.c                  | 146 +--
 drivers/net/igc/igc_ethdev.h                  |  56 +-
 drivers/net/igc/igc_txrx.c                    |  50 +-
 drivers/net/ionic/ionic_ethdev.c              | 140 +--
 drivers/net/ionic/ionic_ethdev.h              |  12 +-
 drivers/net/ionic/ionic_lif.c                 |  36 +-
 drivers/net/ionic/ionic_rxtx.c                |  10 +-
 drivers/net/ipn3ke/ipn3ke_representor.c       |  70 +-
 drivers/net/ixgbe/ixgbe_ethdev.c              | 313 +++---
 drivers/net/ixgbe/ixgbe_ethdev.h              |  18 +-
 drivers/net/ixgbe/ixgbe_fdir.c                |  24 +-
 drivers/net/ixgbe/ixgbe_flow.c                |   2 +-
 drivers/net/ixgbe/ixgbe_ipsec.c               |  12 +-
 drivers/net/ixgbe/ixgbe_pf.c                  |  38 +-
 drivers/net/ixgbe/ixgbe_rxtx.c                | 253 +++--
 drivers/net/ixgbe/ixgbe_rxtx.h                |   4 +-
 drivers/net/ixgbe/ixgbe_rxtx_vec_common.h     |   2 +-
 drivers/net/ixgbe/ixgbe_tm.c                  |  16 +-
 drivers/net/ixgbe/ixgbe_vf_representor.c      |  16 +-
 drivers/net/ixgbe/rte_pmd_ixgbe.c             |  14 +-
 drivers/net/ixgbe/rte_pmd_ixgbe.h             |   4 +-
 drivers/net/kni/rte_eth_kni.c                 |   8 +-
 drivers/net/liquidio/lio_ethdev.c             | 118 +--
 drivers/net/memif/memif_socket.c              |   2 +-
 drivers/net/memif/rte_eth_memif.c             |  14 +-
 drivers/net/mlx4/mlx4_ethdev.c                |  32 +-
 drivers/net/mlx4/mlx4_flow.c                  |  30 +-
 drivers/net/mlx4/mlx4_intr.c                  |   8 +-
 drivers/net/mlx4/mlx4_rxq.c                   |  20 +-
 drivers/net/mlx4/mlx4_txq.c                   |  24 +-
 drivers/net/mlx5/linux/mlx5_ethdev_os.c       |  54 +-
 drivers/net/mlx5/linux/mlx5_os.c              |   6 +-
 drivers/net/mlx5/mlx5.c                       |   4 +-
 drivers/net/mlx5/mlx5.h                       |   2 +-
 drivers/net/mlx5/mlx5_defs.h                  |   6 +-
 drivers/net/mlx5/mlx5_ethdev.c                |   6 +-
 drivers/net/mlx5/mlx5_flow.c                  |  54 +-
 drivers/net/mlx5/mlx5_flow.h                  |  12 +-
 drivers/net/mlx5/mlx5_flow_dv.c               |  44 +-
 drivers/net/mlx5/mlx5_flow_verbs.c            |   4 +-
 drivers/net/mlx5/mlx5_rss.c                   |  10 +-
 drivers/net/mlx5/mlx5_rxq.c                   |  42 +-
 drivers/net/mlx5/mlx5_rxtx_vec.h              |   8 +-
 drivers/net/mlx5/mlx5_tx.c                    |  30 +-
 drivers/net/mlx5/mlx5_txq.c                   |  52 +-
 drivers/net/mlx5/mlx5_vlan.c                  |   4 +-
 drivers/net/mlx5/windows/mlx5_os.c            |   4 +-
 drivers/net/mvneta/mvneta_ethdev.c            |  34 +-
 drivers/net/mvneta/mvneta_ethdev.h            |  12 +-
 drivers/net/mvneta/mvneta_rxtx.c              |   2 +-
 drivers/net/mvpp2/mrvl_ethdev.c               | 116 +-
 drivers/net/netvsc/hn_ethdev.c                |  70 +-
 drivers/net/netvsc/hn_rndis.c                 |  50 +-
 drivers/net/nfb/nfb_ethdev.c                  |  20 +-
 drivers/net/nfb/nfb_rx.c                      |   2 +-
 drivers/net/nfp/nfp_common.c                  | 130 +--
 drivers/net/nfp/nfp_ethdev.c                  |   2 +-
 drivers/net/nfp/nfp_ethdev_vf.c               |   2 +-
 drivers/net/ngbe/ngbe_ethdev.c                |  50 +-
 drivers/net/null/rte_eth_null.c               |  28 +-
 drivers/net/octeontx/octeontx_ethdev.c        |  78 +-
 drivers/net/octeontx/octeontx_ethdev.h        |  32 +-
 drivers/net/octeontx/octeontx_ethdev_ops.c    |  26 +-
 drivers/net/octeontx2/otx2_ethdev.c           |  96 +-
 drivers/net/octeontx2/otx2_ethdev.h           |  66 +-
 drivers/net/octeontx2/otx2_ethdev_devargs.c   |  12 +-
 drivers/net/octeontx2/otx2_ethdev_ops.c       |  18 +-
 drivers/net/octeontx2/otx2_ethdev_sec.c       |   8 +-
 drivers/net/octeontx2/otx2_flow.c             |   2 +-
 drivers/net/octeontx2/otx2_flow_ctrl.c        |  36 +-
 drivers/net/octeontx2/otx2_flow_parse.c       |   4 +-
 drivers/net/octeontx2/otx2_link.c             |  40 +-
 drivers/net/octeontx2/otx2_mcast.c            |   2 +-
 drivers/net/octeontx2/otx2_ptp.c              |   4 +-
 drivers/net/octeontx2/otx2_rss.c              |  70 +-
 drivers/net/octeontx2/otx2_rx.c               |   4 +-
 drivers/net/octeontx2/otx2_tx.c               |   2 +-
 drivers/net/octeontx2/otx2_vlan.c             |  42 +-
 drivers/net/octeontx_ep/otx_ep_ethdev.c       |   8 +-
 drivers/net/octeontx_ep/otx_ep_rxtx.c         |   8 +-
 drivers/net/pcap/pcap_ethdev.c                |  12 +-
 drivers/net/pfe/pfe_ethdev.c                  |  18 +-
 drivers/net/qede/base/mcp_public.h            |   4 +-
 drivers/net/qede/qede_ethdev.c                | 152 +--
 drivers/net/qede/qede_filter.c                |  10 +-
 drivers/net/qede/qede_rxtx.c                  |   2 +-
 drivers/net/qede/qede_rxtx.h                  |  16 +-
 drivers/net/ring/rte_eth_ring.c               |  20 +-
 drivers/net/sfc/sfc.c                         |  30 +-
 drivers/net/sfc/sfc_ef100_rx.c                |  10 +-
 drivers/net/sfc/sfc_ef100_tx.c                |  20 +-
 drivers/net/sfc/sfc_ef10_essb_rx.c            |   4 +-
 drivers/net/sfc/sfc_ef10_rx.c                 |   8 +-
 drivers/net/sfc/sfc_ef10_tx.c                 |  32 +-
 drivers/net/sfc/sfc_ethdev.c                  |  52 +-
 drivers/net/sfc/sfc_flow.c                    |   2 +-
 drivers/net/sfc/sfc_port.c                    |  54 +-
 drivers/net/sfc/sfc_rx.c                      |  52 +-
 drivers/net/sfc/sfc_tx.c                      |  50 +-
 drivers/net/softnic/rte_eth_softnic.c         |  12 +-
 drivers/net/szedata2/rte_eth_szedata2.c       |  14 +-
 drivers/net/tap/rte_eth_tap.c                 | 104 +-
 drivers/net/tap/tap_rss.h                     |   2 +-
 drivers/net/thunderx/nicvf_ethdev.c           | 108 +-
 drivers/net/thunderx/nicvf_ethdev.h           |  42 +-
 drivers/net/txgbe/txgbe_ethdev.c              | 244 ++---
 drivers/net/txgbe/txgbe_ethdev.h              |  18 +-
 drivers/net/txgbe/txgbe_ethdev_vf.c           |  24 +-
 drivers/net/txgbe/txgbe_fdir.c                |  20 +-
 drivers/net/txgbe/txgbe_flow.c                |   2 +-
 drivers/net/txgbe/txgbe_ipsec.c               |  12 +-
 drivers/net/txgbe/txgbe_pf.c                  |  34 +-
 drivers/net/txgbe/txgbe_rxtx.c                | 312 +++---
 drivers/net/txgbe/txgbe_rxtx.h                |   4 +-
 drivers/net/txgbe/txgbe_tm.c                  |  16 +-
 drivers/net/vhost/rte_eth_vhost.c             |  16 +-
 drivers/net/virtio/virtio_ethdev.c            | 126 +--
 drivers/net/vmxnet3/vmxnet3_ethdev.c          |  74 +-
 drivers/net/vmxnet3/vmxnet3_ethdev.h          |  16 +-
 drivers/net/vmxnet3/vmxnet3_rxtx.c            |  16 +-
 examples/bbdev_app/main.c                     |   6 +-
 examples/bond/main.c                          |  14 +-
 examples/distributor/main.c                   |  12 +-
 examples/ethtool/ethtool-app/main.c           |   2 +-
 examples/ethtool/lib/rte_ethtool.c            |  18 +-
 .../pipeline_worker_generic.c                 |  16 +-
 .../eventdev_pipeline/pipeline_worker_tx.c    |  12 +-
 examples/flow_classify/flow_classify.c        |   4 +-
 examples/flow_filtering/main.c                |  16 +-
 examples/ioat/ioatfwd.c                       |   8 +-
 examples/ip_fragmentation/main.c              |  14 +-
 examples/ip_pipeline/link.c                   |  20 +-
 examples/ip_reassembly/main.c                 |  20 +-
 examples/ipsec-secgw/ipsec-secgw.c            |  34 +-
 examples/ipsec-secgw/sa.c                     |   8 +-
 examples/ipv4_multicast/main.c                |   8 +-
 examples/kni/main.c                           |  12 +-
 examples/l2fwd-crypto/main.c                  |  10 +-
 examples/l2fwd-event/l2fwd_common.c           |  10 +-
 examples/l2fwd-event/main.c                   |   2 +-
 examples/l2fwd-jobstats/main.c                |   8 +-
 examples/l2fwd-keepalive/main.c               |   8 +-
 examples/l2fwd/main.c                         |   8 +-
 examples/l3fwd-acl/main.c                     |  20 +-
 examples/l3fwd-graph/main.c                   |  16 +-
 examples/l3fwd-power/main.c                   |  18 +-
 examples/l3fwd/l3fwd_event.c                  |   4 +-
 examples/l3fwd/main.c                         |  20 +-
 examples/link_status_interrupt/main.c         |  10 +-
 .../client_server_mp/mp_server/init.c         |   4 +-
 examples/multi_process/symmetric_mp/main.c    |  14 +-
 examples/ntb/ntb_fwd.c                        |   6 +-
 examples/packet_ordering/main.c               |   4 +-
 .../performance-thread/l3fwd-thread/main.c    |  18 +-
 examples/pipeline/obj.c                       |  20 +-
 examples/ptpclient/ptpclient.c                |  10 +-
 examples/qos_meter/main.c                     |  16 +-
 examples/qos_sched/init.c                     |   6 +-
 examples/rxtx_callbacks/main.c                |   8 +-
 examples/server_node_efd/server/init.c        |   8 +-
 examples/skeleton/basicfwd.c                  |   4 +-
 examples/vhost/main.c                         |  28 +-
 examples/vm_power_manager/main.c              |   6 +-
 examples/vmdq/main.c                          |  20 +-
 examples/vmdq_dcb/main.c                      |  40 +-
 lib/ethdev/rte_ethdev.c                       | 193 ++--
Quoted 8 lines
 lib/ethdev/rte_ethdev.h                       | 997 +++++++++++-------
 lib/ethdev/rte_ethdev_core.h                  |   2 +-
 lib/ethdev/rte_flow.h                         |   2 +-
 lib/gso/rte_gso.c                             |  20 +-
 lib/gso/rte_gso.h                             |   4 +-
 lib/mbuf/rte_mbuf_core.h                      |   8 +-
 lib/mbuf/rte_mbuf_dyn.h                       |   2 +-
 339 files changed, 6728 insertions(+), 6500 deletions(-)

I would love having some script with such a mass change. The two usages of scripting would be:
1/ convert to old names for backport of future patches 2/ convert applications to new names

For the first usage, we could update this script:
devtools/update-patches.py

A coccinelle script could be added to devtools/cocci/

#17 lore raw

PATCH v4 1/1 ethdev: add namespace

In reply to Ferruh Yigit

Add 'RTE_ETH' namespace to all enums & macros in a backward compatible Add 'RTE_ETH' namespace to all enums & macros in a backward compatible way. The macros for backward compatibility can be removed in next LTS. Also updated some struct names to have 'rte_eth' prefix.

All internal components switched to using new names.

Syntax fixed on lines that this patch touches.

---
Cc: David Marchand <[email protected]>
Cc: Thomas Monjalon <[email protected]>

v2:
* Updated internal components
* Removed deprecation notice

v3:
* Updated missing macros / structs that David highlighted
* Added release notes update

v4:
* rebased on latest next-net
* depends on https://patches.dpdk.org/user/todo/dpdk/?series=19744
* Not able to complete scripts to update user code, although some shared by Aman:
https://patches.dpdk.org/project/dpdk/patch/[email protected]/
Sending new version for possible option to get this patch for -rc1 and work for scripts later, before release.

---
 app/proc-info/main.c                          |    8 +-
 app/test-eventdev/test_perf_common.c          |    4 +-
 app/test-eventdev/test_pipeline_common.c      |   10 +-
 app/test-flow-perf/config.h                   |    2 +-
 app/test-pipeline/init.c                      |    8 +-
 app/test-pmd/cmdline.c                        |  286 ++---
 app/test-pmd/config.c                         |  200 ++--
 app/test-pmd/csumonly.c                       |   28 +-
 app/test-pmd/flowgen.c                        |    6 +-
 app/test-pmd/macfwd.c                         |    6 +-
 app/test-pmd/macswap_common.h                 |    6 +-
 app/test-pmd/parameters.c                     |   54 +-
 app/test-pmd/testpmd.c                        |   52 +-
 app/test-pmd/testpmd.h                        |    2 +-
 app/test-pmd/txonly.c                         |    6 +-
 app/test/test_ethdev_link.c                   |   68 +-
 app/test/test_event_eth_rx_adapter.c          |    4 +-
 app/test/test_kni.c                           |    2 +-
 app/test/test_link_bonding.c                  |    4 +-
 app/test/test_link_bonding_mode4.c            |    4 +-
 app/test/test_link_bonding_rssconf.c          |   28 +-
 app/test/test_pmd_perf.c                      |   12 +-
 app/test/virtual_pmd.c                        |   10 +-
 doc/guides/eventdevs/cnxk.rst                 |    2 +-
 doc/guides/eventdevs/octeontx2.rst            |    2 +-
 doc/guides/nics/af_packet.rst                 |    2 +-
 doc/guides/nics/bnxt.rst                      |   24 +-
 doc/guides/nics/enic.rst                      |    2 +-
 doc/guides/nics/features.rst                  |  114 +-
 doc/guides/nics/fm10k.rst                     |    6 +-
 doc/guides/nics/intel_vf.rst                  |   10 +-
 doc/guides/nics/ixgbe.rst                     |   12 +-
 doc/guides/nics/mlx5.rst                      |    4 +-
 doc/guides/nics/tap.rst                       |    2 +-
 .../generic_segmentation_offload_lib.rst      |    8 +-
 doc/guides/prog_guide/mbuf_lib.rst            |   18 +-
 doc/guides/prog_guide/poll_mode_drv.rst       |    8 +-
 doc/guides/prog_guide/rte_flow.rst            |   34 +-
 doc/guides/prog_guide/rte_security.rst        |    2 +-
 doc/guides/rel_notes/deprecation.rst          |   10 +-
 doc/guides/rel_notes/release_21_11.rst        |    3 +
 doc/guides/sample_app_ug/ipsec_secgw.rst      |    4 +-
 doc/guides/testpmd_app_ug/run_app.rst         |    2 +-
 drivers/bus/dpaa/include/process.h            |   16 +-
 drivers/common/cnxk/roc_npc.h                 |    2 +-
 drivers/net/af_packet/rte_eth_af_packet.c     |   20 +-
 drivers/net/af_xdp/rte_eth_af_xdp.c           |   12 +-
 drivers/net/ark/ark_ethdev.c                  |   16 +-
 drivers/net/atlantic/atl_ethdev.c             |   88 +-
 drivers/net/atlantic/atl_ethdev.h             |   18 +-
 drivers/net/atlantic/atl_rxtx.c               |    6 +-
 drivers/net/avp/avp_ethdev.c                  |   26 +-
 drivers/net/axgbe/axgbe_dev.c                 |    6 +-
 drivers/net/axgbe/axgbe_ethdev.c              |  104 +-
 drivers/net/axgbe/axgbe_ethdev.h              |   12 +-
 drivers/net/axgbe/axgbe_mdio.c                |    2 +-
 drivers/net/axgbe/axgbe_rxtx.c                |    6 +-
 drivers/net/bnx2x/bnx2x_ethdev.c              |   12 +-
 drivers/net/bnxt/bnxt.h                       |   62 +-
 drivers/net/bnxt/bnxt_ethdev.c                |  172 +--
 drivers/net/bnxt/bnxt_flow.c                  |    6 +-
 drivers/net/bnxt/bnxt_hwrm.c                  |  112 +-
 drivers/net/bnxt/bnxt_reps.c                  |    2 +-
 drivers/net/bnxt/bnxt_ring.c                  |    4 +-
 drivers/net/bnxt/bnxt_rxq.c                   |   28 +-
 drivers/net/bnxt/bnxt_rxr.c                   |    4 +-
 drivers/net/bnxt/bnxt_rxtx_vec_avx2.c         |    2 +-
 drivers/net/bnxt/bnxt_rxtx_vec_common.h       |    2 +-
 drivers/net/bnxt/bnxt_rxtx_vec_neon.c         |    2 +-
 drivers/net/bnxt/bnxt_rxtx_vec_sse.c          |    2 +-
 drivers/net/bnxt/bnxt_txr.c                   |    4 +-
 drivers/net/bnxt/bnxt_vnic.c                  |   30 +-
 drivers/net/bnxt/rte_pmd_bnxt.c               |    8 +-
 drivers/net/bonding/eth_bond_private.h        |    4 +-
 drivers/net/bonding/rte_eth_bond_8023ad.c     |   16 +-
 drivers/net/bonding/rte_eth_bond_api.c        |    6 +-
 drivers/net/bonding/rte_eth_bond_pmd.c        |   50 +-
 drivers/net/cnxk/cn10k_ethdev.c               |   42 +-
 drivers/net/cnxk/cn10k_rx.c                   |    4 +-
 drivers/net/cnxk/cn10k_tx.c                   |    4 +-
 drivers/net/cnxk/cn9k_ethdev.c                |   60 +-
 drivers/net/cnxk/cn9k_rx.c                    |    4 +-
 drivers/net/cnxk/cn9k_tx.c                    |    4 +-
 drivers/net/cnxk/cnxk_ethdev.c                |  112 +-
 drivers/net/cnxk/cnxk_ethdev.h                |   49 +-
 drivers/net/cnxk/cnxk_ethdev_devargs.c        |    6 +-
 drivers/net/cnxk/cnxk_ethdev_ops.c            |  106 +-
 drivers/net/cnxk/cnxk_link.c                  |   14 +-
 drivers/net/cnxk/cnxk_ptp.c                   |    4 +-
 drivers/net/cnxk/cnxk_rte_flow.c              |    2 +-
 drivers/net/cxgbe/cxgbe.h                     |   46 +-
 drivers/net/cxgbe/cxgbe_ethdev.c              |   42 +-
 drivers/net/cxgbe/cxgbe_main.c                |   12 +-
 drivers/net/dpaa/dpaa_ethdev.c                |  180 +--
 drivers/net/dpaa/dpaa_ethdev.h                |   10 +-
 drivers/net/dpaa/dpaa_flow.c                  |   32 +-
 drivers/net/dpaa2/base/dpaa2_hw_dpni.c        |   47 +-
 drivers/net/dpaa2/dpaa2_ethdev.c              |  138 +--
 drivers/net/dpaa2/dpaa2_ethdev.h              |   22 +-
 drivers/net/dpaa2/dpaa2_rxtx.c                |    8 +-
 drivers/net/e1000/e1000_ethdev.h              |   18 +-
 drivers/net/e1000/em_ethdev.c                 |   64 +-
 drivers/net/e1000/em_rxtx.c                   |   38 +-
 drivers/net/e1000/igb_ethdev.c                |  158 +--
 drivers/net/e1000/igb_pf.c                    |    2 +-
 drivers/net/e1000/igb_rxtx.c                  |  116 +-
 drivers/net/ena/ena_ethdev.c                  |   66 +-
 drivers/net/ena/ena_ethdev.h                  |    4 +-
 drivers/net/ena/ena_rss.c                     |   74 +-
 drivers/net/enetc/enetc_ethdev.c              |   30 +-
 drivers/net/enic/enic.h                       |    2 +-
 drivers/net/enic/enic_ethdev.c                |   88 +-
 drivers/net/enic/enic_main.c                  |   40 +-
 drivers/net/enic/enic_res.c                   |   50 +-
 drivers/net/failsafe/failsafe.c               |    8 +-
 drivers/net/failsafe/failsafe_intr.c          |    4 +-
 drivers/net/failsafe/failsafe_ops.c           |   78 +-
 drivers/net/fm10k/fm10k.h                     |    4 +-
 drivers/net/fm10k/fm10k_ethdev.c              |  146 +--
 drivers/net/fm10k/fm10k_rxtx_vec.c            |    6 +-
 drivers/net/hinic/base/hinic_pmd_hwdev.c      |   22 +-
 drivers/net/hinic/hinic_pmd_ethdev.c          |  136 +--
 drivers/net/hinic/hinic_pmd_rx.c              |   36 +-
 drivers/net/hinic/hinic_pmd_rx.h              |   22 +-
 drivers/net/hns3/hns3_dcb.c                   |   14 +-
 drivers/net/hns3/hns3_ethdev.c                |  352 +++---
 drivers/net/hns3/hns3_ethdev.h                |   12 +-
 drivers/net/hns3/hns3_ethdev_vf.c             |  100 +-
 drivers/net/hns3/hns3_flow.c                  |    6 +-
 drivers/net/hns3/hns3_ptp.c                   |    2 +-
 drivers/net/hns3/hns3_rss.c                   |  108 +-
 drivers/net/hns3/hns3_rss.h                   |   28 +-
 drivers/net/hns3/hns3_rxtx.c                  |   30 +-
 drivers/net/hns3/hns3_rxtx.h                  |    2 +-
 drivers/net/hns3/hns3_rxtx_vec.c              |   10 +-
 drivers/net/i40e/i40e_ethdev.c                |  272 ++---
 drivers/net/i40e/i40e_ethdev.h                |   24 +-
 drivers/net/i40e/i40e_flow.c                  |   32 +-
 drivers/net/i40e/i40e_hash.c                  |  156 +--
 drivers/net/i40e/i40e_pf.c                    |   14 +-
 drivers/net/i40e/i40e_rxtx.c                  |    8 +-
 drivers/net/i40e/i40e_rxtx.h                  |    4 +-
 drivers/net/i40e/i40e_rxtx_vec_avx512.c       |    2 +-
 drivers/net/i40e/i40e_rxtx_vec_common.h       |    8 +-
 drivers/net/i40e/i40e_vf_representor.c        |   48 +-
 drivers/net/iavf/iavf.h                       |   24 +-
 drivers/net/iavf/iavf_ethdev.c                |  178 +--
 drivers/net/iavf/iavf_hash.c                  |  320 ++---
 drivers/net/iavf/iavf_rxtx.c                  |    2 +-
 drivers/net/iavf/iavf_rxtx.h                  |   24 +-
 drivers/net/iavf/iavf_rxtx_vec_avx2.c         |    4 +-
 drivers/net/iavf/iavf_rxtx_vec_avx512.c       |    6 +-
 drivers/net/iavf/iavf_rxtx_vec_sse.c          |    2 +-
 drivers/net/ice/ice_dcf.c                     |    2 +-
 drivers/net/ice/ice_dcf_ethdev.c              |   86 +-
 drivers/net/ice/ice_dcf_vf_representor.c      |   56 +-
 drivers/net/ice/ice_ethdev.c                  |  180 +--
 drivers/net/ice/ice_ethdev.h                  |   26 +-
 drivers/net/ice/ice_hash.c                    |  290 ++---
 drivers/net/ice/ice_rxtx.c                    |   16 +-
 drivers/net/ice/ice_rxtx_vec_avx2.c           |    2 +-
 drivers/net/ice/ice_rxtx_vec_avx512.c         |    4 +-
 drivers/net/ice/ice_rxtx_vec_common.h         |   28 +-
 drivers/net/ice/ice_rxtx_vec_sse.c            |    2 +-
 drivers/net/igc/igc_ethdev.c                  |  138 +--
 drivers/net/igc/igc_ethdev.h                  |   54 +-
 drivers/net/igc/igc_txrx.c                    |   48 +-
 drivers/net/ionic/ionic_ethdev.c              |  138 +--
 drivers/net/ionic/ionic_ethdev.h              |   12 +-
 drivers/net/ionic/ionic_lif.c                 |   36 +-
 drivers/net/ionic/ionic_rxtx.c                |   10 +-
 drivers/net/ipn3ke/ipn3ke_representor.c       |   64 +-
 drivers/net/ixgbe/ixgbe_ethdev.c              |  285 +++--
 drivers/net/ixgbe/ixgbe_ethdev.h              |   18 +-
 drivers/net/ixgbe/ixgbe_fdir.c                |   24 +-
 drivers/net/ixgbe/ixgbe_flow.c                |    2 +-
 drivers/net/ixgbe/ixgbe_ipsec.c               |   12 +-
 drivers/net/ixgbe/ixgbe_pf.c                  |   34 +-
 drivers/net/ixgbe/ixgbe_rxtx.c                |  249 ++--
 drivers/net/ixgbe/ixgbe_rxtx.h                |    4 +-
 drivers/net/ixgbe/ixgbe_rxtx_vec_common.h     |    2 +-
 drivers/net/ixgbe/ixgbe_tm.c                  |   16 +-
 drivers/net/ixgbe/ixgbe_vf_representor.c      |   16 +-
 drivers/net/ixgbe/rte_pmd_ixgbe.c             |   14 +-
 drivers/net/ixgbe/rte_pmd_ixgbe.h             |    4 +-
 drivers/net/kni/rte_eth_kni.c                 |    8 +-
 drivers/net/liquidio/lio_ethdev.c             |  114 +-
 drivers/net/memif/memif_socket.c              |    2 +-
 drivers/net/memif/rte_eth_memif.c             |   16 +-
 drivers/net/mlx4/mlx4_ethdev.c                |   32 +-
 drivers/net/mlx4/mlx4_flow.c                  |   30 +-
 drivers/net/mlx4/mlx4_intr.c                  |    8 +-
 drivers/net/mlx4/mlx4_rxq.c                   |   18 +-
 drivers/net/mlx4/mlx4_txq.c                   |   24 +-
 drivers/net/mlx5/linux/mlx5_ethdev_os.c       |   54 +-
 drivers/net/mlx5/linux/mlx5_os.c              |    6 +-
 drivers/net/mlx5/mlx5.c                       |    4 +-
 drivers/net/mlx5/mlx5.h                       |    2 +-
 drivers/net/mlx5/mlx5_defs.h                  |    6 +-
 drivers/net/mlx5/mlx5_ethdev.c                |    6 +-
 drivers/net/mlx5/mlx5_flow.c                  |   54 +-
 drivers/net/mlx5/mlx5_flow.h                  |   12 +-
 drivers/net/mlx5/mlx5_flow_dv.c               |   44 +-
 drivers/net/mlx5/mlx5_flow_verbs.c            |    4 +-
 drivers/net/mlx5/mlx5_rss.c                   |   10 +-
 drivers/net/mlx5/mlx5_rxq.c                   |   40 +-
 drivers/net/mlx5/mlx5_rxtx_vec.h              |    8 +-
 drivers/net/mlx5/mlx5_tx.c                    |   30 +-
 drivers/net/mlx5/mlx5_txq.c                   |   58 +-
 drivers/net/mlx5/mlx5_vlan.c                  |    4 +-
 drivers/net/mlx5/windows/mlx5_os.c            |    4 +-
 drivers/net/mvneta/mvneta_ethdev.c            |   32 +-
 drivers/net/mvneta/mvneta_ethdev.h            |   10 +-
 drivers/net/mvneta/mvneta_rxtx.c              |    2 +-
 drivers/net/mvpp2/mrvl_ethdev.c               |  112 +-
 drivers/net/netvsc/hn_ethdev.c                |   70 +-
 drivers/net/netvsc/hn_rndis.c                 |   50 +-
 drivers/net/nfb/nfb_ethdev.c                  |   20 +-
 drivers/net/nfb/nfb_rx.c                      |    2 +-
 drivers/net/nfp/nfp_common.c                  |  122 +-
 drivers/net/nfp/nfp_ethdev.c                  |    2 +-
 drivers/net/nfp/nfp_ethdev_vf.c               |    2 +-
 drivers/net/ngbe/ngbe_ethdev.c                |   50 +-
 drivers/net/null/rte_eth_null.c               |   28 +-
 drivers/net/octeontx/octeontx_ethdev.c        |   74 +-
 drivers/net/octeontx/octeontx_ethdev.h        |   30 +-
 drivers/net/octeontx/octeontx_ethdev_ops.c    |   26 +-
 drivers/net/octeontx2/otx2_ethdev.c           |   96 +-
 drivers/net/octeontx2/otx2_ethdev.h           |   64 +-
 drivers/net/octeontx2/otx2_ethdev_devargs.c   |   12 +-
 drivers/net/octeontx2/otx2_ethdev_ops.c       |   14 +-
 drivers/net/octeontx2/otx2_ethdev_sec.c       |    8 +-
 drivers/net/octeontx2/otx2_flow.c             |    2 +-
 drivers/net/octeontx2/otx2_flow_ctrl.c        |   36 +-
 drivers/net/octeontx2/otx2_flow_parse.c       |    4 +-
 drivers/net/octeontx2/otx2_link.c             |   40 +-
 drivers/net/octeontx2/otx2_mcast.c            |    2 +-
 drivers/net/octeontx2/otx2_ptp.c              |    4 +-
 drivers/net/octeontx2/otx2_rss.c              |   70 +-
 drivers/net/octeontx2/otx2_rx.c               |    4 +-
 drivers/net/octeontx2/otx2_tx.c               |    2 +-
 drivers/net/octeontx2/otx2_vlan.c             |   42 +-
 drivers/net/octeontx_ep/otx_ep_ethdev.c       |    6 +-
 drivers/net/octeontx_ep/otx_ep_rxtx.c         |    6 +-
 drivers/net/pcap/pcap_ethdev.c                |   12 +-
 drivers/net/pfe/pfe_ethdev.c                  |   18 +-
 drivers/net/qede/base/mcp_public.h            |    4 +-
 drivers/net/qede/qede_ethdev.c                |  156 +--
 drivers/net/qede/qede_filter.c                |   42 +-
 drivers/net/qede/qede_rxtx.c                  |    2 +-
 drivers/net/qede/qede_rxtx.h                  |   16 +-
 drivers/net/ring/rte_eth_ring.c               |   20 +-
 drivers/net/sfc/sfc.c                         |   30 +-
 drivers/net/sfc/sfc_ef100_rx.c                |   10 +-
 drivers/net/sfc/sfc_ef100_tx.c                |   20 +-
 drivers/net/sfc/sfc_ef10_essb_rx.c            |    4 +-
 drivers/net/sfc/sfc_ef10_rx.c                 |    8 +-
 drivers/net/sfc/sfc_ef10_tx.c                 |   32 +-
 drivers/net/sfc/sfc_ethdev.c                  |   50 +-
 drivers/net/sfc/sfc_flow.c                    |    2 +-
 drivers/net/sfc/sfc_port.c                    |   52 +-
 drivers/net/sfc/sfc_repr.c                    |   10 +-
 drivers/net/sfc/sfc_rx.c                      |   50 +-
 drivers/net/sfc/sfc_tx.c                      |   50 +-
 drivers/net/softnic/rte_eth_softnic.c         |   12 +-
 drivers/net/szedata2/rte_eth_szedata2.c       |   14 +-
 drivers/net/tap/rte_eth_tap.c                 |  104 +-
 drivers/net/tap/tap_rss.h                     |    2 +-
 drivers/net/thunderx/nicvf_ethdev.c           |  102 +-
 drivers/net/thunderx/nicvf_ethdev.h           |   40 +-
 drivers/net/txgbe/txgbe_ethdev.c              |  242 ++--
 drivers/net/txgbe/txgbe_ethdev.h              |   18 +-
 drivers/net/txgbe/txgbe_ethdev_vf.c           |   24 +-
 drivers/net/txgbe/txgbe_fdir.c                |   20 +-
 drivers/net/txgbe/txgbe_flow.c                |    2 +-
 drivers/net/txgbe/txgbe_ipsec.c               |   12 +-
 drivers/net/txgbe/txgbe_pf.c                  |   34 +-
 drivers/net/txgbe/txgbe_rxtx.c                |  308 ++---
 drivers/net/txgbe/txgbe_rxtx.h                |    4 +-
 drivers/net/txgbe/txgbe_tm.c                  |   16 +-
 drivers/net/vhost/rte_eth_vhost.c             |   16 +-
 drivers/net/virtio/virtio_ethdev.c            |  124 +-
 drivers/net/vmxnet3/vmxnet3_ethdev.c          |   72 +-
 drivers/net/vmxnet3/vmxnet3_ethdev.h          |   16 +-
 drivers/net/vmxnet3/vmxnet3_rxtx.c            |   16 +-
 examples/bbdev_app/main.c                     |    6 +-
 examples/bond/main.c                          |   14 +-
 examples/distributor/main.c                   |   12 +-
 examples/ethtool/ethtool-app/main.c           |    2 +-
 examples/ethtool/lib/rte_ethtool.c            |   18 +-
 .../pipeline_worker_generic.c                 |   16 +-
 .../eventdev_pipeline/pipeline_worker_tx.c    |   12 +-
 examples/flow_classify/flow_classify.c        |    4 +-
 examples/flow_filtering/main.c                |   16 +-
 examples/ioat/ioatfwd.c                       |    8 +-
 examples/ip_fragmentation/main.c              |   12 +-
 examples/ip_pipeline/link.c                   |   20 +-
 examples/ip_reassembly/main.c                 |   18 +-
 examples/ipsec-secgw/ipsec-secgw.c            |   32 +-
 examples/ipsec-secgw/sa.c                     |    8 +-
 examples/ipv4_multicast/main.c                |    6 +-
 examples/kni/main.c                           |    8 +-
 examples/l2fwd-crypto/main.c                  |   10 +-
 examples/l2fwd-event/l2fwd_common.c           |   10 +-
 examples/l2fwd-event/main.c                   |    2 +-
 examples/l2fwd-jobstats/main.c                |    8 +-
 examples/l2fwd-keepalive/main.c               |    8 +-
 examples/l2fwd/main.c                         |    8 +-
 examples/l3fwd-acl/main.c                     |   18 +-
 examples/l3fwd-graph/main.c                   |   14 +-
 examples/l3fwd-power/main.c                   |   16 +-
 examples/l3fwd/l3fwd_event.c                  |    4 +-
 examples/l3fwd/main.c                         |   18 +-
 examples/link_status_interrupt/main.c         |   10 +-
 .../client_server_mp/mp_server/init.c         |    4 +-
 examples/multi_process/symmetric_mp/main.c    |   14 +-
 examples/ntb/ntb_fwd.c                        |    6 +-
 examples/packet_ordering/main.c               |    4 +-
 .../performance-thread/l3fwd-thread/main.c    |   16 +-
 examples/pipeline/obj.c                       |   20 +-
 examples/ptpclient/ptpclient.c                |   10 +-
 examples/qos_meter/main.c                     |   16 +-
 examples/qos_sched/init.c                     |    6 +-
 examples/rxtx_callbacks/main.c                |    8 +-
 examples/server_node_efd/server/init.c        |    8 +-
 examples/skeleton/basicfwd.c                  |    4 +-
 examples/vhost/main.c                         |   26 +-
 examples/vm_power_manager/main.c              |    6 +-
 examples/vmdq/main.c                          |   20 +-
 examples/vmdq_dcb/main.c                      |   40 +-
 lib/ethdev/ethdev_driver.h                    |   36 +-
 lib/ethdev/rte_ethdev.c                       |  181 ++-
 lib/ethdev/rte_ethdev.h                       | 1029 +++++++++++------
 lib/ethdev/rte_flow.h                         |    2 +-
 lib/gso/rte_gso.c                             |   20 +-
 lib/gso/rte_gso.h                             |    4 +-
 lib/mbuf/rte_mbuf_core.h                      |    8 +-
 lib/mbuf/rte_mbuf_dyn.h                       |    2 +-
 338 files changed, 6639 insertions(+), 6382 deletions(-)
app/proc-info/main.c +4 -4
index a8e928fa9ff3..963b6aa5c589 100644
@@ -757,11 +757,11 @@ show_port(void)
 		}
 
 		ret = rte_eth_dev_flow_ctrl_get(i, &fc_conf);
-		if (ret == 0 && fc_conf.mode != RTE_FC_NONE)  {
+		if (ret == 0 && fc_conf.mode != RTE_ETH_FC_NONE)  {
 			printf("\t  -- flow control mode %s%s high %u low %u pause %u%s%s\n",
-			       fc_conf.mode == RTE_FC_RX_PAUSE ? "rx " :
-			       fc_conf.mode == RTE_FC_TX_PAUSE ? "tx " :
-			       fc_conf.mode == RTE_FC_FULL ? "full" : "???",
+			       fc_conf.mode == RTE_ETH_FC_RX_PAUSE ? "rx " :
+			       fc_conf.mode == RTE_ETH_FC_TX_PAUSE ? "tx " :
+			       fc_conf.mode == RTE_ETH_FC_FULL ? "full" : "???",
 			       fc_conf.autoneg ? " auto" : "",
 			       fc_conf.high_water,
 			       fc_conf.low_water,
app/test-eventdev/test_perf_common.c +2 -2
index 660d5a0364b6..31d1b0e14653 100644
@@ -668,13 +668,13 @@ perf_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 	struct test_perf *t = evt_test_priv(test);
 	struct rte_eth_conf port_conf = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_RSS,
+			.mq_mode = RTE_ETH_MQ_RX_RSS,
 			.split_hdr_size = 0,
 		},
 		.rx_adv_conf = {
 			.rss_conf = {
 				.rss_key = NULL,
-				.rss_hf = ETH_RSS_IP,
+				.rss_hf = RTE_ETH_RSS_IP,
 			},
 		},
 	};
app/test-eventdev/test_pipeline_common.c +5 -5
index 2775e72c580d..d202091077a6 100644
@@ -176,12 +176,12 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 	struct rte_eth_rxconf rx_conf;
 	struct rte_eth_conf port_conf = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_RSS,
+			.mq_mode = RTE_ETH_MQ_RX_RSS,
 		},
 		.rx_adv_conf = {
 			.rss_conf = {
 				.rss_key = NULL,
-				.rss_hf = ETH_RSS_IP,
+				.rss_hf = RTE_ETH_RSS_IP,
 			},
 		},
 	};
@@ -223,7 +223,7 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 
 		if (!(caps & RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT))
 			local_port_conf.rxmode.offloads |=
-				DEV_RX_OFFLOAD_RSS_HASH;
+				RTE_ETH_RX_OFFLOAD_RSS_HASH;
 
 		ret = rte_eth_dev_info_get(i, &dev_info);
 		if (ret != 0) {
@@ -233,9 +233,9 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 		}
 
 		/* Enable mbuf fast free if PMD has the capability. */
-		if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_MBUF_FAST_FREE)
+		if (dev_info.tx_offload_capa & RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE)
 			local_port_conf.txmode.offloads |=
-				DEV_TX_OFFLOAD_MBUF_FAST_FREE;
+				RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE;
 
 		rx_conf = dev_info.default_rxconf;
 		rx_conf.offloads = port_conf.rxmode.offloads;
app/test-flow-perf/config.h +1 -1
index a14d4e05e185..4249b6175b82 100644
@@ -5,7 +5,7 @@
 #define FLOW_ITEM_MASK(_x) (UINT64_C(1) << _x)
 #define FLOW_ACTION_MASK(_x) (UINT64_C(1) << _x)
 #define FLOW_ATTR_MASK(_x) (UINT64_C(1) << _x)
-#define GET_RSS_HF() (ETH_RSS_IP)
+#define GET_RSS_HF() (RTE_ETH_RSS_IP)
 
 /* Configuration */
 #define RXQ_NUM 4
app/test-pipeline/init.c +4 -4
index fe37d63730c6..c73801904103 100644
@@ -70,16 +70,16 @@ struct app_params app = {
 static struct rte_eth_conf port_conf = {
 	.rxmode = {
 		.split_hdr_size = 0,
-		.offloads = DEV_RX_OFFLOAD_CHECKSUM,
+		.offloads = RTE_ETH_RX_OFFLOAD_CHECKSUM,
 	},
 	.rx_adv_conf = {
 		.rss_conf = {
 			.rss_key = NULL,
-			.rss_hf = ETH_RSS_IP,
+			.rss_hf = RTE_ETH_RSS_IP,
 		},
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 };
 
@@ -178,7 +178,7 @@ app_ports_check_link(void)
 		RTE_LOG(INFO, USER1, "Port %u %s\n",
 			port,
 			link_status_text);
-		if (link.link_status == ETH_LINK_DOWN)
+		if (link.link_status == RTE_ETH_LINK_DOWN)
 			all_ports_up = 0;
 	}
 
app/test-pmd/cmdline.c +143 -143

611 lines not on this page · raw message

app/test-pmd/config.c +100 -100

342 lines not on this page · raw message

app/test-pmd/csumonly.c +14 -14
index 090797318a35..75b24487e72e 100644
@@ -485,7 +485,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info,
 		if (info->l4_proto == IPPROTO_TCP && tso_segsz) {
 			ol_flags |= PKT_TX_IP_CKSUM;
 		} else {
-			if (tx_offloads & DEV_TX_OFFLOAD_IPV4_CKSUM) {
+			if (tx_offloads & RTE_ETH_TX_OFFLOAD_IPV4_CKSUM) {
 				ol_flags |= PKT_TX_IP_CKSUM;
 			} else {
 				ipv4_hdr->hdr_checksum = 0;
@@ -502,7 +502,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info,
 		udp_hdr = (struct rte_udp_hdr *)((char *)l3_hdr + info->l3_len);
 		/* do not recalculate udp cksum if it was 0 */
 		if (udp_hdr->dgram_cksum != 0) {
-			if (tx_offloads & DEV_TX_OFFLOAD_UDP_CKSUM) {
+			if (tx_offloads & RTE_ETH_TX_OFFLOAD_UDP_CKSUM) {
 				ol_flags |= PKT_TX_UDP_CKSUM;
 			} else {
 				udp_hdr->dgram_cksum = 0;
@@ -517,7 +517,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info,
 		tcp_hdr = (struct rte_tcp_hdr *)((char *)l3_hdr + info->l3_len);
 		if (tso_segsz)
 			ol_flags |= PKT_TX_TCP_SEG;
-		else if (tx_offloads & DEV_TX_OFFLOAD_TCP_CKSUM) {
+		else if (tx_offloads & RTE_ETH_TX_OFFLOAD_TCP_CKSUM) {
 			ol_flags |= PKT_TX_TCP_CKSUM;
 		} else {
 			tcp_hdr->cksum = 0;
@@ -532,7 +532,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info,
 			((char *)l3_hdr + info->l3_len);
 		/* sctp payload must be a multiple of 4 to be
 		 * offloaded */
-		if ((tx_offloads & DEV_TX_OFFLOAD_SCTP_CKSUM) &&
+		if ((tx_offloads & RTE_ETH_TX_OFFLOAD_SCTP_CKSUM) &&
 			((ipv4_hdr->total_length & 0x3) == 0)) {
 			ol_flags |= PKT_TX_SCTP_CKSUM;
 		} else {
@@ -559,7 +559,7 @@ process_outer_cksums(void *outer_l3_hdr, struct testpmd_offload_info *info,
 		ipv4_hdr->hdr_checksum = 0;
 		ol_flags |= PKT_TX_OUTER_IPV4;
 
-		if (tx_offloads	& DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM)
+		if (tx_offloads	& RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM)
 			ol_flags |= PKT_TX_OUTER_IP_CKSUM;
 		else
 			ipv4_hdr->hdr_checksum = rte_ipv4_cksum(ipv4_hdr);
@@ -576,7 +576,7 @@ process_outer_cksums(void *outer_l3_hdr, struct testpmd_offload_info *info,
 		ol_flags |= PKT_TX_TCP_SEG;
 
 	/* Skip SW outer UDP checksum generation if HW supports it */
-	if (tx_offloads & DEV_TX_OFFLOAD_OUTER_UDP_CKSUM) {
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM) {
 		if (info->outer_ethertype == _htons(RTE_ETHER_TYPE_IPV4))
 			udp_hdr->dgram_cksum
 				= rte_ipv4_phdr_cksum(ipv4_hdr, ol_flags);
@@ -959,9 +959,9 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
 		if (info.is_tunnel == 1) {
 			if (info.tunnel_tso_segsz ||
 			    (tx_offloads &
-			     DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM) ||
+			     RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM) ||
 			    (tx_offloads &
-			     DEV_TX_OFFLOAD_OUTER_UDP_CKSUM)) {
+			     RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM)) {
 				m->outer_l2_len = info.outer_l2_len;
 				m->outer_l3_len = info.outer_l3_len;
 				m->l2_len = info.l2_len;
@@ -1022,19 +1022,19 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
 					rte_be_to_cpu_16(info.outer_ethertype),
 					info.outer_l3_len);
 			/* dump tx packet info */
-			if ((tx_offloads & (DEV_TX_OFFLOAD_IPV4_CKSUM |
-					    DEV_TX_OFFLOAD_UDP_CKSUM |
-					    DEV_TX_OFFLOAD_TCP_CKSUM |
-					    DEV_TX_OFFLOAD_SCTP_CKSUM)) ||
+			if ((tx_offloads & (RTE_ETH_TX_OFFLOAD_IPV4_CKSUM |
+					    RTE_ETH_TX_OFFLOAD_UDP_CKSUM |
+					    RTE_ETH_TX_OFFLOAD_TCP_CKSUM |
+					    RTE_ETH_TX_OFFLOAD_SCTP_CKSUM)) ||
 				info.tso_segsz != 0)
 				printf("tx: m->l2_len=%d m->l3_len=%d "
 					"m->l4_len=%d\n",
 					m->l2_len, m->l3_len, m->l4_len);
 			if (info.is_tunnel == 1) {
 				if ((tx_offloads &
-				    DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM) ||
+				    RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM) ||
 				    (tx_offloads &
-				    DEV_TX_OFFLOAD_OUTER_UDP_CKSUM) ||
+				    RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM) ||
 				    (tx_ol_flags & PKT_TX_OUTER_IPV6))
 					printf("tx: m->outer_l2_len=%d "
 						"m->outer_l3_len=%d\n",
app/test-pmd/flowgen.c +3 -3
index 7ebed9fed334..03d026dec169 100644
@@ -99,11 +99,11 @@ pkt_burst_flow_gen(struct fwd_stream *fs)
 	vlan_tci_outer = ports[fs->tx_port].tx_vlan_id_outer;
 
 	tx_offloads = ports[fs->tx_port].dev_conf.txmode.offloads;
-	if (tx_offloads	& DEV_TX_OFFLOAD_VLAN_INSERT)
+	if (tx_offloads	& RTE_ETH_TX_OFFLOAD_VLAN_INSERT)
 		ol_flags |= PKT_TX_VLAN_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_QINQ_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_QINQ_INSERT)
 		ol_flags |= PKT_TX_QINQ_PKT;
-	if (tx_offloads	& DEV_TX_OFFLOAD_MACSEC_INSERT)
+	if (tx_offloads	& RTE_ETH_TX_OFFLOAD_MACSEC_INSERT)
 		ol_flags |= PKT_TX_MACSEC;
 
 	for (nb_pkt = 0; nb_pkt < nb_pkt_per_burst; nb_pkt++) {
app/test-pmd/macfwd.c +3 -3
index ee76df7f0323..57e00bca20e7 100644
@@ -72,11 +72,11 @@ pkt_burst_mac_forward(struct fwd_stream *fs)
 	fs->rx_packets += nb_rx;
 	txp = &ports[fs->tx_port];
 	tx_offloads = txp->dev_conf.txmode.offloads;
-	if (tx_offloads	& DEV_TX_OFFLOAD_VLAN_INSERT)
+	if (tx_offloads	& RTE_ETH_TX_OFFLOAD_VLAN_INSERT)
 		ol_flags = PKT_TX_VLAN_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_QINQ_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_QINQ_INSERT)
 		ol_flags |= PKT_TX_QINQ_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_MACSEC_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_MACSEC_INSERT)
 		ol_flags |= PKT_TX_MACSEC;
 	for (i = 0; i < nb_rx; i++) {
 		if (likely(i < nb_rx - 1))
app/test-pmd/macswap_common.h +3 -3
index 7e9a3590a436..7ade9a686b7c 100644
@@ -10,11 +10,11 @@ ol_flags_init(uint64_t tx_offload)
 {
 	uint64_t ol_flags = 0;
 
-	ol_flags |= (tx_offload & DEV_TX_OFFLOAD_VLAN_INSERT) ?
+	ol_flags |= (tx_offload & RTE_ETH_TX_OFFLOAD_VLAN_INSERT) ?
 			PKT_TX_VLAN : 0;
-	ol_flags |= (tx_offload & DEV_TX_OFFLOAD_QINQ_INSERT) ?
+	ol_flags |= (tx_offload & RTE_ETH_TX_OFFLOAD_QINQ_INSERT) ?
 			PKT_TX_QINQ : 0;
-	ol_flags |= (tx_offload & DEV_TX_OFFLOAD_MACSEC_INSERT) ?
+	ol_flags |= (tx_offload & RTE_ETH_TX_OFFLOAD_MACSEC_INSERT) ?
 			PKT_TX_MACSEC : 0;
 
 	return ol_flags;
app/test-pmd/parameters.c +27 -27

128 lines not on this page · raw message

app/test-pmd/testpmd.c +26 -26

154 lines not on this page · raw message

app/test-pmd/testpmd.h +1 -1
index dd8f27a296b6..697f1bf8cac6 100644
@@ -465,7 +465,7 @@ extern lcoreid_t bitrate_lcore_id;
 extern uint8_t bitrate_enabled;
 #endif
 
-extern struct rte_fdir_conf fdir_conf;
+extern struct rte_eth_fdir_conf fdir_conf;
 
 extern uint32_t max_rx_pkt_len;
 
app/test-pmd/txonly.c +3 -3
index e45f8840c91c..9eb7992815e8 100644
@@ -354,11 +354,11 @@ pkt_burst_transmit(struct fwd_stream *fs)
 	tx_offloads = txp->dev_conf.txmode.offloads;
 	vlan_tci = txp->tx_vlan_id;
 	vlan_tci_outer = txp->tx_vlan_id_outer;
-	if (tx_offloads	& DEV_TX_OFFLOAD_VLAN_INSERT)
+	if (tx_offloads	& RTE_ETH_TX_OFFLOAD_VLAN_INSERT)
 		ol_flags = PKT_TX_VLAN_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_QINQ_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_QINQ_INSERT)
 		ol_flags |= PKT_TX_QINQ_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_MACSEC_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_MACSEC_INSERT)
 		ol_flags |= PKT_TX_MACSEC;
 
 	/*
app/test/test_ethdev_link.c +34 -34

116 lines not on this page · raw message

app/test/test_event_eth_rx_adapter.c +2 -2
index add4d8a67821..a09253e91814 100644
@@ -103,7 +103,7 @@ port_init_rx_intr(uint16_t port, struct rte_mempool *mp)
 {
 	static const struct rte_eth_conf port_conf_default = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_NONE,
+			.mq_mode = RTE_ETH_MQ_RX_NONE,
 		},
 		.intr_conf = {
 			.rxq = 1,
@@ -118,7 +118,7 @@ port_init(uint16_t port, struct rte_mempool *mp)
 {
 	static const struct rte_eth_conf port_conf_default = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_NONE,
+			.mq_mode = RTE_ETH_MQ_RX_NONE,
 		},
 	};
 
app/test/test_kni.c +1 -1
index 96733554b6c4..40ab0d5c4ca4 100644
@@ -74,7 +74,7 @@ static const struct rte_eth_txconf tx_conf = {
 
 static const struct rte_eth_conf port_conf = {
 	.txmode = {
-		.mq_mode = ETH_DCB_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 };
 
app/test/test_link_bonding.c +2 -2
index 5388d18125a6..8a9ef851789f 100644
@@ -134,11 +134,11 @@ static uint16_t vlan_id = 0x100;
 
 static struct rte_eth_conf default_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 0,
 };
app/test/test_link_bonding_mode4.c +2 -2
index 189d2430f27e..351129de2f9b 100644
@@ -107,11 +107,11 @@ static struct link_bonding_unittest_params test_params  = {
 
 static struct rte_eth_conf default_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 0,
 };
app/test/test_link_bonding_rssconf.c +14 -14
index e7bb0497b663..f9eae9397386 100644
@@ -52,7 +52,7 @@ struct slave_conf {
 
 	struct rte_eth_rss_conf rss_conf;
 	uint8_t rss_key[40];
-	struct rte_eth_rss_reta_entry64 reta_conf[512 / RTE_RETA_GROUP_SIZE];
+	struct rte_eth_rss_reta_entry64 reta_conf[512 / RTE_ETH_RETA_GROUP_SIZE];
 
 	uint8_t is_slave;
 	struct rte_ring *rxtx_queue[RXTX_QUEUE_COUNT];
@@ -61,7 +61,7 @@ struct slave_conf {
 struct link_bonding_rssconf_unittest_params {
 	uint8_t bond_port_id;
 	struct rte_eth_dev_info bond_dev_info;
-	struct rte_eth_rss_reta_entry64 bond_reta_conf[512 / RTE_RETA_GROUP_SIZE];
+	struct rte_eth_rss_reta_entry64 bond_reta_conf[512 / RTE_ETH_RETA_GROUP_SIZE];
 	struct slave_conf slave_ports[SLAVE_COUNT];
 
 	struct rte_mempool *mbuf_pool;
@@ -80,27 +80,27 @@ static struct link_bonding_rssconf_unittest_params test_params  = {
  */
 static struct rte_eth_conf default_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 0,
 };
 
 static struct rte_eth_conf rss_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_RSS,
+		.mq_mode = RTE_ETH_MQ_RX_RSS,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.rx_adv_conf = {
 		.rss_conf = {
 			.rss_key = NULL,
-			.rss_hf = ETH_RSS_IPV6,
+			.rss_hf = RTE_ETH_RSS_IPV6,
 		},
 	},
 	.lpbk_mode = 0,
@@ -207,13 +207,13 @@ bond_slaves(void)
 static int
 reta_set(uint16_t port_id, uint8_t value, int reta_size)
 {
-	struct rte_eth_rss_reta_entry64 reta_conf[512/RTE_RETA_GROUP_SIZE];
+	struct rte_eth_rss_reta_entry64 reta_conf[512/RTE_ETH_RETA_GROUP_SIZE];
 	int i, j;
 
-	for (i = 0; i < reta_size / RTE_RETA_GROUP_SIZE; i++) {
+	for (i = 0; i < reta_size / RTE_ETH_RETA_GROUP_SIZE; i++) {
 		/* select all fields to set */
 		reta_conf[i].mask = ~0LL;
-		for (j = 0; j < RTE_RETA_GROUP_SIZE; j++)
+		for (j = 0; j < RTE_ETH_RETA_GROUP_SIZE; j++)
 			reta_conf[i].reta[j] = value;
 	}
 
@@ -232,8 +232,8 @@ reta_check_synced(struct slave_conf *port)
 	for (i = 0; i < test_params.bond_dev_info.reta_size;
 			i++) {
 
-		int index = i / RTE_RETA_GROUP_SIZE;
-		int shift = i % RTE_RETA_GROUP_SIZE;
+		int index = i / RTE_ETH_RETA_GROUP_SIZE;
+		int shift = i % RTE_ETH_RETA_GROUP_SIZE;
 
 		if (port->reta_conf[index].reta[shift] !=
 				test_params.bond_reta_conf[index].reta[shift])
@@ -251,7 +251,7 @@ static int
 bond_reta_fetch(void) {
 	unsigned j;
 
-	for (j = 0; j < test_params.bond_dev_info.reta_size / RTE_RETA_GROUP_SIZE;
+	for (j = 0; j < test_params.bond_dev_info.reta_size / RTE_ETH_RETA_GROUP_SIZE;
 			j++)
 		test_params.bond_reta_conf[j].mask = ~0LL;
 
@@ -268,7 +268,7 @@ static int
 slave_reta_fetch(struct slave_conf *port) {
 	unsigned j;
 
-	for (j = 0; j < port->dev_info.reta_size / RTE_RETA_GROUP_SIZE; j++)
+	for (j = 0; j < port->dev_info.reta_size / RTE_ETH_RETA_GROUP_SIZE; j++)
 		port->reta_conf[j].mask = ~0LL;
 
 	TEST_ASSERT_SUCCESS(rte_eth_dev_rss_reta_query(port->port_id,
app/test/test_pmd_perf.c +6 -6
index a3b4f52c65e6..1df86ce080e5 100644
@@ -62,11 +62,11 @@ static struct rte_ether_addr ports_eth_addr[RTE_MAX_ETHPORTS];
 
 static struct rte_eth_conf port_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 1,  /* enable loopback */
 };
@@ -155,7 +155,7 @@ check_all_ports_link_status(uint16_t port_num, uint32_t port_mask)
 				continue;
 			}
 			/* clear all_ports_up flag if any link down */
-			if (link.link_status == ETH_LINK_DOWN) {
+			if (link.link_status == RTE_ETH_LINK_DOWN) {
 				all_ports_up = 0;
 				break;
 			}
@@ -822,7 +822,7 @@ test_set_rxtx_conf(cmdline_fixed_string_t mode)
 		/* bulk alloc rx, full-featured tx */
 		tx_conf.tx_rs_thresh = 32;
 		tx_conf.tx_free_thresh = 32;
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_CHECKSUM;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_CHECKSUM;
 		return 0;
 	} else if (!strcmp(mode, "hybrid")) {
 		/* bulk alloc rx, vector tx
@@ -831,13 +831,13 @@ test_set_rxtx_conf(cmdline_fixed_string_t mode)
 		 */
 		tx_conf.tx_rs_thresh = 32;
 		tx_conf.tx_free_thresh = 32;
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_CHECKSUM;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_CHECKSUM;
 		return 0;
 	} else if (!strcmp(mode, "full")) {
 		/* full feature rx,tx pair */
 		tx_conf.tx_rs_thresh = 32;
 		tx_conf.tx_free_thresh = 32;
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_SCATTER;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_SCATTER;
 		return 0;
 	}
 
app/test/virtual_pmd.c +5 -5
index 7e15b47eb0fb..d9f2e4f66bde 100644
@@ -53,7 +53,7 @@ static int  virtual_ethdev_stop(struct rte_eth_dev *eth_dev __rte_unused)
 	void *pkt = NULL;
 	struct virtual_ethdev_private *prv = eth_dev->data->dev_private;
 
-	eth_dev->data->dev_link.link_status = ETH_LINK_DOWN;
+	eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 	eth_dev->data->dev_started = 0;
 	while (rte_ring_dequeue(prv->rx_queue, &pkt) != -ENOENT)
 		rte_pktmbuf_free(pkt);
@@ -168,7 +168,7 @@ virtual_ethdev_link_update_success(struct rte_eth_dev *bonded_eth_dev,
 		int wait_to_complete __rte_unused)
 {
 	if (!bonded_eth_dev->data->dev_started)
-		bonded_eth_dev->data->dev_link.link_status = ETH_LINK_DOWN;
+		bonded_eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 
 	return 0;
 }
@@ -562,9 +562,9 @@ virtual_ethdev_create(const char *name, struct rte_ether_addr *mac_addr,
 	eth_dev->data->nb_rx_queues = (uint16_t)1;
 	eth_dev->data->nb_tx_queues = (uint16_t)1;
 
-	eth_dev->data->dev_link.link_status = ETH_LINK_DOWN;
-	eth_dev->data->dev_link.link_speed = ETH_SPEED_NUM_10G;
-	eth_dev->data->dev_link.link_duplex = ETH_LINK_FULL_DUPLEX;
+	eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
+	eth_dev->data->dev_link.link_speed = RTE_ETH_SPEED_NUM_10G;
+	eth_dev->data->dev_link.link_duplex = RTE_ETH_LINK_FULL_DUPLEX;
 
 	eth_dev->data->mac_addrs = rte_zmalloc(name, RTE_ETHER_ADDR_LEN, 0);
 	if (eth_dev->data->mac_addrs == NULL)
doc/guides/eventdevs/cnxk.rst +1 -1
index 53560d3830d7..1c0ea988f239 100644
@@ -42,7 +42,7 @@ Features of the OCTEON cnxk SSO PMD are:
 - HW managed packets enqueued from ethdev to eventdev exposed through event eth
   RX adapter.
 - N:1 ethernet device Rx queue to Event queue mapping.
-- Lockfree Tx from event eth Tx adapter using ``DEV_TX_OFFLOAD_MT_LOCKFREE``
+- Lockfree Tx from event eth Tx adapter using ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE``
   capability while maintaining receive packet order.
 - Full Rx/Tx offload support defined through ethdev queue configuration.
 - HW managed event vectorization on CN10K for packets enqueued from ethdev to
doc/guides/eventdevs/octeontx2.rst +1 -1
index 11fbebfcd243..0fa57abfa3e0 100644
@@ -35,7 +35,7 @@ Features of the OCTEON TX2 SSO PMD are:
 - HW managed packets enqueued from ethdev to eventdev exposed through event eth
   RX adapter.
 - N:1 ethernet device Rx queue to Event queue mapping.
-- Lockfree Tx from event eth Tx adapter using ``DEV_TX_OFFLOAD_MT_LOCKFREE``
+- Lockfree Tx from event eth Tx adapter using ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE``
   capability while maintaining receive packet order.
 - Full Rx/Tx offload support defined through ethdev queue config.
 
doc/guides/nics/af_packet.rst +1 -1
index bdd6e7263c85..54feffdef4bd 100644
@@ -70,5 +70,5 @@ Features and Limitations
 ------------------------
 
 The PMD will re-insert the VLAN tag transparently to the packet if the kernel
-strips it, as long as the ``DEV_RX_OFFLOAD_VLAN_STRIP`` is not enabled by the
+strips it, as long as the ``RTE_ETH_RX_OFFLOAD_VLAN_STRIP`` is not enabled by the
 application.
doc/guides/nics/bnxt.rst +12 -12
index aa6032889a55..b3d10f30dc77 100644
@@ -877,21 +877,21 @@ processing. This improved performance is derived from a number of optimizations:
     * TX: only the following reduced set of transmit offloads is supported in
       vector mode::
 
-       DEV_TX_OFFLOAD_MBUF_FAST_FREE
+       RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE
 
     * RX: only the following reduced set of receive offloads is supported in
       vector mode (note that jumbo MTU is allowed only when the MTU setting
-      does not require `DEV_RX_OFFLOAD_SCATTER` to be enabled)::
-
-       DEV_RX_OFFLOAD_VLAN_STRIP
-       DEV_RX_OFFLOAD_KEEP_CRC
-       DEV_RX_OFFLOAD_IPV4_CKSUM
-       DEV_RX_OFFLOAD_UDP_CKSUM
-       DEV_RX_OFFLOAD_TCP_CKSUM
-       DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM
-       DEV_RX_OFFLOAD_OUTER_UDP_CKSUM
-       DEV_RX_OFFLOAD_RSS_HASH
-       DEV_RX_OFFLOAD_VLAN_FILTER
+      does not require `RTE_ETH_RX_OFFLOAD_SCATTER` to be enabled)::
+
+       RTE_ETH_RX_OFFLOAD_VLAN_STRIP
+       RTE_ETH_RX_OFFLOAD_KEEP_CRC
+       RTE_ETH_RX_OFFLOAD_IPV4_CKSUM
+       RTE_ETH_RX_OFFLOAD_UDP_CKSUM
+       RTE_ETH_RX_OFFLOAD_TCP_CKSUM
+       RTE_ETH_RX_OFFLOAD_OUTER_IPV4_CKSUM
+       RTE_ETH_RX_OFFLOAD_OUTER_UDP_CKSUM
+       RTE_ETH_RX_OFFLOAD_RSS_HASH
+       RTE_ETH_RX_OFFLOAD_VLAN_FILTER
 
 The BNXT Vector PMD is enabled in DPDK builds by default. The decision to enable
 vector processing is made at run-time when the port is started; if no transmit
doc/guides/nics/enic.rst +1 -1
index 91bdcd065a95..0209730b904a 100644
@@ -432,7 +432,7 @@ Limitations
 .. code-block:: console
 
      vlan_offload = rte_eth_dev_get_vlan_offload(port);
-     vlan_offload |= ETH_VLAN_STRIP_OFFLOAD;
+     vlan_offload |= RTE_ETH_VLAN_STRIP_OFFLOAD;
      rte_eth_dev_set_vlan_offload(port, vlan_offload);
 
 Another alternative is modify the adapter's ingress VLAN rewrite mode so that
doc/guides/nics/features.rst +57 -57

303 lines not on this page · raw message

doc/guides/nics/fm10k.rst +3 -3
index ed6afd62703d..bba53f5a64ee 100644
@@ -78,11 +78,11 @@ To enable via ``RX_OLFLAGS`` use ``RTE_LIBRTE_FM10K_RX_OLFLAGS_ENABLE=y``.
 To guarantee the constraint, the following capabilities in ``dev_conf.rxmode.offloads``
 will be checked:
 
-*   ``DEV_RX_OFFLOAD_VLAN_EXTEND``
+*   ``RTE_ETH_RX_OFFLOAD_VLAN_EXTEND``
 
-*   ``DEV_RX_OFFLOAD_CHECKSUM``
+*   ``RTE_ETH_RX_OFFLOAD_CHECKSUM``
 
-*   ``DEV_RX_OFFLOAD_HEADER_SPLIT``
+*   ``RTE_ETH_RX_OFFLOAD_HEADER_SPLIT``
 
 *   ``fdir_conf->mode``
 
doc/guides/nics/intel_vf.rst +5 -5
index 2efdd1a41bb4..a1e236ad75e5 100644
@@ -216,21 +216,21 @@ For example,
     *   If the max number of VFs (max_vfs) is set in the range of 1 to 32:
 
         If the number of Rx queues is specified as 4 (``--rxq=4`` in testpmd), then there are totally 32
-        pools (ETH_32_POOLS), and each VF could have 4 Rx queues;
+        pools (RTE_ETH_32_POOLS), and each VF could have 4 Rx queues;
 
         If the number of Rx queues is specified as 2 (``--rxq=2`` in testpmd), then there are totally 32
-        pools (ETH_32_POOLS), and each VF could have 2 Rx queues;
+        pools (RTE_ETH_32_POOLS), and each VF could have 2 Rx queues;
 
     *   If the max number of VFs (max_vfs) is in the range of 33 to 64:
 
         If the number of Rx queues in specified as 4 (``--rxq=4`` in testpmd), then error message is expected
         as ``rxq`` is not correct at this case;
 
-        If the number of rxq is 2 (``--rxq=2`` in testpmd), then there is totally 64 pools (ETH_64_POOLS),
+        If the number of rxq is 2 (``--rxq=2`` in testpmd), then there is totally 64 pools (RTE_ETH_64_POOLS),
         and each VF have 2 Rx queues;
 
-    On host, to enable VF RSS functionality, rx mq mode should be set as ETH_MQ_RX_VMDQ_RSS
-    or ETH_MQ_RX_RSS mode, and SRIOV mode should be activated (max_vfs >= 1).
+    On host, to enable VF RSS functionality, rx mq mode should be set as RTE_ETH_MQ_RX_VMDQ_RSS
+    or RTE_ETH_MQ_RX_RSS mode, and SRIOV mode should be activated (max_vfs >= 1).
     It also needs config VF RSS information like hash function, RSS key, RSS key length.
 
 .. note::
doc/guides/nics/ixgbe.rst +6 -6
index 20a74b9b5bcd..148d2f5fc2be 100644
@@ -89,13 +89,13 @@ Other features are supported using optional MACRO configuration. They include:
 
 To guarantee the constraint, capabilities in dev_conf.rxmode.offloads will be checked:
 
-*   DEV_RX_OFFLOAD_VLAN_STRIP
+*   RTE_ETH_RX_OFFLOAD_VLAN_STRIP
 
-*   DEV_RX_OFFLOAD_VLAN_EXTEND
+*   RTE_ETH_RX_OFFLOAD_VLAN_EXTEND
 
-*   DEV_RX_OFFLOAD_CHECKSUM
+*   RTE_ETH_RX_OFFLOAD_CHECKSUM
 
-*   DEV_RX_OFFLOAD_HEADER_SPLIT
+*   RTE_ETH_RX_OFFLOAD_HEADER_SPLIT
 
 *   dev_conf
 
@@ -163,13 +163,13 @@ l3fwd
 ~~~~~
 
 When running l3fwd with vPMD, there is one thing to note.
-In the configuration, ensure that DEV_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads is NOT set.
+In the configuration, ensure that RTE_ETH_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads is NOT set.
 Otherwise, by default, RX vPMD is disabled.
 
 load_balancer
 ~~~~~~~~~~~~~
 
-As in the case of l3fwd, to enable vPMD, do NOT set DEV_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads.
+As in the case of l3fwd, to enable vPMD, do NOT set RTE_ETH_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads.
 In addition, for improved performance, use -bsz "(32,32),(64,64),(32,32)" in load_balancer to avoid using the default burst size of 144.
 
 
doc/guides/nics/mlx5.rst +2 -2
index e4f58c899031..cc1726207f6c 100644
@@ -371,7 +371,7 @@ Limitations
 
 - CRC:
 
-  - ``DEV_RX_OFFLOAD_KEEP_CRC`` cannot be supported with decapsulation
+  - ``RTE_ETH_RX_OFFLOAD_KEEP_CRC`` cannot be supported with decapsulation
     for some NICs (such as ConnectX-6 Dx, ConnectX-6 Lx, and BlueField-2).
     The capability bit ``scatter_fcs_w_decap_disable`` shows NIC support.
 
@@ -607,7 +607,7 @@ Driver options
   small-packet traffic.
 
   When MPRQ is enabled, MTU can be larger than the size of
-  user-provided mbuf even if DEV_RX_OFFLOAD_SCATTER isn't enabled. PMD will
+  user-provided mbuf even if RTE_ETH_RX_OFFLOAD_SCATTER isn't enabled. PMD will
   configure large stride size enough to accommodate MTU as long as
   device allows. Note that this can waste system memory compared to enabling Rx
   scatter and multi-segment packet.
doc/guides/nics/tap.rst +1 -1
index 3ce696b605d1..681010d9ed7d 100644
@@ -275,7 +275,7 @@ An example utility for eBPF instruction generation in the format of C arrays wil
 be added in next releases
 
 TAP reports on supported RSS functions as part of dev_infos_get callback:
-``ETH_RSS_IP``, ``ETH_RSS_UDP`` and ``ETH_RSS_TCP``.
+``RTE_ETH_RSS_IP``, ``RTE_ETH_RSS_UDP`` and ``RTE_ETH_RSS_TCP``.
 **Known limitation:** TAP supports all of the above hash functions together
 and not in partial combinations.
 
doc/guides/prog_guide/generic_segmentation_offload_lib.rst +4 -4
index 7bff0aef0b74..9b2c31a2f0bc 100644
@@ -194,11 +194,11 @@ To segment an outgoing packet, an application must:
 
    - the bit mask of required GSO types. The GSO library uses the same macros as
      those that describe a physical device's TX offloading capabilities (i.e.
-     ``DEV_TX_OFFLOAD_*_TSO``) for gso_types. For example, if an application
+     ``RTE_ETH_TX_OFFLOAD_*_TSO``) for gso_types. For example, if an application
      wants to segment TCP/IPv4 packets, it should set gso_types to
-     ``DEV_TX_OFFLOAD_TCP_TSO``. The only other supported values currently
-     supported for gso_types are ``DEV_TX_OFFLOAD_VXLAN_TNL_TSO``, and
-     ``DEV_TX_OFFLOAD_GRE_TNL_TSO``; a combination of these macros is also
+     ``RTE_ETH_TX_OFFLOAD_TCP_TSO``. The only other supported values currently
+     supported for gso_types are ``RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO``, and
+     ``RTE_ETH_TX_OFFLOAD_GRE_TNL_TSO``; a combination of these macros is also
      allowed.
 
    - a flag, that indicates whether the IPv4 headers of output segments should
doc/guides/prog_guide/mbuf_lib.rst +9 -9
index 2f190b40e43a..dc6186a44ae2 100644
@@ -137,7 +137,7 @@ a vxlan-encapsulated tcp packet:
     mb->ol_flags |= PKT_TX_IPV4 | PKT_TX_IP_CSUM
     set out_ip checksum to 0 in the packet
 
-  This is supported on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM.
+  This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM.
 
 - calculate checksum of out_ip and out_udp::
 
@@ -147,8 +147,8 @@ a vxlan-encapsulated tcp packet:
     set out_ip checksum to 0 in the packet
     set out_udp checksum to pseudo header using rte_ipv4_phdr_cksum()
 
-  This is supported on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM
-  and DEV_TX_OFFLOAD_UDP_CKSUM.
+  This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM
+  and RTE_ETH_TX_OFFLOAD_UDP_CKSUM.
 
 - calculate checksum of in_ip::
 
@@ -158,7 +158,7 @@ a vxlan-encapsulated tcp packet:
     set in_ip checksum to 0 in the packet
 
   This is similar to case 1), but l2_len is different. It is supported
-  on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM.
+  on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM.
   Note that it can only work if outer L4 checksum is 0.
 
 - calculate checksum of in_ip and in_tcp::
@@ -170,8 +170,8 @@ a vxlan-encapsulated tcp packet:
     set in_tcp checksum to pseudo header using rte_ipv4_phdr_cksum()
 
   This is similar to case 2), but l2_len is different. It is supported
-  on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM and
-  DEV_TX_OFFLOAD_TCP_CKSUM.
+  on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM and
+  RTE_ETH_TX_OFFLOAD_TCP_CKSUM.
   Note that it can only work if outer L4 checksum is 0.
 
 - segment inner TCP::
@@ -185,7 +185,7 @@ a vxlan-encapsulated tcp packet:
     set in_tcp checksum to pseudo header without including the IP
       payload length using rte_ipv4_phdr_cksum()
 
-  This is supported on hardware advertising DEV_TX_OFFLOAD_TCP_TSO.
+  This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_TCP_TSO.
   Note that it can only work if outer L4 checksum is 0.
 
 - calculate checksum of out_ip, in_ip, in_tcp::
@@ -200,8 +200,8 @@ a vxlan-encapsulated tcp packet:
     set in_ip checksum to 0 in the packet
     set in_tcp checksum to pseudo header using rte_ipv4_phdr_cksum()
 
-  This is supported on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM,
-  DEV_TX_OFFLOAD_UDP_CKSUM and DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM.
+  This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM,
+  RTE_ETH_TX_OFFLOAD_UDP_CKSUM and RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM.
 
 The list of flags and their precise meaning is described in the mbuf API
 documentation (rte_mbuf.h). Also refer to the testpmd source code
doc/guides/prog_guide/poll_mode_drv.rst +4 -4
index 0d4ac77a7ccf..68312898448c 100644
@@ -57,7 +57,7 @@ Whenever needed and appropriate, asynchronous communication should be introduced
 
 Avoiding lock contention is a key issue in a multi-core environment.
 To address this issue, PMDs are designed to work with per-core private resources as much as possible.
-For example, a PMD maintains a separate transmit queue per-core, per-port, if the PMD is not ``DEV_TX_OFFLOAD_MT_LOCKFREE`` capable.
+For example, a PMD maintains a separate transmit queue per-core, per-port, if the PMD is not ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capable.
 In the same way, every receive queue of a port is assigned to and polled by a single logical core (lcore).
 
 To comply with Non-Uniform Memory Access (NUMA), memory management is designed to assign to each logical core
@@ -119,7 +119,7 @@ This is also true for the pipe-line model provided all logical cores used are lo
 
 Multiple logical cores should never share receive or transmit queues for interfaces since this would require global locks and hinder performance.
 
-If the PMD is ``DEV_TX_OFFLOAD_MT_LOCKFREE`` capable, multiple threads can invoke ``rte_eth_tx_burst()``
+If the PMD is ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capable, multiple threads can invoke ``rte_eth_tx_burst()``
 concurrently on the same tx queue without SW lock. This PMD feature found in some NICs and useful in the following use cases:
 
 *  Remove explicit spinlock in some applications where lcores are not mapped to Tx queues with 1:1 relation.
@@ -127,7 +127,7 @@ concurrently on the same tx queue without SW lock. This PMD feature found in som
 *  In the eventdev use case, avoid dedicating a separate TX core for transmitting and thus
    enables more scaling as all workers can send the packets.
 
-See `Hardware Offload`_ for ``DEV_TX_OFFLOAD_MT_LOCKFREE`` capability probing details.
+See `Hardware Offload`_ for ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capability probing details.
 
 Device Identification, Ownership and Configuration
 --------------------------------------------------
@@ -311,7 +311,7 @@ The ``dev_info->[rt]x_queue_offload_capa`` returned from ``rte_eth_dev_info_get(
 The ``dev_info->[rt]x_offload_capa`` returned from ``rte_eth_dev_info_get()`` includes all pure per-port and per-queue offloading capabilities.
 Supported offloads can be either per-port or per-queue.
 
-Offloads are enabled using the existing ``DEV_TX_OFFLOAD_*`` or ``DEV_RX_OFFLOAD_*`` flags.
+Offloads are enabled using the existing ``RTE_ETH_TX_OFFLOAD_*`` or ``RTE_ETH_RX_OFFLOAD_*`` flags.
 Any requested offloading by an application must be within the device capabilities.
 Any offloading is disabled by default if it is not set in the parameter
 ``dev_conf->[rt]xmode.offloads`` to ``rte_eth_dev_configure()`` and
doc/guides/prog_guide/rte_flow.rst +17 -17
index fa05fe084500..b507396fb4d7 100644
@@ -1943,23 +1943,23 @@ only matching traffic goes through.
 
 .. table:: RSS
 
-   +---------------+---------------------------------------------+
-   | Field         | Value                                       |
-   +===============+=============================================+
-   | ``func``      | RSS hash function to apply                  |
-   +---------------+---------------------------------------------+
-   | ``level``     | encapsulation level for ``types``           |
-   +---------------+---------------------------------------------+
-   | ``types``     | specific RSS hash types (see ``ETH_RSS_*``) |
-   +---------------+---------------------------------------------+
-   | ``key_len``   | hash key length in bytes                    |
-   +---------------+---------------------------------------------+
-   | ``queue_num`` | number of entries in ``queue``              |
-   +---------------+---------------------------------------------+
-   | ``key``       | hash key                                    |
-   +---------------+---------------------------------------------+
-   | ``queue``     | queue indices to use                        |
-   +---------------+---------------------------------------------+
+   +---------------+-------------------------------------------------+
+   | Field         | Value                                           |
+   +===============+=================================================+
+   | ``func``      | RSS hash function to apply                      |
+   +---------------+-------------------------------------------------+
+   | ``level``     | encapsulation level for ``types``               |
+   +---------------+-------------------------------------------------+
+   | ``types``     | specific RSS hash types (see ``RTE_ETH_RSS_*``) |
+   +---------------+-------------------------------------------------+
+   | ``key_len``   | hash key length in bytes                        |
+   +---------------+-------------------------------------------------+
+   | ``queue_num`` | number of entries in ``queue``                  |
+   +---------------+-------------------------------------------------+
+   | ``key``       | hash key                                        |
+   +---------------+-------------------------------------------------+
+   | ``queue``     | queue indices to use                            |
+   +---------------+-------------------------------------------------+
 
 Action: ``PF``
 ^^^^^^^^^^^^^^
doc/guides/prog_guide/rte_security.rst +1 -1
index ad92c16868c1..46c9b51d1bf9 100644
@@ -569,7 +569,7 @@ created by the application is attached to the security session by the API
 
 For Inline Crypto and Inline protocol offload, device specific defined metadata is
 updated in the mbuf using ``rte_security_set_pkt_metadata()`` if
-``DEV_TX_OFFLOAD_SEC_NEED_MDATA`` is set.
+``RTE_ETH_TX_OFFLOAD_SEC_NEED_MDATA`` is set.
 
 For inline protocol offloaded ingress traffic, the application can register a
 pointer, ``userdata`` , in the security session. When the packet is received,
doc/guides/rel_notes/deprecation.rst +2 -8
index 0b4d03fb961f..199c3fa0bd70 100644
@@ -58,22 +58,16 @@ Deprecation Notices
   ``RTE_ETH_FLOW_MAX`` is one sample of the mentioned case, adding a new flow
   type will break the ABI because of ``flex_mask[RTE_ETH_FLOW_MAX]`` array
   usage in following public struct hierarchy:
-  ``rte_eth_fdir_flex_conf -> rte_fdir_conf -> rte_eth_conf (in the middle)``.
+  ``rte_eth_fdir_flex_conf -> rte_eth_fdir_conf -> rte_eth_conf (in the middle)``.
   Need to identify this kind of usages and fix in 20.11, otherwise this blocks
   us extending existing enum/define.
   One solution can be using a fixed size array instead of ``.*MAX.*`` value.
 
-* ethdev: Will add ``RTE_ETH_`` prefix to all ethdev macros/enums in v21.11.
-  Macros will be added for backward compatibility.
-  Backward compatibility macros will be removed on v22.11.
-  A few old backward compatibility macros from 2013 that does not have
-  proper prefix will be removed on v21.11.
-
 * ethdev: The flow director API, including ``rte_eth_conf.fdir_conf`` field,
   and the related structures (``rte_fdir_*`` and ``rte_eth_fdir_*``),
   will be removed in DPDK 20.11.
 
-* ethdev: New offload flags ``DEV_RX_OFFLOAD_FLOW_MARK`` will be added in 19.11.
+* ethdev: New offload flags ``RTE_ETH_RX_OFFLOAD_FLOW_MARK`` will be added in 19.11.
   This will allow application to enable or disable PMDs from updating
   ``rte_mbuf::hash::fdir``.
   This scheme will allow PMDs to avoid writes to ``rte_mbuf`` fields on Rx and
doc/guides/rel_notes/release_21_11.rst +3 -0
index ec2a788789f7..9a50c3281dd2 100644
@@ -350,6 +350,9 @@ ABI Changes
   to be transparent for both users (no changes in user app is required) and
   PMD developers (no changes in PMD is required).
 
+* ethdev: All enums & macros updated to have ``RTE_ETH`` prefix and structures
+  updated to have ``rte_eth`` prefix. DPDK components updated to use new names.
+
 
 Known Issues
 ------------
doc/guides/sample_app_ug/ipsec_secgw.rst +2 -2
index 78171b25f96e..782574dd39d5 100644
@@ -209,12 +209,12 @@ Where:
     device will ensure the ordering. Ordering will be lost when tried in PARALLEL.
 
 *   ``--rxoffload MASK``: RX HW offload capabilities to enable/use on this port
-    (bitmask of DEV_RX_OFFLOAD_* values). It is an optional parameter and
+    (bitmask of RTE_ETH_RX_OFFLOAD_* values). It is an optional parameter and
     allows user to disable some of the RX HW offload capabilities.
     By default all HW RX offloads are enabled.
 
 *   ``--txoffload MASK``: TX HW offload capabilities to enable/use on this port
-    (bitmask of DEV_TX_OFFLOAD_* values). It is an optional parameter and
+    (bitmask of RTE_ETH_TX_OFFLOAD_* values). It is an optional parameter and
     allows user to disable some of the TX HW offload capabilities.
     By default all HW TX offloads are enabled.
 
doc/guides/testpmd_app_ug/run_app.rst +1 -1
index 8ff7ab85369c..2e1446ee461b 100644
@@ -537,7 +537,7 @@ The command line options are:
     Set the hexadecimal bitmask of RX multi queue mode which can be enabled.
     The default value is 0x7::
 
-       ETH_MQ_RX_RSS_FLAG | ETH_MQ_RX_DCB_FLAG | ETH_MQ_RX_VMDQ_FLAG
+       RTE_ETH_MQ_RX_RSS_FLAG | RTE_ETH_MQ_RX_DCB_FLAG | RTE_ETH_MQ_RX_VMDQ_FLAG
 
 *   ``--record-core-cycles``
 
drivers/bus/dpaa/include/process.h +8 -8
index be52e6f72dab..a922988607ef 100644
@@ -90,20 +90,20 @@ int dpaa_intr_disable(char *if_name);
 struct usdpaa_ioctl_link_status_args_old {
 	/* network device node name */
 	char    if_name[IF_NAME_MAX_LEN];
-	/* link status(ETH_LINK_UP/DOWN) */
+	/* link status(RTE_ETH_LINK_UP/DOWN) */
 	int     link_status;
 };
 
 struct usdpaa_ioctl_link_status_args {
 	/* network device node name */
 	char    if_name[IF_NAME_MAX_LEN];
-	/* link status(ETH_LINK_UP/DOWN) */
+	/* link status(RTE_ETH_LINK_UP/DOWN) */
 	int     link_status;
-	/* link speed (ETH_SPEED_NUM_)*/
+	/* link speed (RTE_ETH_SPEED_NUM_)*/
 	int     link_speed;
-	/* link duplex (ETH_LINK_[HALF/FULL]_DUPLEX)*/
+	/* link duplex (RTE_ETH_LINK_[HALF/FULL]_DUPLEX)*/
 	int     link_duplex;
-	/* link autoneg (ETH_LINK_AUTONEG/FIXED)*/
+	/* link autoneg (RTE_ETH_LINK_AUTONEG/FIXED)*/
 	int     link_autoneg;
 
 };
@@ -111,16 +111,16 @@ struct usdpaa_ioctl_link_status_args {
 struct usdpaa_ioctl_update_link_status_args {
 	/* network device node name */
 	char    if_name[IF_NAME_MAX_LEN];
-	/* link status(ETH_LINK_UP/DOWN) */
+	/* link status(RTE_ETH_LINK_UP/DOWN) */
 	int     link_status;
 };
 
 struct usdpaa_ioctl_update_link_speed {
 	/* network device node name*/
 	char    if_name[IF_NAME_MAX_LEN];
-	/* link speed (ETH_SPEED_NUM_)*/
+	/* link speed (RTE_ETH_SPEED_NUM_)*/
 	int     link_speed;
-	/* link duplex (ETH_LINK_[HALF/FULL]_DUPLEX)*/
+	/* link duplex (RTE_ETH_LINK_[HALF/FULL]_DUPLEX)*/
 	int     link_duplex;
 };
 
drivers/common/cnxk/roc_npc.h +1 -1
index 65d4bd6edcec..c12400ff5110 100644
@@ -154,7 +154,7 @@ enum roc_npc_rss_hash_function {
 struct roc_npc_action_rss {
 	enum roc_npc_rss_hash_function func;
 	uint32_t level;
-	uint64_t types;	       /**< Specific RSS hash types (see ETH_RSS_*). */
+	uint64_t types;	       /**< Specific RSS hash types (see RTE_ETH_RSS_*). */
 	uint32_t key_len;      /**< Hash key length in bytes. */
 	uint32_t queue_num;    /**< Number of entries in @p queue. */
 	const uint8_t *key;    /**< Hash key. */
drivers/net/af_packet/rte_eth_af_packet.c +10 -10
index a077376dc0fb..8f778f0c2419 100644
@@ -93,10 +93,10 @@ static const char *valid_arguments[] = {
 };
 
 static struct rte_eth_link pmd_link = {
-	.link_speed = ETH_SPEED_NUM_10G,
-	.link_duplex = ETH_LINK_FULL_DUPLEX,
-	.link_status = ETH_LINK_DOWN,
-	.link_autoneg = ETH_LINK_FIXED,
+	.link_speed = RTE_ETH_SPEED_NUM_10G,
+	.link_duplex = RTE_ETH_LINK_FULL_DUPLEX,
+	.link_status = RTE_ETH_LINK_DOWN,
+	.link_autoneg = RTE_ETH_LINK_FIXED,
 };
 
 RTE_LOG_REGISTER_DEFAULT(af_packet_logtype, NOTICE);
@@ -290,7 +290,7 @@ eth_af_packet_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
 static int
 eth_dev_start(struct rte_eth_dev *dev)
 {
-	dev->data->dev_link.link_status = ETH_LINK_UP;
+	dev->data->dev_link.link_status = RTE_ETH_LINK_UP;
 	return 0;
 }
 
@@ -320,7 +320,7 @@ eth_dev_stop(struct rte_eth_dev *dev)
 		internals->tx_queue[i].sockfd = -1;
 	}
 
-	dev->data->dev_link.link_status = ETH_LINK_DOWN;
+	dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 	return 0;
 }
 
@@ -331,7 +331,7 @@ eth_dev_configure(struct rte_eth_dev *dev __rte_unused)
 	const struct rte_eth_rxmode *rxmode = &dev_conf->rxmode;
 	struct pmd_internals *internals = dev->data->dev_private;
 
-	internals->vlan_strip = !!(rxmode->offloads & DEV_RX_OFFLOAD_VLAN_STRIP);
+	internals->vlan_strip = !!(rxmode->offloads & RTE_ETH_RX_OFFLOAD_VLAN_STRIP);
 	return 0;
 }
 
@@ -346,9 +346,9 @@ eth_dev_info(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 	dev_info->max_rx_queues = (uint16_t)internals->nb_queues;
 	dev_info->max_tx_queues = (uint16_t)internals->nb_queues;
 	dev_info->min_rx_bufsize = 0;
-	dev_info->tx_offload_capa = DEV_TX_OFFLOAD_MULTI_SEGS |
-		DEV_TX_OFFLOAD_VLAN_INSERT;
-	dev_info->rx_offload_capa = DEV_RX_OFFLOAD_VLAN_STRIP;
+	dev_info->tx_offload_capa = RTE_ETH_TX_OFFLOAD_MULTI_SEGS |
+		RTE_ETH_TX_OFFLOAD_VLAN_INSERT;
+	dev_info->rx_offload_capa = RTE_ETH_RX_OFFLOAD_VLAN_STRIP;
 
 	return 0;
 }
drivers/net/af_xdp/rte_eth_af_xdp.c +6 -6
index b362ccdcd38c..e156246f24df 100644
@@ -163,10 +163,10 @@ static const char * const valid_arguments[] = {
 };
 
 static const struct rte_eth_link pmd_link = {
-	.link_speed = ETH_SPEED_NUM_10G,
-	.link_duplex = ETH_LINK_FULL_DUPLEX,
-	.link_status = ETH_LINK_DOWN,
-	.link_autoneg = ETH_LINK_AUTONEG
+	.link_speed = RTE_ETH_SPEED_NUM_10G,
+	.link_duplex = RTE_ETH_LINK_FULL_DUPLEX,
+	.link_status = RTE_ETH_LINK_DOWN,
+	.link_autoneg = RTE_ETH_LINK_AUTONEG
 };
 
 /* List which tracks PMDs to facilitate sharing UMEMs across them. */
@@ -652,7 +652,7 @@ eth_af_xdp_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
 static int
 eth_dev_start(struct rte_eth_dev *dev)
 {
-	dev->data->dev_link.link_status = ETH_LINK_UP;
+	dev->data->dev_link.link_status = RTE_ETH_LINK_UP;
 
 	return 0;
 }
@@ -661,7 +661,7 @@ eth_dev_start(struct rte_eth_dev *dev)
 static int
 eth_dev_stop(struct rte_eth_dev *dev)
 {
-	dev->data->dev_link.link_status = ETH_LINK_DOWN;
+	dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 	return 0;
 }
 
drivers/net/ark/ark_ethdev.c +8 -8
index 377299b14c7a..b618cba3f023 100644
@@ -736,14 +736,14 @@ eth_ark_dev_info_get(struct rte_eth_dev *dev,
 		.nb_align = ARK_TX_MIN_QUEUE}; /* power of 2 */
 
 	/* ARK PMD supports all line rates, how do we indicate that here ?? */
-	dev_info->speed_capa = (ETH_LINK_SPEED_1G |
-				ETH_LINK_SPEED_10G |
-				ETH_LINK_SPEED_25G |
-				ETH_LINK_SPEED_40G |
-				ETH_LINK_SPEED_50G |
-				ETH_LINK_SPEED_100G);
-
-	dev_info->rx_offload_capa = DEV_RX_OFFLOAD_TIMESTAMP;
+	dev_info->speed_capa = (RTE_ETH_LINK_SPEED_1G |
+				RTE_ETH_LINK_SPEED_10G |
+				RTE_ETH_LINK_SPEED_25G |
+				RTE_ETH_LINK_SPEED_40G |
+				RTE_ETH_LINK_SPEED_50G |
+				RTE_ETH_LINK_SPEED_100G);
+
+	dev_info->rx_offload_capa = RTE_ETH_RX_OFFLOAD_TIMESTAMP;
 
 	return 0;
 }
drivers/net/atlantic/atl_ethdev.c +44 -44

174 lines not on this page · raw message

drivers/net/atlantic/atl_ethdev.h +9 -9
index fbc9917ed30d..ed9ef9f0cc52 100644
@@ -11,15 +11,15 @@
 #include "hw_atl/hw_atl_utils.h"
 
 #define ATL_RSS_OFFLOAD_ALL ( \
-	ETH_RSS_IPV4 | \
-	ETH_RSS_NONFRAG_IPV4_TCP | \
-	ETH_RSS_NONFRAG_IPV4_UDP | \
-	ETH_RSS_IPV6 | \
-	ETH_RSS_NONFRAG_IPV6_TCP | \
-	ETH_RSS_NONFRAG_IPV6_UDP | \
-	ETH_RSS_IPV6_EX | \
-	ETH_RSS_IPV6_TCP_EX | \
-	ETH_RSS_IPV6_UDP_EX)
+	RTE_ETH_RSS_IPV4 | \
+	RTE_ETH_RSS_NONFRAG_IPV4_TCP | \
+	RTE_ETH_RSS_NONFRAG_IPV4_UDP | \
+	RTE_ETH_RSS_IPV6 | \
+	RTE_ETH_RSS_NONFRAG_IPV6_TCP | \
+	RTE_ETH_RSS_NONFRAG_IPV6_UDP | \
+	RTE_ETH_RSS_IPV6_EX | \
+	RTE_ETH_RSS_IPV6_TCP_EX | \
+	RTE_ETH_RSS_IPV6_UDP_EX)
 
 #define ATL_DEV_PRIVATE_TO_HW(adapter) \
 	(&((struct atl_adapter *)adapter)->hw)
drivers/net/atlantic/atl_rxtx.c +3 -3
index 0d3460383a50..2ff426892df2 100644
@@ -145,10 +145,10 @@ atl_rx_queue_setup(struct rte_eth_dev *dev, uint16_t rx_queue_id,
 	rxq->rx_free_thresh = rx_conf->rx_free_thresh;
 
 	rxq->l3_csum_enabled = dev->data->dev_conf.rxmode.offloads &
-		DEV_RX_OFFLOAD_IPV4_CKSUM;
+		RTE_ETH_RX_OFFLOAD_IPV4_CKSUM;
 	rxq->l4_csum_enabled = dev->data->dev_conf.rxmode.offloads &
-		(DEV_RX_OFFLOAD_UDP_CKSUM | DEV_RX_OFFLOAD_TCP_CKSUM);
-	if (dev->data->dev_conf.rxmode.offloads & DEV_RX_OFFLOAD_KEEP_CRC)
+		(RTE_ETH_RX_OFFLOAD_UDP_CKSUM | RTE_ETH_RX_OFFLOAD_TCP_CKSUM);
+	if (dev->data->dev_conf.rxmode.offloads & RTE_ETH_RX_OFFLOAD_KEEP_CRC)
 		PMD_DRV_LOG(ERR, "PMD does not support KEEP_CRC offload");
 
 	/* allocate memory for the software ring */
drivers/net/avp/avp_ethdev.c +13 -13
index 932ec90265cf..5d94db02c506 100644
@@ -1998,9 +1998,9 @@ avp_dev_configure(struct rte_eth_dev *eth_dev)
 	/* Setup required number of queues */
 	_avp_set_queue_counts(eth_dev);
 
-	mask = (ETH_VLAN_STRIP_MASK |
-		ETH_VLAN_FILTER_MASK |
-		ETH_VLAN_EXTEND_MASK);
+	mask = (RTE_ETH_VLAN_STRIP_MASK |
+		RTE_ETH_VLAN_FILTER_MASK |
+		RTE_ETH_VLAN_EXTEND_MASK);
 	ret = avp_vlan_offload_set(eth_dev, mask);
 	if (ret < 0) {
 		PMD_DRV_LOG(ERR, "VLAN offload set failed by host, ret=%d\n",
@@ -2140,8 +2140,8 @@ avp_dev_link_update(struct rte_eth_dev *eth_dev,
 	struct avp_dev *avp = AVP_DEV_PRIVATE_TO_HW(eth_dev->data->dev_private);
 	struct rte_eth_link *link = &eth_dev->data->dev_link;
 
-	link->link_speed = ETH_SPEED_NUM_10G;
-	link->link_duplex = ETH_LINK_FULL_DUPLEX;
+	link->link_speed = RTE_ETH_SPEED_NUM_10G;
+	link->link_duplex = RTE_ETH_LINK_FULL_DUPLEX;
 	link->link_status = !!(avp->flags & AVP_F_LINKUP);
 
 	return -1;
@@ -2191,8 +2191,8 @@ avp_dev_info_get(struct rte_eth_dev *eth_dev,
 	dev_info->max_rx_pktlen = avp->max_rx_pkt_len;
 	dev_info->max_mac_addrs = AVP_MAX_MAC_ADDRS;
 	if (avp->host_features & RTE_AVP_FEATURE_VLAN_OFFLOAD) {
-		dev_info->rx_offload_capa = DEV_RX_OFFLOAD_VLAN_STRIP;
-		dev_info->tx_offload_capa = DEV_TX_OFFLOAD_VLAN_INSERT;
+		dev_info->rx_offload_capa = RTE_ETH_RX_OFFLOAD_VLAN_STRIP;
+		dev_info->tx_offload_capa = RTE_ETH_TX_OFFLOAD_VLAN_INSERT;
 	}
 
 	return 0;
@@ -2205,9 +2205,9 @@ avp_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask)
 	struct rte_eth_conf *dev_conf = &eth_dev->data->dev_conf;
 	uint64_t offloads = dev_conf->rxmode.offloads;
 
-	if (mask & ETH_VLAN_STRIP_MASK) {
+	if (mask & RTE_ETH_VLAN_STRIP_MASK) {
 		if (avp->host_features & RTE_AVP_FEATURE_VLAN_OFFLOAD) {
-			if (offloads & DEV_RX_OFFLOAD_VLAN_STRIP)
+			if (offloads & RTE_ETH_RX_OFFLOAD_VLAN_STRIP)
 				avp->features |= RTE_AVP_FEATURE_VLAN_OFFLOAD;
 			else
 				avp->features &= ~RTE_AVP_FEATURE_VLAN_OFFLOAD;
@@ -2216,13 +2216,13 @@ avp_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask)
 		}
 	}
 
-	if (mask & ETH_VLAN_FILTER_MASK) {
-		if (offloads & DEV_RX_OFFLOAD_VLAN_FILTER)
+	if (mask & RTE_ETH_VLAN_FILTER_MASK) {
+		if (offloads & RTE_ETH_RX_OFFLOAD_VLAN_FILTER)
 			PMD_DRV_LOG(ERR, "VLAN filter offload not supported\n");
 	}
 
-	if (mask & ETH_VLAN_EXTEND_MASK) {
-		if (offloads & DEV_RX_OFFLOAD_VLAN_EXTEND)
+	if (mask & RTE_ETH_VLAN_EXTEND_MASK) {
+		if (offloads & RTE_ETH_RX_OFFLOAD_VLAN_EXTEND)
 			PMD_DRV_LOG(ERR, "VLAN extend offload not supported\n");
 	}
 
drivers/net/axgbe/axgbe_dev.c +3 -3
index ca32ad641873..3aaa2193272f 100644
@@ -840,11 +840,11 @@ static void axgbe_rss_options(struct axgbe_port *pdata)
 	pdata->rss_hf = rss_conf->rss_hf;
 	rss_hf = rss_conf->rss_hf;
 
-	if (rss_hf & (ETH_RSS_IPV4 | ETH_RSS_IPV6))
+	if (rss_hf & (RTE_ETH_RSS_IPV4 | RTE_ETH_RSS_IPV6))
 		AXGMAC_SET_BITS(pdata->rss_options, MAC_RSSCR, IP2TE, 1);
-	if (rss_hf & (ETH_RSS_NONFRAG_IPV4_TCP | ETH_RSS_NONFRAG_IPV6_TCP))
+	if (rss_hf & (RTE_ETH_RSS_NONFRAG_IPV4_TCP | RTE_ETH_RSS_NONFRAG_IPV6_TCP))
 		AXGMAC_SET_BITS(pdata->rss_options, MAC_RSSCR, TCP4TE, 1);
-	if (rss_hf & (ETH_RSS_NONFRAG_IPV4_UDP | ETH_RSS_NONFRAG_IPV6_UDP))
+	if (rss_hf & (RTE_ETH_RSS_NONFRAG_IPV4_UDP | RTE_ETH_RSS_NONFRAG_IPV6_UDP))
 		AXGMAC_SET_BITS(pdata->rss_options, MAC_RSSCR, UDP4TE, 1);
 }
 
drivers/net/axgbe/axgbe_ethdev.c +52 -52

86 lines not on this page · raw message

drivers/net/axgbe/axgbe_ethdev.h +6 -6
index a6226729fe4d..0a3e1c59df1a 100644

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

drivers/net/axgbe/axgbe_mdio.c +1 -1
index 4f98e695ae74..59fa9175aded 100644

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

drivers/net/axgbe/axgbe_rxtx.c +3 -3
index c8618d2d6daa..aa2c27ebaa49 100644

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

drivers/net/bnx2x/bnx2x_ethdev.c +6 -6
index 567ea2382864..78fc717ec44a 100644

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

drivers/net/bnxt/bnxt.h +31 -31

62 lines not on this page · raw message

drivers/net/bnxt/bnxt_ethdev.c +86 -86

172 lines not on this page · raw message

drivers/net/bnxt/bnxt_flow.c +3 -3
index b2ebb5634e3a..ced697a73980 100644

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

drivers/net/bnxt/bnxt_hwrm.c +56 -56

112 lines not on this page · raw message

drivers/net/bnxt/bnxt_reps.c +1 -1
index b7e88e013a84..1c07db3ca9c5 100644

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

drivers/net/bnxt/bnxt_ring.c +2 -2
index 08cefa1baaef..7940d489a102 100644

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

drivers/net/bnxt/bnxt_rxq.c +14 -14
index 38ec4aa14b77..1456f8b54ffa 100644

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

drivers/net/bnxt/bnxt_rxr.c +2 -2
index aeacc60a0127..eb555c4545e6 100644

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

drivers/net/bnxt/bnxt_rxtx_vec_avx2.c +1 -1
index d08854ff61e2..e4905b4fd169 100644

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

drivers/net/bnxt/bnxt_rxtx_vec_common.h +1 -1
index 9b9489a695a2..0627fd212d0a 100644

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

drivers/net/bnxt/bnxt_rxtx_vec_neon.c +1 -1
index 13211060cf0e..f15e2d3b4ed4 100644

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

drivers/net/bnxt/bnxt_rxtx_vec_sse.c +1 -1
index 6e563053260a..ffd560166cac 100644

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

drivers/net/bnxt/bnxt_txr.c +2 -2
index 9e45ddd7a82e..f2fcaf53021c 100644

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

drivers/net/bnxt/bnxt_vnic.c +15 -15
index 26253a7e17f2..c63cf4b943fa 100644

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

drivers/net/bnxt/rte_pmd_bnxt.c +4 -4
index f71543810970..77ecbef04c3d 100644

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

drivers/net/bonding/eth_bond_private.h +2 -2
index fc179a2732ac..8b104b639184 100644

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

drivers/net/bonding/rte_eth_bond_8023ad.c +8 -8
index 2029955c1092..ca50583d62d8 100644

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

drivers/net/bonding/rte_eth_bond_api.c +3 -3
index 5140ef14c2ee..84943cffe2bb 100644

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

drivers/net/bonding/rte_eth_bond_pmd.c +25 -25

50 lines not on this page · raw message

drivers/net/cnxk/cn10k_ethdev.c +21 -21

42 lines not on this page · raw message

drivers/net/cnxk/cn10k_rx.c +2 -2
index d6af54b56de6..5d603514c045 100644

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

drivers/net/cnxk/cn10k_tx.c +2 -2
index eb962ef08cab..5e6c5ee11188 100644

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

drivers/net/cnxk/cn9k_ethdev.c +30 -30

60 lines not on this page · raw message

drivers/net/cnxk/cn9k_rx.c +2 -2
index 5c4387e74e0b..8d504c4a6d92 100644

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

drivers/net/cnxk/cn9k_tx.c +2 -2
index e5691a2a7e16..f3f19fed9780 100644

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

drivers/net/cnxk/cnxk_ethdev.c +56 -56

112 lines not on this page · raw message

drivers/net/cnxk/cnxk_ethdev.h +26 -23

49 lines not on this page · raw message

drivers/net/cnxk/cnxk_ethdev_devargs.c +3 -3
index c0b949e21ab0..e068f553495c 100644

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

drivers/net/cnxk/cnxk_ethdev_ops.c +53 -53

106 lines not on this page · raw message

drivers/net/cnxk/cnxk_link.c +7 -7
index 6a7080167598..f10a502826c6 100644

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

drivers/net/cnxk/cnxk_ptp.c +2 -2
index 449489f599c4..139fea256ccd 100644

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

drivers/net/cnxk/cnxk_rte_flow.c +1 -1
index 27defd2fa984..2dfc3730a0da 100644

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

drivers/net/cxgbe/cxgbe.h +23 -23

46 lines not on this page · raw message

drivers/net/cxgbe/cxgbe_ethdev.c +21 -21

42 lines not on this page · raw message

drivers/net/cxgbe/cxgbe_main.c +6 -6
index 91d6bb9bbcb0..f1ac32270961 100644

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

drivers/net/dpaa/dpaa_ethdev.c +90 -90

180 lines not on this page · raw message

drivers/net/dpaa/dpaa_ethdev.h +5 -5
index b5728e09c29f..c868e9d5bd9b 100644

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

drivers/net/dpaa/dpaa_flow.c +16 -16
index c5b5ec869519..1ccd03602790 100644

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

drivers/net/dpaa2/base/dpaa2_hw_dpni.c +23 -24

47 lines not on this page · raw message

drivers/net/dpaa2/dpaa2_ethdev.c +69 -69

138 lines not on this page · raw message

drivers/net/dpaa2/dpaa2_ethdev.h +11 -11
index fdc62ec30d22..c5e9267bf04d 100644

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

drivers/net/dpaa2/dpaa2_rxtx.c +4 -4
index f40369e2c3f9..7c77243b5d1a 100644

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

drivers/net/e1000/e1000_ethdev.h +9 -9
index 93bee734ae5d..031c92a66fa0 100644

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

drivers/net/e1000/em_ethdev.c +32 -32

64 lines not on this page · raw message

drivers/net/e1000/em_rxtx.c +19 -19
index 344149c19147..648b04154c5b 100644

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

drivers/net/e1000/igb_ethdev.c +79 -79

158 lines not on this page · raw message

drivers/net/e1000/igb_pf.c +1 -1
index 2ce74dd5a9a5..fe355ef6b3b5 100644

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

drivers/net/e1000/igb_rxtx.c +58 -58

116 lines not on this page · raw message

drivers/net/ena/ena_ethdev.c +33 -33

66 lines not on this page · raw message

drivers/net/ena/ena_ethdev.h +2 -2
index 06ac8b06b5cb..3b1844e50982 100644

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

drivers/net/ena/ena_rss.c +37 -37

74 lines not on this page · raw message

drivers/net/enetc/enetc_ethdev.c +15 -15
index 1b567f01eae0..7cdb8ce463ed 100644

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

drivers/net/enic/enic.h +1 -1
index 47bfdac2cfdd..d5493c98345d 100644

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

drivers/net/enic/enic_ethdev.c +44 -44

88 lines not on this page · raw message

drivers/net/enic/enic_main.c +20 -20
index dfc7f5d1f94f..21b1fffb14f0 100644

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

drivers/net/enic/enic_res.c +25 -25

50 lines not on this page · raw message

drivers/net/failsafe/failsafe.c +4 -4
index b87c036e6014..82d595b1d1a0 100644

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

drivers/net/failsafe/failsafe_intr.c +2 -2
index 602c04033c18..5f4810051dac 100644

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

drivers/net/failsafe/failsafe_ops.c +39 -39

78 lines not on this page · raw message

drivers/net/fm10k/fm10k.h +2 -2
index 17c73c4dc5ae..b7522a47a80b 100644

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

drivers/net/fm10k/fm10k_ethdev.c +73 -73

146 lines not on this page · raw message

drivers/net/fm10k/fm10k_rxtx_vec.c +3 -3
index 83af01dc2da6..50973a662c67 100644

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

drivers/net/hinic/base/hinic_pmd_hwdev.c +11 -11
index cb9cf6efa287..80f9eb5c3031 100644

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

drivers/net/hinic/hinic_pmd_ethdev.c +68 -68

136 lines not on this page · raw message

drivers/net/hinic/hinic_pmd_rx.c +18 -18
index 842399cc4cd8..d347afe9a6a9 100644

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

drivers/net/hinic/hinic_pmd_rx.h +11 -11
index 8a45f2d9fc50..5c303398b635 100644

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

drivers/net/hns3/hns3_dcb.c +7 -7
index 8753c340e790..3d0159d78778 100644

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

drivers/net/hns3/hns3_ethdev.c +176 -176

352 lines not on this page · raw message

drivers/net/hns3/hns3_ethdev.h +6 -6
index e28056b1bd60..0f55fd4c83ad 100644

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

drivers/net/hns3/hns3_ethdev_vf.c +50 -50

100 lines not on this page · raw message

drivers/net/hns3/hns3_flow.c +3 -3
index 38a2ee58a651..da6918fddda3 100644

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

drivers/net/hns3/hns3_ptp.c +1 -1
index 5dfe68cc4dbd..9a829d7011ad 100644

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

drivers/net/hns3/hns3_rss.c +54 -54

108 lines not on this page · raw message

drivers/net/hns3/hns3_rss.h +14 -14
index 996083b88b25..6f153a1b7bfb 100644

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

drivers/net/hns3/hns3_rxtx.c +15 -15
index 602548a4f25b..920ee8ceeab9 100644

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

drivers/net/hns3/hns3_rxtx.h +1 -1
index c8229e9076b5..dfea5d5b4c2f 100644

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

drivers/net/hns3/hns3_rxtx_vec.c +5 -5
index ff434d2d33ed..455110361aac 100644

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

drivers/net/i40e/i40e_ethdev.c +136 -136

272 lines not on this page · raw message

drivers/net/i40e/i40e_ethdev.h +12 -12
index 1d57b9617e66..d8042abbd9be 100644

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

drivers/net/i40e/i40e_flow.c +16 -16
index e41a84f1d737..9acaa1875105 100644

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

drivers/net/i40e/i40e_hash.c +78 -78

156 lines not on this page · raw message

drivers/net/i40e/i40e_pf.c +7 -7
index e2d8b2b5f7f1..ccb3924a5f68 100644

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

drivers/net/i40e/i40e_rxtx.c +4 -4
index 554b1142c136..a13bb81115f4 100644

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

drivers/net/i40e/i40e_rxtx.h +2 -2
index 2301e6301d7d..5e6eecc50116 100644

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

drivers/net/i40e/i40e_rxtx_vec_avx512.c +1 -1
index bd21d6422394..5f00d43950aa 100644

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

drivers/net/i40e/i40e_rxtx_vec_common.h +4 -4
index f52ed98d62d0..0192164c35fa 100644

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

drivers/net/i40e/i40e_vf_representor.c +24 -24

48 lines not on this page · raw message

drivers/net/iavf/iavf.h +12 -12
index 34bfa9af4734..12f541f53926 100644

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

drivers/net/iavf/iavf_ethdev.c +89 -89

178 lines not on this page · raw message

drivers/net/iavf/iavf_hash.c +160 -160

320 lines not on this page · raw message

drivers/net/iavf/iavf_rxtx.c +1 -1
index 88bbd40c1027..ac4db117f5cd 100644

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

drivers/net/iavf/iavf_rxtx.h +12 -12
index f4ae2fd6e123..2d7f6b1b2dca 100644

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

drivers/net/iavf/iavf_rxtx_vec_avx2.c +2 -2
index 72a4fcab04a5..b47c51b8ebe4 100644

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

drivers/net/iavf/iavf_rxtx_vec_avx512.c +3 -3
index 12375d3d80bd..b8f2f69f12fc 100644

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

drivers/net/iavf/iavf_rxtx_vec_sse.c +1 -1
index edb54991e298..1de43b9b8ee2 100644

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

drivers/net/ice/ice_dcf.c +1 -1
index c9c01a14e349..7b7df5eebb6d 100644

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

drivers/net/ice/ice_dcf_ethdev.c +43 -43

86 lines not on this page · raw message

drivers/net/ice/ice_dcf_vf_representor.c +28 -28

56 lines not on this page · raw message

drivers/net/ice/ice_ethdev.c +90 -90

180 lines not on this page · raw message

drivers/net/ice/ice_ethdev.h +13 -13
index 5845f44c860c..ff9bef17760b 100644

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

drivers/net/ice/ice_hash.c +145 -145

290 lines not on this page · raw message

drivers/net/ice/ice_rxtx.c +8 -8
index ff362c21d9f5..8406240d7209 100644

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

drivers/net/ice/ice_rxtx_vec_avx2.c +1 -1
index 9725ac018043..8c870354619e 100644

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

drivers/net/ice/ice_rxtx_vec_avx512.c +2 -2
index 5bba9887d296..6d2038975830 100644

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

drivers/net/ice/ice_rxtx_vec_common.h +14 -14
index 5b5250565e35..a04b6fee560a 100644

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

drivers/net/ice/ice_rxtx_vec_sse.c +1 -1
index 653bd28b417c..117494131f32 100644

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

drivers/net/igc/igc_ethdev.c +69 -69

138 lines not on this page · raw message

drivers/net/igc/igc_ethdev.h +27 -27

54 lines not on this page · raw message

drivers/net/igc/igc_txrx.c +24 -24

48 lines not on this page · raw message

drivers/net/ionic/ionic_ethdev.c +69 -69

138 lines not on this page · raw message

drivers/net/ionic/ionic_ethdev.h +6 -6
index 6cbcd0f825a3..652f28c97d57 100644

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

drivers/net/ionic/ionic_lif.c +18 -18
index a1f9ce2d81cb..5e8fdf3893ad 100644

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

drivers/net/ionic/ionic_rxtx.c +5 -5
index 4d16a39c6b6d..e3df7c56debe 100644

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

drivers/net/ipn3ke/ipn3ke_representor.c +32 -32

64 lines not on this page · raw message

drivers/net/ixgbe/ixgbe_ethdev.c +142 -143

285 lines not on this page · raw message

drivers/net/ixgbe/ixgbe_ethdev.h +9 -9
index 950fb2d2450c..876b670f2682 100644

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

drivers/net/ixgbe/ixgbe_fdir.c +12 -12
index 27a49bbce5e7..7894047829a8 100644

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

drivers/net/ixgbe/ixgbe_flow.c +1 -1
index 27322ab9038a..bdc9d4796c02 100644

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

drivers/net/ixgbe/ixgbe_ipsec.c +6 -6
index e45c5501e6bf..944c9f23809e 100644

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

drivers/net/ixgbe/ixgbe_pf.c +17 -17
index 295e5a39b245..9f1bd0a62ba4 100644

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

drivers/net/ixgbe/ixgbe_rxtx.c +124 -125

249 lines not on this page · raw message

drivers/net/ixgbe/ixgbe_rxtx.h +2 -2
index a1764f2b08af..668a5b9814f6 100644

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

drivers/net/ixgbe/ixgbe_rxtx_vec_common.h +1 -1
index 005e60668a8b..cd34d4098785 100644

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

drivers/net/ixgbe/ixgbe_tm.c +8 -8
index ae03ea6e9db3..ac8976062fa7 100644

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

drivers/net/ixgbe/ixgbe_vf_representor.c +8 -8
index 9fa75984fb31..bd528ff346c7 100644

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

drivers/net/ixgbe/rte_pmd_ixgbe.c +7 -7
index cf089cd9aee5..9729f8575f53 100644

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

drivers/net/ixgbe/rte_pmd_ixgbe.h +2 -2
index 90fc8160b1f8..eef6f6661c74 100644

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

drivers/net/kni/rte_eth_kni.c +4 -4
index cb9f7c8e8200..c428caf44189 100644

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

drivers/net/liquidio/lio_ethdev.c +57 -57

114 lines not on this page · raw message

drivers/net/memif/memif_socket.c +1 -1
index 364e818d65c1..8533e39f6957 100644

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

drivers/net/memif/rte_eth_memif.c +8 -8
index 980150293e86..9deb7a5f1360 100644

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

drivers/net/mlx4/mlx4_ethdev.c +16 -16
index 783ff94dce8d..d606ec8ca76d 100644

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

drivers/net/mlx4/mlx4_flow.c +15 -15
index 71ea91b3fb82..2e1b6c87e983 100644

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

drivers/net/mlx4/mlx4_intr.c +4 -4
index d56009c41845..2aab0f60a7b5 100644

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

drivers/net/mlx4/mlx4_rxq.c +9 -9
index ee2d2b75e59a..781ee256df71 100644

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

drivers/net/mlx4/mlx4_txq.c +12 -12
index 7d8c4f2a2223..0db2e55befd3 100644

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

drivers/net/mlx5/linux/mlx5_ethdev_os.c +27 -27

54 lines not on this page · raw message

drivers/net/mlx5/linux/mlx5_os.c +3 -3
index a823d26bebf9..d207ec053e07 100644

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

drivers/net/mlx5/mlx5.c +2 -2
index e28cc461b914..7727dfb4196c 100644

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

drivers/net/mlx5/mlx5.h +1 -1
index a15f86616d49..ea17a86f4955 100644

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

drivers/net/mlx5/mlx5_defs.h +3 -3
index fe86bb40d351..12ddf4c7ff28 100644

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

drivers/net/mlx5/mlx5_ethdev.c +3 -3
index 82e2284d9866..f2b78c3cc69e 100644

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

drivers/net/mlx5/mlx5_flow.c +27 -27

54 lines not on this page · raw message

drivers/net/mlx5/mlx5_flow.h +6 -6
index 5c68d4f7d742..ff85c1c013a5 100644

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

drivers/net/mlx5/mlx5_flow_dv.c +22 -22

44 lines not on this page · raw message

drivers/net/mlx5/mlx5_flow_verbs.c +2 -2
index 1627c3905fa4..8a455cbf22f4 100644

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

drivers/net/mlx5/mlx5_rss.c +5 -5
index c32129cdc2b8..a4f690039e24 100644

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

drivers/net/mlx5/mlx5_rxq.c +20 -20
index d8d7e481dea0..eb4dc3375248 100644

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

drivers/net/mlx5/mlx5_rxtx_vec.h +4 -4
index 93b4f517bb3e..65d91bdf67e2 100644

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

drivers/net/mlx5/mlx5_tx.c +15 -15
index df671379e46d..12aeba60348a 100644

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

drivers/net/mlx5/mlx5_txq.c +29 -29

58 lines not on this page · raw message

drivers/net/mlx5/mlx5_vlan.c +2 -2
index 60f97f2d2d1f..07792fc5d94f 100644

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

drivers/net/mlx5/windows/mlx5_os.c +2 -2
index 8937ec0d3037..7f7b545ca63a 100644

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

drivers/net/mvneta/mvneta_ethdev.c +16 -16
index 2a0288087357..10fe6d828ccd 100644

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

drivers/net/mvneta/mvneta_ethdev.h +5 -5
index 6428f9ff7931..64aadcffd85a 100644

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

drivers/net/mvneta/mvneta_rxtx.c +1 -1
index 9836bb071a82..62d8aa586dae 100644

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

drivers/net/mvpp2/mrvl_ethdev.c +56 -56

112 lines not on this page · raw message

drivers/net/netvsc/hn_ethdev.c +35 -35

70 lines not on this page · raw message

drivers/net/netvsc/hn_rndis.c +25 -25

50 lines not on this page · raw message

drivers/net/nfb/nfb_ethdev.c +10 -10
index 99d93ebf4667..3c39937816a4 100644

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

drivers/net/nfb/nfb_rx.c +1 -1
index 3ebb332ae46c..f76e2ba64621 100644

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

drivers/net/nfp/nfp_common.c +61 -61

122 lines not on this page · raw message

drivers/net/nfp/nfp_ethdev.c +1 -1
index 1169ea77a8c7..e08e594b04fe 100644

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

drivers/net/nfp/nfp_ethdev_vf.c +1 -1
index 62cb3536e0c9..817fe64dbceb 100644

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

drivers/net/ngbe/ngbe_ethdev.c +25 -25

50 lines not on this page · raw message

drivers/net/null/rte_eth_null.c +14 -14
index 25b9e5b1ce1b..ca03469d0e6d 100644

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

drivers/net/octeontx/octeontx_ethdev.c +37 -37

74 lines not on this page · raw message

drivers/net/octeontx/octeontx_ethdev.h +15 -15
index 3a02824e3948..c493fa7a03ed 100644

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

drivers/net/octeontx/octeontx_ethdev_ops.c +13 -13
index dbe13ce3826b..6ec2b71b0672 100644

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

drivers/net/octeontx2/otx2_ethdev.c +48 -48

96 lines not on this page · raw message

drivers/net/octeontx2/otx2_ethdev.h +32 -32

64 lines not on this page · raw message

drivers/net/octeontx2/otx2_ethdev_devargs.c +6 -6
index 83f905315b38..60bf6c3f5f05 100644

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

drivers/net/octeontx2/otx2_ethdev_ops.c +7 -7
index 22a8af5cba45..d5caaa326a5a 100644

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

drivers/net/octeontx2/otx2_ethdev_sec.c +4 -4
index c2a36883cbf2..e1654ef5b284 100644

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

drivers/net/octeontx2/otx2_flow.c +1 -1
index 6df0732189eb..1d0fe4e950d4 100644

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

drivers/net/octeontx2/otx2_flow_ctrl.c +18 -18
index 76bf48100183..071740de86a7 100644

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

drivers/net/octeontx2/otx2_flow_parse.c +2 -2
index 79b92fda8a4a..91267bbb8182 100644

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

drivers/net/octeontx2/otx2_link.c +20 -20
index 81dd6243b977..8f5d0eed92b6 100644

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

drivers/net/octeontx2/otx2_mcast.c +1 -1
index f84aa1bf570c..b9c63ad3bc21 100644

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

drivers/net/octeontx2/otx2_ptp.c +2 -2
index 91e5c0f6bd11..abb213058792 100644

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

drivers/net/octeontx2/otx2_rss.c +35 -35

70 lines not on this page · raw message

drivers/net/octeontx2/otx2_rx.c +2 -2
index ffeade5952dc..986902287b67 100644

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

drivers/net/octeontx2/otx2_tx.c +1 -1
index ff299f00b913..c60190074926 100644

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

drivers/net/octeontx2/otx2_vlan.c +21 -21

42 lines not on this page · raw message

drivers/net/octeontx_ep/otx_ep_ethdev.c +3 -3
index 698d22e22685..74dc36a17648 100644

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

drivers/net/octeontx_ep/otx_ep_rxtx.c +3 -3
index aa4dcd33cc79..9338b30672ec 100644

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

drivers/net/pcap/pcap_ethdev.c +6 -6
index d695c5eef7b0..ec29fd6bc53c 100644

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

drivers/net/pfe/pfe_ethdev.c +9 -9
index 4cc002ee8fab..047010e15ed0 100644

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

drivers/net/qede/base/mcp_public.h +2 -2
index 6667c2d7ab6d..511742c6a1b3 100644

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

drivers/net/qede/qede_ethdev.c +78 -78

156 lines not on this page · raw message

drivers/net/qede/qede_filter.c +21 -21

42 lines not on this page · raw message

drivers/net/qede/qede_rxtx.c +1 -1
index c2263787b4ec..d585db8b61e8 100644

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

drivers/net/qede/qede_rxtx.h +8 -8
index c9334448c887..15112b83f4f7 100644

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

drivers/net/ring/rte_eth_ring.c +10 -10
index 0440019e07e1..db10f035dfcb 100644

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

drivers/net/sfc/sfc.c +15 -15
index f79f4d5ffc94..79a27c7703a8 100644

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

drivers/net/sfc/sfc_ef100_rx.c +5 -5
index d958fd642fb1..eeb73a7530ef 100644

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

drivers/net/sfc/sfc_ef100_tx.c +10 -10
index e166fda888b1..67980a587fe4 100644

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

drivers/net/sfc/sfc_ef10_essb_rx.c +2 -2
index 991329e86f01..9ea207cca163 100644

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

drivers/net/sfc/sfc_ef10_rx.c +4 -4
index 49a7d4fb42fd..9aaabd30eee6 100644

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

drivers/net/sfc/sfc_ef10_tx.c +16 -16
index ed43adb4ca5c..e7da4608bcb0 100644

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

drivers/net/sfc/sfc_ethdev.c +25 -25

50 lines not on this page · raw message

drivers/net/sfc/sfc_flow.c +1 -1
index 81b9923644aa..23399fcab252 100644

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

drivers/net/sfc/sfc_port.c +26 -26

52 lines not on this page · raw message

drivers/net/sfc/sfc_repr.c +5 -5
index 2500b14cb006..9d88d554c1ba 100644

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

drivers/net/sfc/sfc_rx.c +25 -25

50 lines not on this page · raw message

drivers/net/sfc/sfc_tx.c +25 -25

50 lines not on this page · raw message

drivers/net/softnic/rte_eth_softnic.c +6 -6
index b3b55b9035b1..3ef33818a9e0 100644

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

drivers/net/szedata2/rte_eth_szedata2.c +7 -7
index 3c6a285e3c5e..6a084e3e1b1b 100644

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

drivers/net/tap/rte_eth_tap.c +52 -52

104 lines not on this page · raw message

drivers/net/tap/tap_rss.h +1 -1
index 176e7180bdaa..48c151cf6b68 100644

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

drivers/net/thunderx/nicvf_ethdev.c +51 -51

102 lines not on this page · raw message

drivers/net/thunderx/nicvf_ethdev.h +20 -20
index 5d38750d6313..cb474e26b81e 100644

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

drivers/net/txgbe/txgbe_ethdev.c +121 -121

242 lines not on this page · raw message

drivers/net/txgbe/txgbe_ethdev.h +9 -9
index fd65d89ffe7d..8304b68292da 100644

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

drivers/net/txgbe/txgbe_ethdev_vf.c +12 -12
index 43dc0ed39b75..283b52e8f3db 100644

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

drivers/net/txgbe/txgbe_fdir.c +10 -10
index 8abb86228608..e303d87176ed 100644

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

drivers/net/txgbe/txgbe_flow.c +1 -1
index eae400b14176..6d7fd1842843 100644

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

drivers/net/txgbe/txgbe_ipsec.c +6 -6
index ccd747973ba2..445733f3ba46 100644

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

drivers/net/txgbe/txgbe_pf.c +17 -17
index a48972b1a381..30be2873307a 100644

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

drivers/net/txgbe/txgbe_rxtx.c +154 -154

308 lines not on this page · raw message

drivers/net/txgbe/txgbe_rxtx.h +2 -2
index b96f58a3f848..27d4c842c0e7 100644

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

drivers/net/txgbe/txgbe_tm.c +8 -8
index 3abe3959eb1a..3171be73d05d 100644

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

drivers/net/vhost/rte_eth_vhost.c +8 -8
index a7935a716de9..27f81a5cafc5 100644

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

drivers/net/virtio/virtio_ethdev.c +62 -62

124 lines not on this page · raw message

drivers/net/vmxnet3/vmxnet3_ethdev.c +36 -36

72 lines not on this page · raw message

drivers/net/vmxnet3/vmxnet3_ethdev.h +8 -8
index 8950175460f0..ef858ac9512f 100644

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

drivers/net/vmxnet3/vmxnet3_rxtx.c +8 -8
index b01c4c01f9c9..870100fa4f11 100644

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

examples/bbdev_app/main.c +3 -3
index 68e3c13730ad..a9fef2297842 100644

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

examples/bond/main.c +7 -7
index 6352a715c0d9..3f41d8e5965d 100644

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

examples/distributor/main.c +6 -6
index 8c4a8feec0c2..c681e237ea46 100644

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

examples/ethtool/ethtool-app/main.c +1 -1
index 1bc675962bf3..cdd9e9b60bd8 100644

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

examples/ethtool/lib/rte_ethtool.c +9 -9
index 413251630709..e7cdf8d5775b 100644

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

examples/eventdev_pipeline/pipeline_worker_generic.c +8 -8
index e26be8edf28f..193a16463449 100644

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

examples/eventdev_pipeline/pipeline_worker_tx.c +6 -6
index 476b147bdfcc..1b841d46ad93 100644

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

examples/flow_classify/flow_classify.c +2 -2
index 8a43f6ac0f92..6185b340600c 100644

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

examples/flow_filtering/main.c +8 -8
index dd8a33d036ee..bfc1949c8428 100644

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

examples/ioat/ioatfwd.c +4 -4
index ccfee585f850..b1aa2767a0af 100644

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

examples/ip_fragmentation/main.c +6 -6
index 8644454a9aef..0307709f2b4a 100644

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

examples/ip_pipeline/link.c +10 -10
index 9ba02e687adb..0290767af473 100644

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

examples/ip_reassembly/main.c +9 -9
index 4f0e12e62447..a9f9bd477007 100644

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

examples/ipsec-secgw/ipsec-secgw.c +16 -16
index 5f5ec260f315..feddd84d1551 100644

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

examples/ipsec-secgw/sa.c +4 -4
index 17a28556c971..5cdd794f017f 100644

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

examples/ipv4_multicast/main.c +3 -3
index 87538dccc879..32670f80bc2b 100644

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

examples/kni/main.c +4 -4
index 1790ec024072..f780be712ec0 100644

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

examples/l2fwd-crypto/main.c +5 -5
index c646f1748ca7..42c04abbbb34 100644

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

examples/l2fwd-event/l2fwd_common.c +5 -5
index 9040be5ed9b6..cf3d1b8aaf40 100644

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

examples/l2fwd-event/main.c +1 -1
index 1db89f2bd139..9806204b81d1 100644

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

examples/l2fwd-jobstats/main.c +4 -4
index 06280321b1f2..092ea0189c7f 100644

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

examples/l2fwd-keepalive/main.c +4 -4
index 07271affb4a9..78e43f9c091e 100644

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

examples/l2fwd/main.c +4 -4
index f3deeba0a665..3edabd1dd19b 100644

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

examples/l3fwd-acl/main.c +9 -9
index 1890c88a5b01..fea414ae5929 100644

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

examples/l3fwd-graph/main.c +7 -7
index 05385807e83e..7f00c65609ed 100644

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

examples/l3fwd-power/main.c +8 -8
index 6aa1b66ecfcc..5a4359a368b5 100644

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

examples/l3fwd/l3fwd_event.c +2 -2
index 961860ea18ef..7c7613a83aad 100644

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

examples/l3fwd/main.c +9 -9
index f27c76bb7a73..51cbf81f1afa 100644

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

examples/link_status_interrupt/main.c +5 -5
index e4542df11f87..8714acddd110 100644

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

examples/multi_process/client_server_mp/mp_server/init.c +2 -2
index 1ad71ca7ec5f..23307073c904 100644

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

examples/multi_process/symmetric_mp/main.c +7 -7
index 01dc3acf34d5..85955375f1bf 100644

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

examples/ntb/ntb_fwd.c +3 -3
index e9a388710647..f110fc129f55 100644

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

examples/packet_ordering/main.c +2 -2
index 4f6982bc1289..b01ac60fd196 100644

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

examples/performance-thread/l3fwd-thread/main.c +8 -8
index 5de5df997ee9..baeee9298d57 100644

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

examples/pipeline/obj.c +10 -10
index 4f20dfc4be06..569207a79d62 100644

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

examples/ptpclient/ptpclient.c +5 -5
index 229a277032cb..979d9eb9e9d0 100644

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

examples/qos_meter/main.c +8 -8
index c32d2e12e633..743bae2da50a 100644

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

examples/qos_sched/init.c +3 -3
index 1367569c65db..9b34e4a76b1b 100644

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

examples/rxtx_callbacks/main.c +4 -4
index 6845c396b8d9..1903d8b095a1 100644

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

examples/server_node_efd/server/init.c +4 -4
index 9ebd88bac20e..074fee5b26b2 100644

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

examples/skeleton/basicfwd.c +2 -2
index fd7207aee758..16435ee3ccc2 100644

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

examples/vhost/main.c +13 -13
index 999809e6ed41..49c134a3042f 100644

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

examples/vm_power_manager/main.c +3 -3
index e19d79a40802..b159291d77ce 100644

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

examples/vmdq/main.c +10 -10
index ee7f4324e141..1f336082e5c1 100644

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

examples/vmdq_dcb/main.c +20 -20
index 14c20e6a8b26..1a19f1799bd2 100644

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

lib/ethdev/ethdev_driver.h +18 -18
index 0174ba03d7f3..c134b878684e 100644

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

lib/ethdev/rte_ethdev.c +89 -92

181 lines not on this page · raw message

lib/ethdev/rte_ethdev.h +646 -383

1,029 lines not on this page · raw message

lib/ethdev/rte_flow.h +1 -1
index d5bfdaaaf2ec..2b320092990b 100644

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

lib/gso/rte_gso.c +10 -10
index 0d02ec3cee05..119fdcac0b7f 100644

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

lib/gso/rte_gso.h +2 -2
index d93ee8e5b171..0a65afc11e64 100644

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

lib/mbuf/rte_mbuf_core.h +4 -4
index d6f167994411..5a5b6b1e33c1 100644

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

lib/mbuf/rte_mbuf_dyn.h +1 -1
index fb03cf1dcf90..29abe8da53cf 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.31.1

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

#18 lore raw

PATCH v5 1/1 ethdev: add namespace

Add 'RTE_ETH' namespace to all enums & macros in a backward compatible Add 'RTE_ETH' namespace to all enums & macros in a backward compatible way. The macros for backward compatibility can be removed in next LTS. Also updated some struct names to have 'rte_eth' prefix.

All internal components switched to using new names.

Syntax fixed on lines that this patch touches.

---
Cc: David Marchand <[email protected]>
Cc: Thomas Monjalon <[email protected]>

v2:
* Updated internal components
* Removed deprecation notice

v3:
* Updated missing macros / structs that David highlighted
* Added release notes update

v4:
* rebased on latest next-net
* depends on https://patches.dpdk.org/user/todo/dpdk/?series=19744
* Not able to complete scripts to update user code, although some shared by Aman:
https://patches.dpdk.org/project/dpdk/patch/[email protected]/
Sending new version for possible option to get this patch for -rc1 and work for scripts later, before release.

v5:
* rebased on latest next-net

---
 app/proc-info/main.c                          |    8 +-
 app/test-eventdev/test_perf_common.c          |    4 +-
 app/test-eventdev/test_pipeline_common.c      |   10 +-
 app/test-flow-perf/config.h                   |    2 +-
 app/test-pipeline/init.c                      |    8 +-
 app/test-pmd/cmdline.c                        |  286 ++---
 app/test-pmd/config.c                         |  200 ++--
 app/test-pmd/csumonly.c                       |   28 +-
 app/test-pmd/flowgen.c                        |    6 +-
 app/test-pmd/macfwd.c                         |    6 +-
 app/test-pmd/macswap_common.h                 |    6 +-
 app/test-pmd/parameters.c                     |   54 +-
 app/test-pmd/testpmd.c                        |   52 +-
 app/test-pmd/testpmd.h                        |    2 +-
 app/test-pmd/txonly.c                         |    6 +-
 app/test/test_ethdev_link.c                   |   68 +-
 app/test/test_event_eth_rx_adapter.c          |    4 +-
 app/test/test_kni.c                           |    2 +-
 app/test/test_link_bonding.c                  |    4 +-
 app/test/test_link_bonding_mode4.c            |    4 +-
 app/test/test_link_bonding_rssconf.c          |   28 +-
 app/test/test_pmd_perf.c                      |   12 +-
 app/test/virtual_pmd.c                        |   10 +-
 doc/guides/eventdevs/cnxk.rst                 |    2 +-
 doc/guides/eventdevs/octeontx2.rst            |    2 +-
 doc/guides/nics/af_packet.rst                 |    2 +-
 doc/guides/nics/bnxt.rst                      |   24 +-
 doc/guides/nics/enic.rst                      |    2 +-
 doc/guides/nics/features.rst                  |  114 +-
 doc/guides/nics/fm10k.rst                     |    6 +-
 doc/guides/nics/intel_vf.rst                  |   10 +-
 doc/guides/nics/ixgbe.rst                     |   12 +-
 doc/guides/nics/mlx5.rst                      |    4 +-
 doc/guides/nics/tap.rst                       |    2 +-
 .../generic_segmentation_offload_lib.rst      |    8 +-
 doc/guides/prog_guide/mbuf_lib.rst            |   18 +-
 doc/guides/prog_guide/poll_mode_drv.rst       |    8 +-
 doc/guides/prog_guide/rte_flow.rst            |   34 +-
 doc/guides/prog_guide/rte_security.rst        |    2 +-
 doc/guides/rel_notes/deprecation.rst          |   10 +-
 doc/guides/rel_notes/release_21_11.rst        |    3 +
 doc/guides/sample_app_ug/ipsec_secgw.rst      |    4 +-
 doc/guides/testpmd_app_ug/run_app.rst         |    2 +-
 drivers/bus/dpaa/include/process.h            |   16 +-
 drivers/common/cnxk/roc_npc.h                 |    2 +-
 drivers/net/af_packet/rte_eth_af_packet.c     |   20 +-
 drivers/net/af_xdp/rte_eth_af_xdp.c           |   12 +-
 drivers/net/ark/ark_ethdev.c                  |   16 +-
 drivers/net/atlantic/atl_ethdev.c             |   88 +-
 drivers/net/atlantic/atl_ethdev.h             |   18 +-
 drivers/net/atlantic/atl_rxtx.c               |    6 +-
 drivers/net/avp/avp_ethdev.c                  |   26 +-
 drivers/net/axgbe/axgbe_dev.c                 |    6 +-
 drivers/net/axgbe/axgbe_ethdev.c              |  104 +-
 drivers/net/axgbe/axgbe_ethdev.h              |   12 +-
 drivers/net/axgbe/axgbe_mdio.c                |    2 +-
 drivers/net/axgbe/axgbe_rxtx.c                |    6 +-
 drivers/net/bnx2x/bnx2x_ethdev.c              |   12 +-
 drivers/net/bnxt/bnxt.h                       |   62 +-
 drivers/net/bnxt/bnxt_ethdev.c                |  172 +--
 drivers/net/bnxt/bnxt_flow.c                  |    6 +-
 drivers/net/bnxt/bnxt_hwrm.c                  |  112 +-
 drivers/net/bnxt/bnxt_reps.c                  |    2 +-
 drivers/net/bnxt/bnxt_ring.c                  |    4 +-
 drivers/net/bnxt/bnxt_rxq.c                   |   28 +-
 drivers/net/bnxt/bnxt_rxr.c                   |    4 +-
 drivers/net/bnxt/bnxt_rxtx_vec_avx2.c         |    2 +-
 drivers/net/bnxt/bnxt_rxtx_vec_common.h       |    2 +-
 drivers/net/bnxt/bnxt_rxtx_vec_neon.c         |    2 +-
 drivers/net/bnxt/bnxt_rxtx_vec_sse.c          |    2 +-
 drivers/net/bnxt/bnxt_txr.c                   |    4 +-
 drivers/net/bnxt/bnxt_vnic.c                  |   30 +-
 drivers/net/bnxt/rte_pmd_bnxt.c               |    8 +-
 drivers/net/bonding/eth_bond_private.h        |    4 +-
 drivers/net/bonding/rte_eth_bond_8023ad.c     |   16 +-
 drivers/net/bonding/rte_eth_bond_api.c        |    6 +-
 drivers/net/bonding/rte_eth_bond_pmd.c        |   50 +-
 drivers/net/cnxk/cn10k_ethdev.c               |   42 +-
 drivers/net/cnxk/cn10k_rte_flow.c             |    2 +-
 drivers/net/cnxk/cn10k_rx.c                   |    4 +-
 drivers/net/cnxk/cn10k_tx.c                   |    4 +-
 drivers/net/cnxk/cn9k_ethdev.c                |   60 +-
 drivers/net/cnxk/cn9k_rx.c                    |    4 +-
 drivers/net/cnxk/cn9k_tx.c                    |    4 +-
 drivers/net/cnxk/cnxk_ethdev.c                |  112 +-
 drivers/net/cnxk/cnxk_ethdev.h                |   49 +-
 drivers/net/cnxk/cnxk_ethdev_devargs.c        |    6 +-
 drivers/net/cnxk/cnxk_ethdev_ops.c            |  106 +-
 drivers/net/cnxk/cnxk_link.c                  |   14 +-
 drivers/net/cnxk/cnxk_ptp.c                   |    4 +-
 drivers/net/cnxk/cnxk_rte_flow.c              |    2 +-
 drivers/net/cxgbe/cxgbe.h                     |   46 +-
 drivers/net/cxgbe/cxgbe_ethdev.c              |   42 +-
 drivers/net/cxgbe/cxgbe_main.c                |   12 +-
 drivers/net/dpaa/dpaa_ethdev.c                |  180 +--
 drivers/net/dpaa/dpaa_ethdev.h                |   10 +-
 drivers/net/dpaa/dpaa_flow.c                  |   32 +-
 drivers/net/dpaa2/base/dpaa2_hw_dpni.c        |   47 +-
 drivers/net/dpaa2/dpaa2_ethdev.c              |  138 +--
 drivers/net/dpaa2/dpaa2_ethdev.h              |   22 +-
 drivers/net/dpaa2/dpaa2_rxtx.c                |    8 +-
 drivers/net/e1000/e1000_ethdev.h              |   18 +-
 drivers/net/e1000/em_ethdev.c                 |   64 +-
 drivers/net/e1000/em_rxtx.c                   |   38 +-
 drivers/net/e1000/igb_ethdev.c                |  158 +--
 drivers/net/e1000/igb_pf.c                    |    2 +-
 drivers/net/e1000/igb_rxtx.c                  |  116 +-
 drivers/net/ena/ena_ethdev.c                  |   70 +-
 drivers/net/ena/ena_ethdev.h                  |    4 +-
 drivers/net/ena/ena_rss.c                     |   74 +-
 drivers/net/enetc/enetc_ethdev.c              |   30 +-
 drivers/net/enic/enic.h                       |    2 +-
 drivers/net/enic/enic_ethdev.c                |   88 +-
 drivers/net/enic/enic_main.c                  |   40 +-
 drivers/net/enic/enic_res.c                   |   50 +-
 drivers/net/failsafe/failsafe.c               |    8 +-
 drivers/net/failsafe/failsafe_intr.c          |    4 +-
 drivers/net/failsafe/failsafe_ops.c           |   78 +-
 drivers/net/fm10k/fm10k.h                     |    4 +-
 drivers/net/fm10k/fm10k_ethdev.c              |  146 +--
 drivers/net/fm10k/fm10k_rxtx_vec.c            |    6 +-
 drivers/net/hinic/base/hinic_pmd_hwdev.c      |   22 +-
 drivers/net/hinic/hinic_pmd_ethdev.c          |  136 +--
 drivers/net/hinic/hinic_pmd_rx.c              |   36 +-
 drivers/net/hinic/hinic_pmd_rx.h              |   22 +-
 drivers/net/hns3/hns3_dcb.c                   |   14 +-
 drivers/net/hns3/hns3_ethdev.c                |  352 +++---
 drivers/net/hns3/hns3_ethdev.h                |   12 +-
 drivers/net/hns3/hns3_ethdev_vf.c             |  100 +-
 drivers/net/hns3/hns3_flow.c                  |    6 +-
 drivers/net/hns3/hns3_ptp.c                   |    2 +-
 drivers/net/hns3/hns3_rss.c                   |  108 +-
 drivers/net/hns3/hns3_rss.h                   |   28 +-
 drivers/net/hns3/hns3_rxtx.c                  |   30 +-
 drivers/net/hns3/hns3_rxtx.h                  |    2 +-
 drivers/net/hns3/hns3_rxtx_vec.c              |   10 +-
 drivers/net/i40e/i40e_ethdev.c                |  272 ++---
 drivers/net/i40e/i40e_ethdev.h                |   24 +-
 drivers/net/i40e/i40e_flow.c                  |   32 +-
 drivers/net/i40e/i40e_hash.c                  |  158 +--
 drivers/net/i40e/i40e_pf.c                    |   14 +-
 drivers/net/i40e/i40e_rxtx.c                  |    8 +-
 drivers/net/i40e/i40e_rxtx.h                  |    4 +-
 drivers/net/i40e/i40e_rxtx_vec_avx512.c       |    2 +-
 drivers/net/i40e/i40e_rxtx_vec_common.h       |    8 +-
 drivers/net/i40e/i40e_vf_representor.c        |   48 +-
 drivers/net/iavf/iavf.h                       |   24 +-
 drivers/net/iavf/iavf_ethdev.c                |  178 +--
 drivers/net/iavf/iavf_hash.c                  |  320 +++---
 drivers/net/iavf/iavf_rxtx.c                  |    2 +-
 drivers/net/iavf/iavf_rxtx.h                  |   24 +-
 drivers/net/iavf/iavf_rxtx_vec_avx2.c         |    4 +-
 drivers/net/iavf/iavf_rxtx_vec_avx512.c       |    6 +-
 drivers/net/iavf/iavf_rxtx_vec_sse.c          |    2 +-
 drivers/net/ice/ice_dcf.c                     |    2 +-
 drivers/net/ice/ice_dcf_ethdev.c              |   86 +-
 drivers/net/ice/ice_dcf_vf_representor.c      |   56 +-
 drivers/net/ice/ice_ethdev.c                  |  180 +--
 drivers/net/ice/ice_ethdev.h                  |   26 +-
 drivers/net/ice/ice_hash.c                    |  290 ++---
 drivers/net/ice/ice_rxtx.c                    |   16 +-
 drivers/net/ice/ice_rxtx_vec_avx2.c           |    2 +-
 drivers/net/ice/ice_rxtx_vec_avx512.c         |    4 +-
 drivers/net/ice/ice_rxtx_vec_common.h         |   28 +-
 drivers/net/ice/ice_rxtx_vec_sse.c            |    2 +-
 drivers/net/igc/igc_ethdev.c                  |  138 +--
 drivers/net/igc/igc_ethdev.h                  |   54 +-
 drivers/net/igc/igc_txrx.c                    |   48 +-
 drivers/net/ionic/ionic_ethdev.c              |  138 +--
 drivers/net/ionic/ionic_ethdev.h              |   12 +-
 drivers/net/ionic/ionic_lif.c                 |   36 +-
 drivers/net/ionic/ionic_rxtx.c                |   10 +-
 drivers/net/ipn3ke/ipn3ke_representor.c       |   64 +-
 drivers/net/ixgbe/ixgbe_ethdev.c              |  285 +++--
 drivers/net/ixgbe/ixgbe_ethdev.h              |   18 +-
 drivers/net/ixgbe/ixgbe_fdir.c                |   24 +-
 drivers/net/ixgbe/ixgbe_flow.c                |    2 +-
 drivers/net/ixgbe/ixgbe_ipsec.c               |   12 +-
 drivers/net/ixgbe/ixgbe_pf.c                  |   34 +-
 drivers/net/ixgbe/ixgbe_rxtx.c                |  249 ++--
 drivers/net/ixgbe/ixgbe_rxtx.h                |    4 +-
 drivers/net/ixgbe/ixgbe_rxtx_vec_common.h     |    2 +-
 drivers/net/ixgbe/ixgbe_tm.c                  |   16 +-
 drivers/net/ixgbe/ixgbe_vf_representor.c      |   16 +-
 drivers/net/ixgbe/rte_pmd_ixgbe.c             |   14 +-
 drivers/net/ixgbe/rte_pmd_ixgbe.h             |    4 +-
 drivers/net/kni/rte_eth_kni.c                 |    8 +-
 drivers/net/liquidio/lio_ethdev.c             |  114 +-
 drivers/net/memif/memif_socket.c              |    2 +-
 drivers/net/memif/rte_eth_memif.c             |   16 +-
 drivers/net/mlx4/mlx4_ethdev.c                |   32 +-
 drivers/net/mlx4/mlx4_flow.c                  |   30 +-
 drivers/net/mlx4/mlx4_intr.c                  |    8 +-
 drivers/net/mlx4/mlx4_rxq.c                   |   18 +-
 drivers/net/mlx4/mlx4_txq.c                   |   24 +-
 drivers/net/mlx5/linux/mlx5_ethdev_os.c       |   54 +-
 drivers/net/mlx5/linux/mlx5_os.c              |    6 +-
 drivers/net/mlx5/mlx5.c                       |    4 +-
 drivers/net/mlx5/mlx5.h                       |    2 +-
 drivers/net/mlx5/mlx5_defs.h                  |    6 +-
 drivers/net/mlx5/mlx5_ethdev.c                |    6 +-
 drivers/net/mlx5/mlx5_flow.c                  |   54 +-
 drivers/net/mlx5/mlx5_flow.h                  |   12 +-
 drivers/net/mlx5/mlx5_flow_dv.c               |   44 +-
 drivers/net/mlx5/mlx5_flow_verbs.c            |    4 +-
 drivers/net/mlx5/mlx5_rss.c                   |   10 +-
 drivers/net/mlx5/mlx5_rxq.c                   |   40 +-
 drivers/net/mlx5/mlx5_rxtx_vec.h              |    8 +-
 drivers/net/mlx5/mlx5_tx.c                    |   30 +-
 drivers/net/mlx5/mlx5_txq.c                   |   58 +-
 drivers/net/mlx5/mlx5_vlan.c                  |    4 +-
 drivers/net/mlx5/windows/mlx5_os.c            |    4 +-
 drivers/net/mvneta/mvneta_ethdev.c            |   32 +-
 drivers/net/mvneta/mvneta_ethdev.h            |   10 +-
 drivers/net/mvneta/mvneta_rxtx.c              |    2 +-
 drivers/net/mvpp2/mrvl_ethdev.c               |  112 +-
 drivers/net/netvsc/hn_ethdev.c                |   70 +-
 drivers/net/netvsc/hn_rndis.c                 |   50 +-
 drivers/net/nfb/nfb_ethdev.c                  |   20 +-
 drivers/net/nfb/nfb_rx.c                      |    2 +-
 drivers/net/nfp/nfp_common.c                  |  122 +-
 drivers/net/nfp/nfp_ethdev.c                  |    2 +-
 drivers/net/nfp/nfp_ethdev_vf.c               |    2 +-
 drivers/net/ngbe/ngbe_ethdev.c                |   50 +-
 drivers/net/null/rte_eth_null.c               |   28 +-
 drivers/net/octeontx/octeontx_ethdev.c        |   74 +-
 drivers/net/octeontx/octeontx_ethdev.h        |   30 +-
 drivers/net/octeontx/octeontx_ethdev_ops.c    |   26 +-
 drivers/net/octeontx2/otx2_ethdev.c           |   96 +-
 drivers/net/octeontx2/otx2_ethdev.h           |   64 +-
 drivers/net/octeontx2/otx2_ethdev_devargs.c   |   12 +-
 drivers/net/octeontx2/otx2_ethdev_ops.c       |   14 +-
 drivers/net/octeontx2/otx2_ethdev_sec.c       |    8 +-
 drivers/net/octeontx2/otx2_flow.c             |    2 +-
 drivers/net/octeontx2/otx2_flow_ctrl.c        |   36 +-
 drivers/net/octeontx2/otx2_flow_parse.c       |    4 +-
 drivers/net/octeontx2/otx2_link.c             |   40 +-
 drivers/net/octeontx2/otx2_mcast.c            |    2 +-
 drivers/net/octeontx2/otx2_ptp.c              |    4 +-
 drivers/net/octeontx2/otx2_rss.c              |   70 +-
 drivers/net/octeontx2/otx2_rx.c               |    4 +-
 drivers/net/octeontx2/otx2_tx.c               |    2 +-
 drivers/net/octeontx2/otx2_vlan.c             |   42 +-
 drivers/net/octeontx_ep/otx_ep_ethdev.c       |    6 +-
 drivers/net/octeontx_ep/otx_ep_rxtx.c         |    6 +-
 drivers/net/pcap/pcap_ethdev.c                |   12 +-
 drivers/net/pfe/pfe_ethdev.c                  |   18 +-
 drivers/net/qede/base/mcp_public.h            |    4 +-
 drivers/net/qede/qede_ethdev.c                |  156 +--
 drivers/net/qede/qede_filter.c                |   42 +-
 drivers/net/qede/qede_rxtx.c                  |    2 +-
 drivers/net/qede/qede_rxtx.h                  |   16 +-
 drivers/net/ring/rte_eth_ring.c               |   20 +-
 drivers/net/sfc/sfc.c                         |   30 +-
 drivers/net/sfc/sfc_ef100_rx.c                |   10 +-
 drivers/net/sfc/sfc_ef100_tx.c                |   20 +-
 drivers/net/sfc/sfc_ef10_essb_rx.c            |    4 +-
 drivers/net/sfc/sfc_ef10_rx.c                 |    8 +-
 drivers/net/sfc/sfc_ef10_tx.c                 |   32 +-
 drivers/net/sfc/sfc_ethdev.c                  |   50 +-
 drivers/net/sfc/sfc_flow.c                    |    2 +-
 drivers/net/sfc/sfc_port.c                    |   52 +-
 drivers/net/sfc/sfc_repr.c                    |   10 +-
 drivers/net/sfc/sfc_rx.c                      |   50 +-
 drivers/net/sfc/sfc_tx.c                      |   50 +-
 drivers/net/softnic/rte_eth_softnic.c         |   12 +-
 drivers/net/szedata2/rte_eth_szedata2.c       |   14 +-
 drivers/net/tap/rte_eth_tap.c                 |  104 +-
 drivers/net/tap/tap_rss.h                     |    2 +-
 drivers/net/thunderx/nicvf_ethdev.c           |  102 +-
 drivers/net/thunderx/nicvf_ethdev.h           |   40 +-
 drivers/net/txgbe/txgbe_ethdev.c              |  242 ++--
 drivers/net/txgbe/txgbe_ethdev.h              |   18 +-
 drivers/net/txgbe/txgbe_ethdev_vf.c           |   24 +-
 drivers/net/txgbe/txgbe_fdir.c                |   20 +-
 drivers/net/txgbe/txgbe_flow.c                |    2 +-
 drivers/net/txgbe/txgbe_ipsec.c               |   12 +-
 drivers/net/txgbe/txgbe_pf.c                  |   34 +-
 drivers/net/txgbe/txgbe_rxtx.c                |  308 ++---
 drivers/net/txgbe/txgbe_rxtx.h                |    4 +-
 drivers/net/txgbe/txgbe_tm.c                  |   16 +-
 drivers/net/vhost/rte_eth_vhost.c             |   16 +-
 drivers/net/virtio/virtio_ethdev.c            |  124 +-
 drivers/net/vmxnet3/vmxnet3_ethdev.c          |   72 +-
 drivers/net/vmxnet3/vmxnet3_ethdev.h          |   16 +-
 drivers/net/vmxnet3/vmxnet3_rxtx.c            |   16 +-
 examples/bbdev_app/main.c                     |    6 +-
 examples/bond/main.c                          |   14 +-
 examples/distributor/main.c                   |   12 +-
 examples/ethtool/ethtool-app/main.c           |    2 +-
 examples/ethtool/lib/rte_ethtool.c            |   18 +-
 .../pipeline_worker_generic.c                 |   16 +-
 .../eventdev_pipeline/pipeline_worker_tx.c    |   12 +-
 examples/flow_classify/flow_classify.c        |    4 +-
 examples/flow_filtering/main.c                |   16 +-
 examples/ioat/ioatfwd.c                       |    8 +-
 examples/ip_fragmentation/main.c              |   12 +-
 examples/ip_pipeline/link.c                   |   20 +-
 examples/ip_reassembly/main.c                 |   18 +-
 examples/ipsec-secgw/ipsec-secgw.c            |   32 +-
 examples/ipsec-secgw/sa.c                     |    8 +-
 examples/ipv4_multicast/main.c                |    6 +-
 examples/kni/main.c                           |    8 +-
 examples/l2fwd-crypto/main.c                  |   10 +-
 examples/l2fwd-event/l2fwd_common.c           |   10 +-
 examples/l2fwd-event/main.c                   |    2 +-
 examples/l2fwd-jobstats/main.c                |    8 +-
 examples/l2fwd-keepalive/main.c               |    8 +-
 examples/l2fwd/main.c                         |    8 +-
 examples/l3fwd-acl/main.c                     |   18 +-
 examples/l3fwd-graph/main.c                   |   14 +-
 examples/l3fwd-power/main.c                   |   16 +-
 examples/l3fwd/l3fwd_event.c                  |    4 +-
 examples/l3fwd/main.c                         |   18 +-
 examples/link_status_interrupt/main.c         |   10 +-
 .../client_server_mp/mp_server/init.c         |    4 +-
 examples/multi_process/symmetric_mp/main.c    |   14 +-
 examples/ntb/ntb_fwd.c                        |    6 +-
 examples/packet_ordering/main.c               |    4 +-
 .../performance-thread/l3fwd-thread/main.c    |   16 +-
 examples/pipeline/obj.c                       |   20 +-
 examples/ptpclient/ptpclient.c                |   10 +-
 examples/qos_meter/main.c                     |   16 +-
 examples/qos_sched/init.c                     |    6 +-
 examples/rxtx_callbacks/main.c                |    8 +-
 examples/server_node_efd/server/init.c        |    8 +-
 examples/skeleton/basicfwd.c                  |    4 +-
 examples/vhost/main.c                         |   26 +-
 examples/vm_power_manager/main.c              |    6 +-
 examples/vmdq/main.c                          |   20 +-
 examples/vmdq_dcb/main.c                      |   40 +-
 lib/ethdev/ethdev_driver.h                    |   36 +-
 lib/ethdev/rte_ethdev.c                       |  181 ++-
 lib/ethdev/rte_ethdev.h                       | 1021 +++++++++++------
 lib/ethdev/rte_flow.h                         |    2 +-
 lib/gso/rte_gso.c                             |   20 +-
 lib/gso/rte_gso.h                             |    4 +-
 lib/mbuf/rte_mbuf_core.h                      |    8 +-
 lib/mbuf/rte_mbuf_dyn.h                       |    2 +-
 339 files changed, 6639 insertions(+), 6382 deletions(-)
app/proc-info/main.c +4 -4
index a8e928fa9ff3..963b6aa5c589 100644
@@ -757,11 +757,11 @@ show_port(void)
 		}
 
 		ret = rte_eth_dev_flow_ctrl_get(i, &fc_conf);
-		if (ret == 0 && fc_conf.mode != RTE_FC_NONE)  {
+		if (ret == 0 && fc_conf.mode != RTE_ETH_FC_NONE)  {
 			printf("\t  -- flow control mode %s%s high %u low %u pause %u%s%s\n",
-			       fc_conf.mode == RTE_FC_RX_PAUSE ? "rx " :
-			       fc_conf.mode == RTE_FC_TX_PAUSE ? "tx " :
-			       fc_conf.mode == RTE_FC_FULL ? "full" : "???",
+			       fc_conf.mode == RTE_ETH_FC_RX_PAUSE ? "rx " :
+			       fc_conf.mode == RTE_ETH_FC_TX_PAUSE ? "tx " :
+			       fc_conf.mode == RTE_ETH_FC_FULL ? "full" : "???",
 			       fc_conf.autoneg ? " auto" : "",
 			       fc_conf.high_water,
 			       fc_conf.low_water,
app/test-eventdev/test_perf_common.c +2 -2
index 660d5a0364b6..31d1b0e14653 100644
@@ -668,13 +668,13 @@ perf_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 	struct test_perf *t = evt_test_priv(test);
 	struct rte_eth_conf port_conf = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_RSS,
+			.mq_mode = RTE_ETH_MQ_RX_RSS,
 			.split_hdr_size = 0,
 		},
 		.rx_adv_conf = {
 			.rss_conf = {
 				.rss_key = NULL,
-				.rss_hf = ETH_RSS_IP,
+				.rss_hf = RTE_ETH_RSS_IP,
 			},
 		},
 	};
app/test-eventdev/test_pipeline_common.c +5 -5
index 2775e72c580d..d202091077a6 100644
@@ -176,12 +176,12 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 	struct rte_eth_rxconf rx_conf;
 	struct rte_eth_conf port_conf = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_RSS,
+			.mq_mode = RTE_ETH_MQ_RX_RSS,
 		},
 		.rx_adv_conf = {
 			.rss_conf = {
 				.rss_key = NULL,
-				.rss_hf = ETH_RSS_IP,
+				.rss_hf = RTE_ETH_RSS_IP,
 			},
 		},
 	};
@@ -223,7 +223,7 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 
 		if (!(caps & RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT))
 			local_port_conf.rxmode.offloads |=
-				DEV_RX_OFFLOAD_RSS_HASH;
+				RTE_ETH_RX_OFFLOAD_RSS_HASH;
 
 		ret = rte_eth_dev_info_get(i, &dev_info);
 		if (ret != 0) {
@@ -233,9 +233,9 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 		}
 
 		/* Enable mbuf fast free if PMD has the capability. */
-		if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_MBUF_FAST_FREE)
+		if (dev_info.tx_offload_capa & RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE)
 			local_port_conf.txmode.offloads |=
-				DEV_TX_OFFLOAD_MBUF_FAST_FREE;
+				RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE;
 
 		rx_conf = dev_info.default_rxconf;
 		rx_conf.offloads = port_conf.rxmode.offloads;
app/test-flow-perf/config.h +1 -1
index a14d4e05e185..4249b6175b82 100644
@@ -5,7 +5,7 @@
 #define FLOW_ITEM_MASK(_x) (UINT64_C(1) << _x)
 #define FLOW_ACTION_MASK(_x) (UINT64_C(1) << _x)
 #define FLOW_ATTR_MASK(_x) (UINT64_C(1) << _x)
-#define GET_RSS_HF() (ETH_RSS_IP)
+#define GET_RSS_HF() (RTE_ETH_RSS_IP)
 
 /* Configuration */
 #define RXQ_NUM 4
app/test-pipeline/init.c +4 -4
index fe37d63730c6..c73801904103 100644
@@ -70,16 +70,16 @@ struct app_params app = {
 static struct rte_eth_conf port_conf = {
 	.rxmode = {
 		.split_hdr_size = 0,
-		.offloads = DEV_RX_OFFLOAD_CHECKSUM,
+		.offloads = RTE_ETH_RX_OFFLOAD_CHECKSUM,
 	},
 	.rx_adv_conf = {
 		.rss_conf = {
 			.rss_key = NULL,
-			.rss_hf = ETH_RSS_IP,
+			.rss_hf = RTE_ETH_RSS_IP,
 		},
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 };
 
@@ -178,7 +178,7 @@ app_ports_check_link(void)
 		RTE_LOG(INFO, USER1, "Port %u %s\n",
 			port,
 			link_status_text);
-		if (link.link_status == ETH_LINK_DOWN)
+		if (link.link_status == RTE_ETH_LINK_DOWN)
 			all_ports_up = 0;
 	}
 
app/test-pmd/cmdline.c +143 -143

611 lines not on this page · raw message

app/test-pmd/config.c +100 -100

342 lines not on this page · raw message

app/test-pmd/csumonly.c +14 -14
index 090797318a35..75b24487e72e 100644
@@ -485,7 +485,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info,
 		if (info->l4_proto == IPPROTO_TCP && tso_segsz) {
 			ol_flags |= PKT_TX_IP_CKSUM;
 		} else {
-			if (tx_offloads & DEV_TX_OFFLOAD_IPV4_CKSUM) {
+			if (tx_offloads & RTE_ETH_TX_OFFLOAD_IPV4_CKSUM) {
 				ol_flags |= PKT_TX_IP_CKSUM;
 			} else {
 				ipv4_hdr->hdr_checksum = 0;
@@ -502,7 +502,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info,
 		udp_hdr = (struct rte_udp_hdr *)((char *)l3_hdr + info->l3_len);
 		/* do not recalculate udp cksum if it was 0 */
 		if (udp_hdr->dgram_cksum != 0) {
-			if (tx_offloads & DEV_TX_OFFLOAD_UDP_CKSUM) {
+			if (tx_offloads & RTE_ETH_TX_OFFLOAD_UDP_CKSUM) {
 				ol_flags |= PKT_TX_UDP_CKSUM;
 			} else {
 				udp_hdr->dgram_cksum = 0;
@@ -517,7 +517,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info,
 		tcp_hdr = (struct rte_tcp_hdr *)((char *)l3_hdr + info->l3_len);
 		if (tso_segsz)
 			ol_flags |= PKT_TX_TCP_SEG;
-		else if (tx_offloads & DEV_TX_OFFLOAD_TCP_CKSUM) {
+		else if (tx_offloads & RTE_ETH_TX_OFFLOAD_TCP_CKSUM) {
 			ol_flags |= PKT_TX_TCP_CKSUM;
 		} else {
 			tcp_hdr->cksum = 0;
@@ -532,7 +532,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info,
 			((char *)l3_hdr + info->l3_len);
 		/* sctp payload must be a multiple of 4 to be
 		 * offloaded */
-		if ((tx_offloads & DEV_TX_OFFLOAD_SCTP_CKSUM) &&
+		if ((tx_offloads & RTE_ETH_TX_OFFLOAD_SCTP_CKSUM) &&
 			((ipv4_hdr->total_length & 0x3) == 0)) {
 			ol_flags |= PKT_TX_SCTP_CKSUM;
 		} else {
@@ -559,7 +559,7 @@ process_outer_cksums(void *outer_l3_hdr, struct testpmd_offload_info *info,
 		ipv4_hdr->hdr_checksum = 0;
 		ol_flags |= PKT_TX_OUTER_IPV4;
 
-		if (tx_offloads	& DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM)
+		if (tx_offloads	& RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM)
 			ol_flags |= PKT_TX_OUTER_IP_CKSUM;
 		else
 			ipv4_hdr->hdr_checksum = rte_ipv4_cksum(ipv4_hdr);
@@ -576,7 +576,7 @@ process_outer_cksums(void *outer_l3_hdr, struct testpmd_offload_info *info,
 		ol_flags |= PKT_TX_TCP_SEG;
 
 	/* Skip SW outer UDP checksum generation if HW supports it */
-	if (tx_offloads & DEV_TX_OFFLOAD_OUTER_UDP_CKSUM) {
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM) {
 		if (info->outer_ethertype == _htons(RTE_ETHER_TYPE_IPV4))
 			udp_hdr->dgram_cksum
 				= rte_ipv4_phdr_cksum(ipv4_hdr, ol_flags);
@@ -959,9 +959,9 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
 		if (info.is_tunnel == 1) {
 			if (info.tunnel_tso_segsz ||
 			    (tx_offloads &
-			     DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM) ||
+			     RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM) ||
 			    (tx_offloads &
-			     DEV_TX_OFFLOAD_OUTER_UDP_CKSUM)) {
+			     RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM)) {
 				m->outer_l2_len = info.outer_l2_len;
 				m->outer_l3_len = info.outer_l3_len;
 				m->l2_len = info.l2_len;
@@ -1022,19 +1022,19 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
 					rte_be_to_cpu_16(info.outer_ethertype),
 					info.outer_l3_len);
 			/* dump tx packet info */
-			if ((tx_offloads & (DEV_TX_OFFLOAD_IPV4_CKSUM |
-					    DEV_TX_OFFLOAD_UDP_CKSUM |
-					    DEV_TX_OFFLOAD_TCP_CKSUM |
-					    DEV_TX_OFFLOAD_SCTP_CKSUM)) ||
+			if ((tx_offloads & (RTE_ETH_TX_OFFLOAD_IPV4_CKSUM |
+					    RTE_ETH_TX_OFFLOAD_UDP_CKSUM |
+					    RTE_ETH_TX_OFFLOAD_TCP_CKSUM |
+					    RTE_ETH_TX_OFFLOAD_SCTP_CKSUM)) ||
 				info.tso_segsz != 0)
 				printf("tx: m->l2_len=%d m->l3_len=%d "
 					"m->l4_len=%d\n",
 					m->l2_len, m->l3_len, m->l4_len);
 			if (info.is_tunnel == 1) {
 				if ((tx_offloads &
-				    DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM) ||
+				    RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM) ||
 				    (tx_offloads &
-				    DEV_TX_OFFLOAD_OUTER_UDP_CKSUM) ||
+				    RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM) ||
 				    (tx_ol_flags & PKT_TX_OUTER_IPV6))
 					printf("tx: m->outer_l2_len=%d "
 						"m->outer_l3_len=%d\n",
app/test-pmd/flowgen.c +3 -3
index 7ebed9fed334..03d026dec169 100644
@@ -99,11 +99,11 @@ pkt_burst_flow_gen(struct fwd_stream *fs)
 	vlan_tci_outer = ports[fs->tx_port].tx_vlan_id_outer;
 
 	tx_offloads = ports[fs->tx_port].dev_conf.txmode.offloads;
-	if (tx_offloads	& DEV_TX_OFFLOAD_VLAN_INSERT)
+	if (tx_offloads	& RTE_ETH_TX_OFFLOAD_VLAN_INSERT)
 		ol_flags |= PKT_TX_VLAN_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_QINQ_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_QINQ_INSERT)
 		ol_flags |= PKT_TX_QINQ_PKT;
-	if (tx_offloads	& DEV_TX_OFFLOAD_MACSEC_INSERT)
+	if (tx_offloads	& RTE_ETH_TX_OFFLOAD_MACSEC_INSERT)
 		ol_flags |= PKT_TX_MACSEC;
 
 	for (nb_pkt = 0; nb_pkt < nb_pkt_per_burst; nb_pkt++) {
app/test-pmd/macfwd.c +3 -3
index ee76df7f0323..57e00bca20e7 100644
@@ -72,11 +72,11 @@ pkt_burst_mac_forward(struct fwd_stream *fs)
 	fs->rx_packets += nb_rx;
 	txp = &ports[fs->tx_port];
 	tx_offloads = txp->dev_conf.txmode.offloads;
-	if (tx_offloads	& DEV_TX_OFFLOAD_VLAN_INSERT)
+	if (tx_offloads	& RTE_ETH_TX_OFFLOAD_VLAN_INSERT)
 		ol_flags = PKT_TX_VLAN_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_QINQ_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_QINQ_INSERT)
 		ol_flags |= PKT_TX_QINQ_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_MACSEC_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_MACSEC_INSERT)
 		ol_flags |= PKT_TX_MACSEC;
 	for (i = 0; i < nb_rx; i++) {
 		if (likely(i < nb_rx - 1))
app/test-pmd/macswap_common.h +3 -3
index 7e9a3590a436..7ade9a686b7c 100644
@@ -10,11 +10,11 @@ ol_flags_init(uint64_t tx_offload)
 {
 	uint64_t ol_flags = 0;
 
-	ol_flags |= (tx_offload & DEV_TX_OFFLOAD_VLAN_INSERT) ?
+	ol_flags |= (tx_offload & RTE_ETH_TX_OFFLOAD_VLAN_INSERT) ?
 			PKT_TX_VLAN : 0;
-	ol_flags |= (tx_offload & DEV_TX_OFFLOAD_QINQ_INSERT) ?
+	ol_flags |= (tx_offload & RTE_ETH_TX_OFFLOAD_QINQ_INSERT) ?
 			PKT_TX_QINQ : 0;
-	ol_flags |= (tx_offload & DEV_TX_OFFLOAD_MACSEC_INSERT) ?
+	ol_flags |= (tx_offload & RTE_ETH_TX_OFFLOAD_MACSEC_INSERT) ?
 			PKT_TX_MACSEC : 0;
 
 	return ol_flags;
app/test-pmd/parameters.c +27 -27

128 lines not on this page · raw message

app/test-pmd/testpmd.c +26 -26

154 lines not on this page · raw message

app/test-pmd/testpmd.h +1 -1
index e3995d24ab53..ccd025d5e0f5 100644
@@ -491,7 +491,7 @@ extern lcoreid_t bitrate_lcore_id;
 extern uint8_t bitrate_enabled;
 #endif
 
-extern struct rte_fdir_conf fdir_conf;
+extern struct rte_eth_fdir_conf fdir_conf;
 
 extern uint32_t max_rx_pkt_len;
 
app/test-pmd/txonly.c +3 -3
index e45f8840c91c..9eb7992815e8 100644
@@ -354,11 +354,11 @@ pkt_burst_transmit(struct fwd_stream *fs)
 	tx_offloads = txp->dev_conf.txmode.offloads;
 	vlan_tci = txp->tx_vlan_id;
 	vlan_tci_outer = txp->tx_vlan_id_outer;
-	if (tx_offloads	& DEV_TX_OFFLOAD_VLAN_INSERT)
+	if (tx_offloads	& RTE_ETH_TX_OFFLOAD_VLAN_INSERT)
 		ol_flags = PKT_TX_VLAN_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_QINQ_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_QINQ_INSERT)
 		ol_flags |= PKT_TX_QINQ_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_MACSEC_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_MACSEC_INSERT)
 		ol_flags |= PKT_TX_MACSEC;
 
 	/*
app/test/test_ethdev_link.c +34 -34

116 lines not on this page · raw message

app/test/test_event_eth_rx_adapter.c +2 -2
index add4d8a67821..a09253e91814 100644
@@ -103,7 +103,7 @@ port_init_rx_intr(uint16_t port, struct rte_mempool *mp)
 {
 	static const struct rte_eth_conf port_conf_default = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_NONE,
+			.mq_mode = RTE_ETH_MQ_RX_NONE,
 		},
 		.intr_conf = {
 			.rxq = 1,
@@ -118,7 +118,7 @@ port_init(uint16_t port, struct rte_mempool *mp)
 {
 	static const struct rte_eth_conf port_conf_default = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_NONE,
+			.mq_mode = RTE_ETH_MQ_RX_NONE,
 		},
 	};
 
app/test/test_kni.c +1 -1
index 96733554b6c4..40ab0d5c4ca4 100644
@@ -74,7 +74,7 @@ static const struct rte_eth_txconf tx_conf = {
 
 static const struct rte_eth_conf port_conf = {
 	.txmode = {
-		.mq_mode = ETH_DCB_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 };
 
app/test/test_link_bonding.c +2 -2
index 5388d18125a6..8a9ef851789f 100644
@@ -134,11 +134,11 @@ static uint16_t vlan_id = 0x100;
 
 static struct rte_eth_conf default_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 0,
 };
app/test/test_link_bonding_mode4.c +2 -2
index 189d2430f27e..351129de2f9b 100644
@@ -107,11 +107,11 @@ static struct link_bonding_unittest_params test_params  = {
 
 static struct rte_eth_conf default_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 0,
 };
app/test/test_link_bonding_rssconf.c +14 -14
index e7bb0497b663..f9eae9397386 100644
@@ -52,7 +52,7 @@ struct slave_conf {
 
 	struct rte_eth_rss_conf rss_conf;
 	uint8_t rss_key[40];
-	struct rte_eth_rss_reta_entry64 reta_conf[512 / RTE_RETA_GROUP_SIZE];
+	struct rte_eth_rss_reta_entry64 reta_conf[512 / RTE_ETH_RETA_GROUP_SIZE];
 
 	uint8_t is_slave;
 	struct rte_ring *rxtx_queue[RXTX_QUEUE_COUNT];
@@ -61,7 +61,7 @@ struct slave_conf {
 struct link_bonding_rssconf_unittest_params {
 	uint8_t bond_port_id;
 	struct rte_eth_dev_info bond_dev_info;
-	struct rte_eth_rss_reta_entry64 bond_reta_conf[512 / RTE_RETA_GROUP_SIZE];
+	struct rte_eth_rss_reta_entry64 bond_reta_conf[512 / RTE_ETH_RETA_GROUP_SIZE];
 	struct slave_conf slave_ports[SLAVE_COUNT];
 
 	struct rte_mempool *mbuf_pool;
@@ -80,27 +80,27 @@ static struct link_bonding_rssconf_unittest_params test_params  = {
  */
 static struct rte_eth_conf default_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 0,
 };
 
 static struct rte_eth_conf rss_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_RSS,
+		.mq_mode = RTE_ETH_MQ_RX_RSS,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.rx_adv_conf = {
 		.rss_conf = {
 			.rss_key = NULL,
-			.rss_hf = ETH_RSS_IPV6,
+			.rss_hf = RTE_ETH_RSS_IPV6,
 		},
 	},
 	.lpbk_mode = 0,
@@ -207,13 +207,13 @@ bond_slaves(void)
 static int
 reta_set(uint16_t port_id, uint8_t value, int reta_size)
 {
-	struct rte_eth_rss_reta_entry64 reta_conf[512/RTE_RETA_GROUP_SIZE];
+	struct rte_eth_rss_reta_entry64 reta_conf[512/RTE_ETH_RETA_GROUP_SIZE];
 	int i, j;
 
-	for (i = 0; i < reta_size / RTE_RETA_GROUP_SIZE; i++) {
+	for (i = 0; i < reta_size / RTE_ETH_RETA_GROUP_SIZE; i++) {
 		/* select all fields to set */
 		reta_conf[i].mask = ~0LL;
-		for (j = 0; j < RTE_RETA_GROUP_SIZE; j++)
+		for (j = 0; j < RTE_ETH_RETA_GROUP_SIZE; j++)
 			reta_conf[i].reta[j] = value;
 	}
 
@@ -232,8 +232,8 @@ reta_check_synced(struct slave_conf *port)
 	for (i = 0; i < test_params.bond_dev_info.reta_size;
 			i++) {
 
-		int index = i / RTE_RETA_GROUP_SIZE;
-		int shift = i % RTE_RETA_GROUP_SIZE;
+		int index = i / RTE_ETH_RETA_GROUP_SIZE;
+		int shift = i % RTE_ETH_RETA_GROUP_SIZE;
 
 		if (port->reta_conf[index].reta[shift] !=
 				test_params.bond_reta_conf[index].reta[shift])
@@ -251,7 +251,7 @@ static int
 bond_reta_fetch(void) {
 	unsigned j;
 
-	for (j = 0; j < test_params.bond_dev_info.reta_size / RTE_RETA_GROUP_SIZE;
+	for (j = 0; j < test_params.bond_dev_info.reta_size / RTE_ETH_RETA_GROUP_SIZE;
 			j++)
 		test_params.bond_reta_conf[j].mask = ~0LL;
 
@@ -268,7 +268,7 @@ static int
 slave_reta_fetch(struct slave_conf *port) {
 	unsigned j;
 
-	for (j = 0; j < port->dev_info.reta_size / RTE_RETA_GROUP_SIZE; j++)
+	for (j = 0; j < port->dev_info.reta_size / RTE_ETH_RETA_GROUP_SIZE; j++)
 		port->reta_conf[j].mask = ~0LL;
 
 	TEST_ASSERT_SUCCESS(rte_eth_dev_rss_reta_query(port->port_id,
app/test/test_pmd_perf.c +6 -6
index a3b4f52c65e6..1df86ce080e5 100644
@@ -62,11 +62,11 @@ static struct rte_ether_addr ports_eth_addr[RTE_MAX_ETHPORTS];
 
 static struct rte_eth_conf port_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 1,  /* enable loopback */
 };
@@ -155,7 +155,7 @@ check_all_ports_link_status(uint16_t port_num, uint32_t port_mask)
 				continue;
 			}
 			/* clear all_ports_up flag if any link down */
-			if (link.link_status == ETH_LINK_DOWN) {
+			if (link.link_status == RTE_ETH_LINK_DOWN) {
 				all_ports_up = 0;
 				break;
 			}
@@ -822,7 +822,7 @@ test_set_rxtx_conf(cmdline_fixed_string_t mode)
 		/* bulk alloc rx, full-featured tx */
 		tx_conf.tx_rs_thresh = 32;
 		tx_conf.tx_free_thresh = 32;
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_CHECKSUM;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_CHECKSUM;
 		return 0;
 	} else if (!strcmp(mode, "hybrid")) {
 		/* bulk alloc rx, vector tx
@@ -831,13 +831,13 @@ test_set_rxtx_conf(cmdline_fixed_string_t mode)
 		 */
 		tx_conf.tx_rs_thresh = 32;
 		tx_conf.tx_free_thresh = 32;
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_CHECKSUM;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_CHECKSUM;
 		return 0;
 	} else if (!strcmp(mode, "full")) {
 		/* full feature rx,tx pair */
 		tx_conf.tx_rs_thresh = 32;
 		tx_conf.tx_free_thresh = 32;
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_SCATTER;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_SCATTER;
 		return 0;
 	}
 
app/test/virtual_pmd.c +5 -5
index 7e15b47eb0fb..d9f2e4f66bde 100644
@@ -53,7 +53,7 @@ static int  virtual_ethdev_stop(struct rte_eth_dev *eth_dev __rte_unused)
 	void *pkt = NULL;
 	struct virtual_ethdev_private *prv = eth_dev->data->dev_private;
 
-	eth_dev->data->dev_link.link_status = ETH_LINK_DOWN;
+	eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 	eth_dev->data->dev_started = 0;
 	while (rte_ring_dequeue(prv->rx_queue, &pkt) != -ENOENT)
 		rte_pktmbuf_free(pkt);
@@ -168,7 +168,7 @@ virtual_ethdev_link_update_success(struct rte_eth_dev *bonded_eth_dev,
 		int wait_to_complete __rte_unused)
 {
 	if (!bonded_eth_dev->data->dev_started)
-		bonded_eth_dev->data->dev_link.link_status = ETH_LINK_DOWN;
+		bonded_eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 
 	return 0;
 }
@@ -562,9 +562,9 @@ virtual_ethdev_create(const char *name, struct rte_ether_addr *mac_addr,
 	eth_dev->data->nb_rx_queues = (uint16_t)1;
 	eth_dev->data->nb_tx_queues = (uint16_t)1;
 
-	eth_dev->data->dev_link.link_status = ETH_LINK_DOWN;
-	eth_dev->data->dev_link.link_speed = ETH_SPEED_NUM_10G;
-	eth_dev->data->dev_link.link_duplex = ETH_LINK_FULL_DUPLEX;
+	eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
+	eth_dev->data->dev_link.link_speed = RTE_ETH_SPEED_NUM_10G;
+	eth_dev->data->dev_link.link_duplex = RTE_ETH_LINK_FULL_DUPLEX;
 
 	eth_dev->data->mac_addrs = rte_zmalloc(name, RTE_ETHER_ADDR_LEN, 0);
 	if (eth_dev->data->mac_addrs == NULL)
doc/guides/eventdevs/cnxk.rst +1 -1
index 53560d3830d7..1c0ea988f239 100644
@@ -42,7 +42,7 @@ Features of the OCTEON cnxk SSO PMD are:
 - HW managed packets enqueued from ethdev to eventdev exposed through event eth
   RX adapter.
 - N:1 ethernet device Rx queue to Event queue mapping.
-- Lockfree Tx from event eth Tx adapter using ``DEV_TX_OFFLOAD_MT_LOCKFREE``
+- Lockfree Tx from event eth Tx adapter using ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE``
   capability while maintaining receive packet order.
 - Full Rx/Tx offload support defined through ethdev queue configuration.
 - HW managed event vectorization on CN10K for packets enqueued from ethdev to
doc/guides/eventdevs/octeontx2.rst +1 -1
index 11fbebfcd243..0fa57abfa3e0 100644
@@ -35,7 +35,7 @@ Features of the OCTEON TX2 SSO PMD are:
 - HW managed packets enqueued from ethdev to eventdev exposed through event eth
   RX adapter.
 - N:1 ethernet device Rx queue to Event queue mapping.
-- Lockfree Tx from event eth Tx adapter using ``DEV_TX_OFFLOAD_MT_LOCKFREE``
+- Lockfree Tx from event eth Tx adapter using ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE``
   capability while maintaining receive packet order.
 - Full Rx/Tx offload support defined through ethdev queue config.
 
doc/guides/nics/af_packet.rst +1 -1
index bdd6e7263c85..54feffdef4bd 100644
@@ -70,5 +70,5 @@ Features and Limitations
 ------------------------
 
 The PMD will re-insert the VLAN tag transparently to the packet if the kernel
-strips it, as long as the ``DEV_RX_OFFLOAD_VLAN_STRIP`` is not enabled by the
+strips it, as long as the ``RTE_ETH_RX_OFFLOAD_VLAN_STRIP`` is not enabled by the
 application.
doc/guides/nics/bnxt.rst +12 -12
index aa6032889a55..b3d10f30dc77 100644
@@ -877,21 +877,21 @@ processing. This improved performance is derived from a number of optimizations:
     * TX: only the following reduced set of transmit offloads is supported in
       vector mode::
 
-       DEV_TX_OFFLOAD_MBUF_FAST_FREE
+       RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE
 
     * RX: only the following reduced set of receive offloads is supported in
       vector mode (note that jumbo MTU is allowed only when the MTU setting
-      does not require `DEV_RX_OFFLOAD_SCATTER` to be enabled)::
-
-       DEV_RX_OFFLOAD_VLAN_STRIP
-       DEV_RX_OFFLOAD_KEEP_CRC
-       DEV_RX_OFFLOAD_IPV4_CKSUM
-       DEV_RX_OFFLOAD_UDP_CKSUM
-       DEV_RX_OFFLOAD_TCP_CKSUM
-       DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM
-       DEV_RX_OFFLOAD_OUTER_UDP_CKSUM
-       DEV_RX_OFFLOAD_RSS_HASH
-       DEV_RX_OFFLOAD_VLAN_FILTER
+      does not require `RTE_ETH_RX_OFFLOAD_SCATTER` to be enabled)::
+
+       RTE_ETH_RX_OFFLOAD_VLAN_STRIP
+       RTE_ETH_RX_OFFLOAD_KEEP_CRC
+       RTE_ETH_RX_OFFLOAD_IPV4_CKSUM
+       RTE_ETH_RX_OFFLOAD_UDP_CKSUM
+       RTE_ETH_RX_OFFLOAD_TCP_CKSUM
+       RTE_ETH_RX_OFFLOAD_OUTER_IPV4_CKSUM
+       RTE_ETH_RX_OFFLOAD_OUTER_UDP_CKSUM
+       RTE_ETH_RX_OFFLOAD_RSS_HASH
+       RTE_ETH_RX_OFFLOAD_VLAN_FILTER
 
 The BNXT Vector PMD is enabled in DPDK builds by default. The decision to enable
 vector processing is made at run-time when the port is started; if no transmit
doc/guides/nics/enic.rst +1 -1
index 91bdcd065a95..0209730b904a 100644
@@ -432,7 +432,7 @@ Limitations
 .. code-block:: console
 
      vlan_offload = rte_eth_dev_get_vlan_offload(port);
-     vlan_offload |= ETH_VLAN_STRIP_OFFLOAD;
+     vlan_offload |= RTE_ETH_VLAN_STRIP_OFFLOAD;
      rte_eth_dev_set_vlan_offload(port, vlan_offload);
 
 Another alternative is modify the adapter's ingress VLAN rewrite mode so that
doc/guides/nics/features.rst +57 -57

303 lines not on this page · raw message

doc/guides/nics/fm10k.rst +3 -3
index ed6afd62703d..bba53f5a64ee 100644
@@ -78,11 +78,11 @@ To enable via ``RX_OLFLAGS`` use ``RTE_LIBRTE_FM10K_RX_OLFLAGS_ENABLE=y``.
 To guarantee the constraint, the following capabilities in ``dev_conf.rxmode.offloads``
 will be checked:
 
-*   ``DEV_RX_OFFLOAD_VLAN_EXTEND``
+*   ``RTE_ETH_RX_OFFLOAD_VLAN_EXTEND``
 
-*   ``DEV_RX_OFFLOAD_CHECKSUM``
+*   ``RTE_ETH_RX_OFFLOAD_CHECKSUM``
 
-*   ``DEV_RX_OFFLOAD_HEADER_SPLIT``
+*   ``RTE_ETH_RX_OFFLOAD_HEADER_SPLIT``
 
 *   ``fdir_conf->mode``
 
doc/guides/nics/intel_vf.rst +5 -5
index 2efdd1a41bb4..a1e236ad75e5 100644
@@ -216,21 +216,21 @@ For example,
     *   If the max number of VFs (max_vfs) is set in the range of 1 to 32:
 
         If the number of Rx queues is specified as 4 (``--rxq=4`` in testpmd), then there are totally 32
-        pools (ETH_32_POOLS), and each VF could have 4 Rx queues;
+        pools (RTE_ETH_32_POOLS), and each VF could have 4 Rx queues;
 
         If the number of Rx queues is specified as 2 (``--rxq=2`` in testpmd), then there are totally 32
-        pools (ETH_32_POOLS), and each VF could have 2 Rx queues;
+        pools (RTE_ETH_32_POOLS), and each VF could have 2 Rx queues;
 
     *   If the max number of VFs (max_vfs) is in the range of 33 to 64:
 
         If the number of Rx queues in specified as 4 (``--rxq=4`` in testpmd), then error message is expected
         as ``rxq`` is not correct at this case;
 
-        If the number of rxq is 2 (``--rxq=2`` in testpmd), then there is totally 64 pools (ETH_64_POOLS),
+        If the number of rxq is 2 (``--rxq=2`` in testpmd), then there is totally 64 pools (RTE_ETH_64_POOLS),
         and each VF have 2 Rx queues;
 
-    On host, to enable VF RSS functionality, rx mq mode should be set as ETH_MQ_RX_VMDQ_RSS
-    or ETH_MQ_RX_RSS mode, and SRIOV mode should be activated (max_vfs >= 1).
+    On host, to enable VF RSS functionality, rx mq mode should be set as RTE_ETH_MQ_RX_VMDQ_RSS
+    or RTE_ETH_MQ_RX_RSS mode, and SRIOV mode should be activated (max_vfs >= 1).
     It also needs config VF RSS information like hash function, RSS key, RSS key length.
 
 .. note::
doc/guides/nics/ixgbe.rst +6 -6
index 20a74b9b5bcd..148d2f5fc2be 100644
@@ -89,13 +89,13 @@ Other features are supported using optional MACRO configuration. They include:
 
 To guarantee the constraint, capabilities in dev_conf.rxmode.offloads will be checked:
 
-*   DEV_RX_OFFLOAD_VLAN_STRIP
+*   RTE_ETH_RX_OFFLOAD_VLAN_STRIP
 
-*   DEV_RX_OFFLOAD_VLAN_EXTEND
+*   RTE_ETH_RX_OFFLOAD_VLAN_EXTEND
 
-*   DEV_RX_OFFLOAD_CHECKSUM
+*   RTE_ETH_RX_OFFLOAD_CHECKSUM
 
-*   DEV_RX_OFFLOAD_HEADER_SPLIT
+*   RTE_ETH_RX_OFFLOAD_HEADER_SPLIT
 
 *   dev_conf
 
@@ -163,13 +163,13 @@ l3fwd
 ~~~~~
 
 When running l3fwd with vPMD, there is one thing to note.
-In the configuration, ensure that DEV_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads is NOT set.
+In the configuration, ensure that RTE_ETH_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads is NOT set.
 Otherwise, by default, RX vPMD is disabled.
 
 load_balancer
 ~~~~~~~~~~~~~
 
-As in the case of l3fwd, to enable vPMD, do NOT set DEV_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads.
+As in the case of l3fwd, to enable vPMD, do NOT set RTE_ETH_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads.
 In addition, for improved performance, use -bsz "(32,32),(64,64),(32,32)" in load_balancer to avoid using the default burst size of 144.
 
 
doc/guides/nics/mlx5.rst +2 -2
index e4f58c899031..cc1726207f6c 100644
@@ -371,7 +371,7 @@ Limitations
 
 - CRC:
 
-  - ``DEV_RX_OFFLOAD_KEEP_CRC`` cannot be supported with decapsulation
+  - ``RTE_ETH_RX_OFFLOAD_KEEP_CRC`` cannot be supported with decapsulation
     for some NICs (such as ConnectX-6 Dx, ConnectX-6 Lx, and BlueField-2).
     The capability bit ``scatter_fcs_w_decap_disable`` shows NIC support.
 
@@ -607,7 +607,7 @@ Driver options
   small-packet traffic.
 
   When MPRQ is enabled, MTU can be larger than the size of
-  user-provided mbuf even if DEV_RX_OFFLOAD_SCATTER isn't enabled. PMD will
+  user-provided mbuf even if RTE_ETH_RX_OFFLOAD_SCATTER isn't enabled. PMD will
   configure large stride size enough to accommodate MTU as long as
   device allows. Note that this can waste system memory compared to enabling Rx
   scatter and multi-segment packet.
doc/guides/nics/tap.rst +1 -1
index 3ce696b605d1..681010d9ed7d 100644
@@ -275,7 +275,7 @@ An example utility for eBPF instruction generation in the format of C arrays wil
 be added in next releases
 
 TAP reports on supported RSS functions as part of dev_infos_get callback:
-``ETH_RSS_IP``, ``ETH_RSS_UDP`` and ``ETH_RSS_TCP``.
+``RTE_ETH_RSS_IP``, ``RTE_ETH_RSS_UDP`` and ``RTE_ETH_RSS_TCP``.
 **Known limitation:** TAP supports all of the above hash functions together
 and not in partial combinations.
 
doc/guides/prog_guide/generic_segmentation_offload_lib.rst +4 -4
index 7bff0aef0b74..9b2c31a2f0bc 100644
@@ -194,11 +194,11 @@ To segment an outgoing packet, an application must:
 
    - the bit mask of required GSO types. The GSO library uses the same macros as
      those that describe a physical device's TX offloading capabilities (i.e.
-     ``DEV_TX_OFFLOAD_*_TSO``) for gso_types. For example, if an application
+     ``RTE_ETH_TX_OFFLOAD_*_TSO``) for gso_types. For example, if an application
      wants to segment TCP/IPv4 packets, it should set gso_types to
-     ``DEV_TX_OFFLOAD_TCP_TSO``. The only other supported values currently
-     supported for gso_types are ``DEV_TX_OFFLOAD_VXLAN_TNL_TSO``, and
-     ``DEV_TX_OFFLOAD_GRE_TNL_TSO``; a combination of these macros is also
+     ``RTE_ETH_TX_OFFLOAD_TCP_TSO``. The only other supported values currently
+     supported for gso_types are ``RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO``, and
+     ``RTE_ETH_TX_OFFLOAD_GRE_TNL_TSO``; a combination of these macros is also
      allowed.
 
    - a flag, that indicates whether the IPv4 headers of output segments should
doc/guides/prog_guide/mbuf_lib.rst +9 -9
index 2f190b40e43a..dc6186a44ae2 100644
@@ -137,7 +137,7 @@ a vxlan-encapsulated tcp packet:
     mb->ol_flags |= PKT_TX_IPV4 | PKT_TX_IP_CSUM
     set out_ip checksum to 0 in the packet
 
-  This is supported on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM.
+  This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM.
 
 - calculate checksum of out_ip and out_udp::
 
@@ -147,8 +147,8 @@ a vxlan-encapsulated tcp packet:
     set out_ip checksum to 0 in the packet
     set out_udp checksum to pseudo header using rte_ipv4_phdr_cksum()
 
-  This is supported on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM
-  and DEV_TX_OFFLOAD_UDP_CKSUM.
+  This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM
+  and RTE_ETH_TX_OFFLOAD_UDP_CKSUM.
 
 - calculate checksum of in_ip::
 
@@ -158,7 +158,7 @@ a vxlan-encapsulated tcp packet:
     set in_ip checksum to 0 in the packet
 
   This is similar to case 1), but l2_len is different. It is supported
-  on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM.
+  on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM.
   Note that it can only work if outer L4 checksum is 0.
 
 - calculate checksum of in_ip and in_tcp::
@@ -170,8 +170,8 @@ a vxlan-encapsulated tcp packet:
     set in_tcp checksum to pseudo header using rte_ipv4_phdr_cksum()
 
   This is similar to case 2), but l2_len is different. It is supported
-  on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM and
-  DEV_TX_OFFLOAD_TCP_CKSUM.
+  on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM and
+  RTE_ETH_TX_OFFLOAD_TCP_CKSUM.
   Note that it can only work if outer L4 checksum is 0.
 
 - segment inner TCP::
@@ -185,7 +185,7 @@ a vxlan-encapsulated tcp packet:
     set in_tcp checksum to pseudo header without including the IP
       payload length using rte_ipv4_phdr_cksum()
 
-  This is supported on hardware advertising DEV_TX_OFFLOAD_TCP_TSO.
+  This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_TCP_TSO.
   Note that it can only work if outer L4 checksum is 0.
 
 - calculate checksum of out_ip, in_ip, in_tcp::
@@ -200,8 +200,8 @@ a vxlan-encapsulated tcp packet:
     set in_ip checksum to 0 in the packet
     set in_tcp checksum to pseudo header using rte_ipv4_phdr_cksum()
 
-  This is supported on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM,
-  DEV_TX_OFFLOAD_UDP_CKSUM and DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM.
+  This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM,
+  RTE_ETH_TX_OFFLOAD_UDP_CKSUM and RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM.
 
 The list of flags and their precise meaning is described in the mbuf API
 documentation (rte_mbuf.h). Also refer to the testpmd source code
doc/guides/prog_guide/poll_mode_drv.rst +4 -4
index 0d4ac77a7ccf..68312898448c 100644
@@ -57,7 +57,7 @@ Whenever needed and appropriate, asynchronous communication should be introduced
 
 Avoiding lock contention is a key issue in a multi-core environment.
 To address this issue, PMDs are designed to work with per-core private resources as much as possible.
-For example, a PMD maintains a separate transmit queue per-core, per-port, if the PMD is not ``DEV_TX_OFFLOAD_MT_LOCKFREE`` capable.
+For example, a PMD maintains a separate transmit queue per-core, per-port, if the PMD is not ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capable.
 In the same way, every receive queue of a port is assigned to and polled by a single logical core (lcore).
 
 To comply with Non-Uniform Memory Access (NUMA), memory management is designed to assign to each logical core
@@ -119,7 +119,7 @@ This is also true for the pipe-line model provided all logical cores used are lo
 
 Multiple logical cores should never share receive or transmit queues for interfaces since this would require global locks and hinder performance.
 
-If the PMD is ``DEV_TX_OFFLOAD_MT_LOCKFREE`` capable, multiple threads can invoke ``rte_eth_tx_burst()``
+If the PMD is ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capable, multiple threads can invoke ``rte_eth_tx_burst()``
 concurrently on the same tx queue without SW lock. This PMD feature found in some NICs and useful in the following use cases:
 
 *  Remove explicit spinlock in some applications where lcores are not mapped to Tx queues with 1:1 relation.
@@ -127,7 +127,7 @@ concurrently on the same tx queue without SW lock. This PMD feature found in som
 *  In the eventdev use case, avoid dedicating a separate TX core for transmitting and thus
    enables more scaling as all workers can send the packets.
 
-See `Hardware Offload`_ for ``DEV_TX_OFFLOAD_MT_LOCKFREE`` capability probing details.
+See `Hardware Offload`_ for ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capability probing details.
 
 Device Identification, Ownership and Configuration
 --------------------------------------------------
@@ -311,7 +311,7 @@ The ``dev_info->[rt]x_queue_offload_capa`` returned from ``rte_eth_dev_info_get(
 The ``dev_info->[rt]x_offload_capa`` returned from ``rte_eth_dev_info_get()`` includes all pure per-port and per-queue offloading capabilities.
 Supported offloads can be either per-port or per-queue.
 
-Offloads are enabled using the existing ``DEV_TX_OFFLOAD_*`` or ``DEV_RX_OFFLOAD_*`` flags.
+Offloads are enabled using the existing ``RTE_ETH_TX_OFFLOAD_*`` or ``RTE_ETH_RX_OFFLOAD_*`` flags.
 Any requested offloading by an application must be within the device capabilities.
 Any offloading is disabled by default if it is not set in the parameter
 ``dev_conf->[rt]xmode.offloads`` to ``rte_eth_dev_configure()`` and
doc/guides/prog_guide/rte_flow.rst +17 -17
index aeba3741825e..063ff388476a 100644
@@ -1968,23 +1968,23 @@ only matching traffic goes through.
 
 .. table:: RSS
 
-   +---------------+---------------------------------------------+
-   | Field         | Value                                       |
-   +===============+=============================================+
-   | ``func``      | RSS hash function to apply                  |
-   +---------------+---------------------------------------------+
-   | ``level``     | encapsulation level for ``types``           |
-   +---------------+---------------------------------------------+
-   | ``types``     | specific RSS hash types (see ``ETH_RSS_*``) |
-   +---------------+---------------------------------------------+
-   | ``key_len``   | hash key length in bytes                    |
-   +---------------+---------------------------------------------+
-   | ``queue_num`` | number of entries in ``queue``              |
-   +---------------+---------------------------------------------+
-   | ``key``       | hash key                                    |
-   +---------------+---------------------------------------------+
-   | ``queue``     | queue indices to use                        |
-   +---------------+---------------------------------------------+
+   +---------------+-------------------------------------------------+
+   | Field         | Value                                           |
+   +===============+=================================================+
+   | ``func``      | RSS hash function to apply                      |
+   +---------------+-------------------------------------------------+
+   | ``level``     | encapsulation level for ``types``               |
+   +---------------+-------------------------------------------------+
+   | ``types``     | specific RSS hash types (see ``RTE_ETH_RSS_*``) |
+   +---------------+-------------------------------------------------+
+   | ``key_len``   | hash key length in bytes                        |
+   +---------------+-------------------------------------------------+
+   | ``queue_num`` | number of entries in ``queue``                  |
+   +---------------+-------------------------------------------------+
+   | ``key``       | hash key                                        |
+   +---------------+-------------------------------------------------+
+   | ``queue``     | queue indices to use                            |
+   +---------------+-------------------------------------------------+
 
 Action: ``PF``
 ^^^^^^^^^^^^^^
doc/guides/prog_guide/rte_security.rst +1 -1
index ad92c16868c1..46c9b51d1bf9 100644
@@ -569,7 +569,7 @@ created by the application is attached to the security session by the API
 
 For Inline Crypto and Inline protocol offload, device specific defined metadata is
 updated in the mbuf using ``rte_security_set_pkt_metadata()`` if
-``DEV_TX_OFFLOAD_SEC_NEED_MDATA`` is set.
+``RTE_ETH_TX_OFFLOAD_SEC_NEED_MDATA`` is set.
 
 For inline protocol offloaded ingress traffic, the application can register a
 pointer, ``userdata`` , in the security session. When the packet is received,
doc/guides/rel_notes/deprecation.rst +2 -8
index 0b4d03fb961f..199c3fa0bd70 100644
@@ -58,22 +58,16 @@ Deprecation Notices
   ``RTE_ETH_FLOW_MAX`` is one sample of the mentioned case, adding a new flow
   type will break the ABI because of ``flex_mask[RTE_ETH_FLOW_MAX]`` array
   usage in following public struct hierarchy:
-  ``rte_eth_fdir_flex_conf -> rte_fdir_conf -> rte_eth_conf (in the middle)``.
+  ``rte_eth_fdir_flex_conf -> rte_eth_fdir_conf -> rte_eth_conf (in the middle)``.
   Need to identify this kind of usages and fix in 20.11, otherwise this blocks
   us extending existing enum/define.
   One solution can be using a fixed size array instead of ``.*MAX.*`` value.
 
-* ethdev: Will add ``RTE_ETH_`` prefix to all ethdev macros/enums in v21.11.
-  Macros will be added for backward compatibility.
-  Backward compatibility macros will be removed on v22.11.
-  A few old backward compatibility macros from 2013 that does not have
-  proper prefix will be removed on v21.11.
-
 * ethdev: The flow director API, including ``rte_eth_conf.fdir_conf`` field,
   and the related structures (``rte_fdir_*`` and ``rte_eth_fdir_*``),
   will be removed in DPDK 20.11.
 
-* ethdev: New offload flags ``DEV_RX_OFFLOAD_FLOW_MARK`` will be added in 19.11.
+* ethdev: New offload flags ``RTE_ETH_RX_OFFLOAD_FLOW_MARK`` will be added in 19.11.
   This will allow application to enable or disable PMDs from updating
   ``rte_mbuf::hash::fdir``.
   This scheme will allow PMDs to avoid writes to ``rte_mbuf`` fields on Rx and
doc/guides/rel_notes/release_21_11.rst +3 -0
index 041383ee2a73..707352099b13 100644
@@ -368,6 +368,9 @@ ABI Changes
   to be transparent for both users (no changes in user app is required) and
   PMD developers (no changes in PMD is required).
 
+* ethdev: All enums & macros updated to have ``RTE_ETH`` prefix and structures
+  updated to have ``rte_eth`` prefix. DPDK components updated to use new names.
+
 
 Known Issues
 ------------
doc/guides/sample_app_ug/ipsec_secgw.rst +2 -2
index 78171b25f96e..782574dd39d5 100644
@@ -209,12 +209,12 @@ Where:
     device will ensure the ordering. Ordering will be lost when tried in PARALLEL.
 
 *   ``--rxoffload MASK``: RX HW offload capabilities to enable/use on this port
-    (bitmask of DEV_RX_OFFLOAD_* values). It is an optional parameter and
+    (bitmask of RTE_ETH_RX_OFFLOAD_* values). It is an optional parameter and
     allows user to disable some of the RX HW offload capabilities.
     By default all HW RX offloads are enabled.
 
 *   ``--txoffload MASK``: TX HW offload capabilities to enable/use on this port
-    (bitmask of DEV_TX_OFFLOAD_* values). It is an optional parameter and
+    (bitmask of RTE_ETH_TX_OFFLOAD_* values). It is an optional parameter and
     allows user to disable some of the TX HW offload capabilities.
     By default all HW TX offloads are enabled.
 
doc/guides/testpmd_app_ug/run_app.rst +1 -1
index 8ff7ab85369c..2e1446ee461b 100644
@@ -537,7 +537,7 @@ The command line options are:
     Set the hexadecimal bitmask of RX multi queue mode which can be enabled.
     The default value is 0x7::
 
-       ETH_MQ_RX_RSS_FLAG | ETH_MQ_RX_DCB_FLAG | ETH_MQ_RX_VMDQ_FLAG
+       RTE_ETH_MQ_RX_RSS_FLAG | RTE_ETH_MQ_RX_DCB_FLAG | RTE_ETH_MQ_RX_VMDQ_FLAG
 
 *   ``--record-core-cycles``
 
drivers/bus/dpaa/include/process.h +8 -8
index be52e6f72dab..a922988607ef 100644
@@ -90,20 +90,20 @@ int dpaa_intr_disable(char *if_name);
 struct usdpaa_ioctl_link_status_args_old {
 	/* network device node name */
 	char    if_name[IF_NAME_MAX_LEN];
-	/* link status(ETH_LINK_UP/DOWN) */
+	/* link status(RTE_ETH_LINK_UP/DOWN) */
 	int     link_status;
 };
 
 struct usdpaa_ioctl_link_status_args {
 	/* network device node name */
 	char    if_name[IF_NAME_MAX_LEN];
-	/* link status(ETH_LINK_UP/DOWN) */
+	/* link status(RTE_ETH_LINK_UP/DOWN) */
 	int     link_status;
-	/* link speed (ETH_SPEED_NUM_)*/
+	/* link speed (RTE_ETH_SPEED_NUM_)*/
 	int     link_speed;
-	/* link duplex (ETH_LINK_[HALF/FULL]_DUPLEX)*/
+	/* link duplex (RTE_ETH_LINK_[HALF/FULL]_DUPLEX)*/
 	int     link_duplex;
-	/* link autoneg (ETH_LINK_AUTONEG/FIXED)*/
+	/* link autoneg (RTE_ETH_LINK_AUTONEG/FIXED)*/
 	int     link_autoneg;
 
 };
@@ -111,16 +111,16 @@ struct usdpaa_ioctl_link_status_args {
 struct usdpaa_ioctl_update_link_status_args {
 	/* network device node name */
 	char    if_name[IF_NAME_MAX_LEN];
-	/* link status(ETH_LINK_UP/DOWN) */
+	/* link status(RTE_ETH_LINK_UP/DOWN) */
 	int     link_status;
 };
 
 struct usdpaa_ioctl_update_link_speed {
 	/* network device node name*/
 	char    if_name[IF_NAME_MAX_LEN];
-	/* link speed (ETH_SPEED_NUM_)*/
+	/* link speed (RTE_ETH_SPEED_NUM_)*/
 	int     link_speed;
-	/* link duplex (ETH_LINK_[HALF/FULL]_DUPLEX)*/
+	/* link duplex (RTE_ETH_LINK_[HALF/FULL]_DUPLEX)*/
 	int     link_duplex;
 };
 
drivers/common/cnxk/roc_npc.h +1 -1
index 10d1ac82a4bd..21883f6b3f66 100644
@@ -160,7 +160,7 @@ enum roc_npc_rss_hash_function {
 struct roc_npc_action_rss {
 	enum roc_npc_rss_hash_function func;
 	uint32_t level;
-	uint64_t types;	       /**< Specific RSS hash types (see ETH_RSS_*). */
+	uint64_t types;	       /**< Specific RSS hash types (see RTE_ETH_RSS_*). */
 	uint32_t key_len;      /**< Hash key length in bytes. */
 	uint32_t queue_num;    /**< Number of entries in @p queue. */
 	const uint8_t *key;    /**< Hash key. */
drivers/net/af_packet/rte_eth_af_packet.c +10 -10
index a077376dc0fb..8f778f0c2419 100644
@@ -93,10 +93,10 @@ static const char *valid_arguments[] = {
 };
 
 static struct rte_eth_link pmd_link = {
-	.link_speed = ETH_SPEED_NUM_10G,
-	.link_duplex = ETH_LINK_FULL_DUPLEX,
-	.link_status = ETH_LINK_DOWN,
-	.link_autoneg = ETH_LINK_FIXED,
+	.link_speed = RTE_ETH_SPEED_NUM_10G,
+	.link_duplex = RTE_ETH_LINK_FULL_DUPLEX,
+	.link_status = RTE_ETH_LINK_DOWN,
+	.link_autoneg = RTE_ETH_LINK_FIXED,
 };
 
 RTE_LOG_REGISTER_DEFAULT(af_packet_logtype, NOTICE);
@@ -290,7 +290,7 @@ eth_af_packet_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
 static int
 eth_dev_start(struct rte_eth_dev *dev)
 {
-	dev->data->dev_link.link_status = ETH_LINK_UP;
+	dev->data->dev_link.link_status = RTE_ETH_LINK_UP;
 	return 0;
 }
 
@@ -320,7 +320,7 @@ eth_dev_stop(struct rte_eth_dev *dev)
 		internals->tx_queue[i].sockfd = -1;
 	}
 
-	dev->data->dev_link.link_status = ETH_LINK_DOWN;
+	dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 	return 0;
 }
 
@@ -331,7 +331,7 @@ eth_dev_configure(struct rte_eth_dev *dev __rte_unused)
 	const struct rte_eth_rxmode *rxmode = &dev_conf->rxmode;
 	struct pmd_internals *internals = dev->data->dev_private;
 
-	internals->vlan_strip = !!(rxmode->offloads & DEV_RX_OFFLOAD_VLAN_STRIP);
+	internals->vlan_strip = !!(rxmode->offloads & RTE_ETH_RX_OFFLOAD_VLAN_STRIP);
 	return 0;
 }
 
@@ -346,9 +346,9 @@ eth_dev_info(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 	dev_info->max_rx_queues = (uint16_t)internals->nb_queues;
 	dev_info->max_tx_queues = (uint16_t)internals->nb_queues;
 	dev_info->min_rx_bufsize = 0;
-	dev_info->tx_offload_capa = DEV_TX_OFFLOAD_MULTI_SEGS |
-		DEV_TX_OFFLOAD_VLAN_INSERT;
-	dev_info->rx_offload_capa = DEV_RX_OFFLOAD_VLAN_STRIP;
+	dev_info->tx_offload_capa = RTE_ETH_TX_OFFLOAD_MULTI_SEGS |
+		RTE_ETH_TX_OFFLOAD_VLAN_INSERT;
+	dev_info->rx_offload_capa = RTE_ETH_RX_OFFLOAD_VLAN_STRIP;
 
 	return 0;
 }
drivers/net/af_xdp/rte_eth_af_xdp.c +6 -6
index b362ccdcd38c..e156246f24df 100644
@@ -163,10 +163,10 @@ static const char * const valid_arguments[] = {
 };
 
 static const struct rte_eth_link pmd_link = {
-	.link_speed = ETH_SPEED_NUM_10G,
-	.link_duplex = ETH_LINK_FULL_DUPLEX,
-	.link_status = ETH_LINK_DOWN,
-	.link_autoneg = ETH_LINK_AUTONEG
+	.link_speed = RTE_ETH_SPEED_NUM_10G,
+	.link_duplex = RTE_ETH_LINK_FULL_DUPLEX,
+	.link_status = RTE_ETH_LINK_DOWN,
+	.link_autoneg = RTE_ETH_LINK_AUTONEG
 };
 
 /* List which tracks PMDs to facilitate sharing UMEMs across them. */
@@ -652,7 +652,7 @@ eth_af_xdp_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)
 static int
 eth_dev_start(struct rte_eth_dev *dev)
 {
-	dev->data->dev_link.link_status = ETH_LINK_UP;
+	dev->data->dev_link.link_status = RTE_ETH_LINK_UP;
 
 	return 0;
 }
@@ -661,7 +661,7 @@ eth_dev_start(struct rte_eth_dev *dev)
 static int
 eth_dev_stop(struct rte_eth_dev *dev)
 {
-	dev->data->dev_link.link_status = ETH_LINK_DOWN;
+	dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 	return 0;
 }
 
drivers/net/ark/ark_ethdev.c +8 -8
index 377299b14c7a..b618cba3f023 100644
@@ -736,14 +736,14 @@ eth_ark_dev_info_get(struct rte_eth_dev *dev,
 		.nb_align = ARK_TX_MIN_QUEUE}; /* power of 2 */
 
 	/* ARK PMD supports all line rates, how do we indicate that here ?? */
-	dev_info->speed_capa = (ETH_LINK_SPEED_1G |
-				ETH_LINK_SPEED_10G |
-				ETH_LINK_SPEED_25G |
-				ETH_LINK_SPEED_40G |
-				ETH_LINK_SPEED_50G |
-				ETH_LINK_SPEED_100G);
-
-	dev_info->rx_offload_capa = DEV_RX_OFFLOAD_TIMESTAMP;
+	dev_info->speed_capa = (RTE_ETH_LINK_SPEED_1G |
+				RTE_ETH_LINK_SPEED_10G |
+				RTE_ETH_LINK_SPEED_25G |
+				RTE_ETH_LINK_SPEED_40G |
+				RTE_ETH_LINK_SPEED_50G |
+				RTE_ETH_LINK_SPEED_100G);
+
+	dev_info->rx_offload_capa = RTE_ETH_RX_OFFLOAD_TIMESTAMP;
 
 	return 0;
 }
drivers/net/atlantic/atl_ethdev.c +44 -44

174 lines not on this page · raw message

drivers/net/atlantic/atl_ethdev.h +9 -9
index fbc9917ed30d..ed9ef9f0cc52 100644
@@ -11,15 +11,15 @@
 #include "hw_atl/hw_atl_utils.h"
 
 #define ATL_RSS_OFFLOAD_ALL ( \
-	ETH_RSS_IPV4 | \
-	ETH_RSS_NONFRAG_IPV4_TCP | \
-	ETH_RSS_NONFRAG_IPV4_UDP | \
-	ETH_RSS_IPV6 | \
-	ETH_RSS_NONFRAG_IPV6_TCP | \
-	ETH_RSS_NONFRAG_IPV6_UDP | \
-	ETH_RSS_IPV6_EX | \
-	ETH_RSS_IPV6_TCP_EX | \
-	ETH_RSS_IPV6_UDP_EX)
+	RTE_ETH_RSS_IPV4 | \
+	RTE_ETH_RSS_NONFRAG_IPV4_TCP | \
+	RTE_ETH_RSS_NONFRAG_IPV4_UDP | \
+	RTE_ETH_RSS_IPV6 | \
+	RTE_ETH_RSS_NONFRAG_IPV6_TCP | \
+	RTE_ETH_RSS_NONFRAG_IPV6_UDP | \
+	RTE_ETH_RSS_IPV6_EX | \
+	RTE_ETH_RSS_IPV6_TCP_EX | \
+	RTE_ETH_RSS_IPV6_UDP_EX)
 
 #define ATL_DEV_PRIVATE_TO_HW(adapter) \
 	(&((struct atl_adapter *)adapter)->hw)
drivers/net/atlantic/atl_rxtx.c +3 -3
index 0d3460383a50..2ff426892df2 100644
@@ -145,10 +145,10 @@ atl_rx_queue_setup(struct rte_eth_dev *dev, uint16_t rx_queue_id,
 	rxq->rx_free_thresh = rx_conf->rx_free_thresh;
 
 	rxq->l3_csum_enabled = dev->data->dev_conf.rxmode.offloads &
-		DEV_RX_OFFLOAD_IPV4_CKSUM;
+		RTE_ETH_RX_OFFLOAD_IPV4_CKSUM;
 	rxq->l4_csum_enabled = dev->data->dev_conf.rxmode.offloads &
-		(DEV_RX_OFFLOAD_UDP_CKSUM | DEV_RX_OFFLOAD_TCP_CKSUM);
-	if (dev->data->dev_conf.rxmode.offloads & DEV_RX_OFFLOAD_KEEP_CRC)
+		(RTE_ETH_RX_OFFLOAD_UDP_CKSUM | RTE_ETH_RX_OFFLOAD_TCP_CKSUM);
+	if (dev->data->dev_conf.rxmode.offloads & RTE_ETH_RX_OFFLOAD_KEEP_CRC)
 		PMD_DRV_LOG(ERR, "PMD does not support KEEP_CRC offload");
 
 	/* allocate memory for the software ring */
drivers/net/avp/avp_ethdev.c +13 -13
index 932ec90265cf..5d94db02c506 100644
@@ -1998,9 +1998,9 @@ avp_dev_configure(struct rte_eth_dev *eth_dev)
 	/* Setup required number of queues */
 	_avp_set_queue_counts(eth_dev);
 
-	mask = (ETH_VLAN_STRIP_MASK |
-		ETH_VLAN_FILTER_MASK |
-		ETH_VLAN_EXTEND_MASK);
+	mask = (RTE_ETH_VLAN_STRIP_MASK |
+		RTE_ETH_VLAN_FILTER_MASK |
+		RTE_ETH_VLAN_EXTEND_MASK);
 	ret = avp_vlan_offload_set(eth_dev, mask);
 	if (ret < 0) {
 		PMD_DRV_LOG(ERR, "VLAN offload set failed by host, ret=%d\n",
@@ -2140,8 +2140,8 @@ avp_dev_link_update(struct rte_eth_dev *eth_dev,
 	struct avp_dev *avp = AVP_DEV_PRIVATE_TO_HW(eth_dev->data->dev_private);
 	struct rte_eth_link *link = &eth_dev->data->dev_link;
 
-	link->link_speed = ETH_SPEED_NUM_10G;
-	link->link_duplex = ETH_LINK_FULL_DUPLEX;
+	link->link_speed = RTE_ETH_SPEED_NUM_10G;
+	link->link_duplex = RTE_ETH_LINK_FULL_DUPLEX;
 	link->link_status = !!(avp->flags & AVP_F_LINKUP);
 
 	return -1;
@@ -2191,8 +2191,8 @@ avp_dev_info_get(struct rte_eth_dev *eth_dev,
 	dev_info->max_rx_pktlen = avp->max_rx_pkt_len;
 	dev_info->max_mac_addrs = AVP_MAX_MAC_ADDRS;
 	if (avp->host_features & RTE_AVP_FEATURE_VLAN_OFFLOAD) {
-		dev_info->rx_offload_capa = DEV_RX_OFFLOAD_VLAN_STRIP;
-		dev_info->tx_offload_capa = DEV_TX_OFFLOAD_VLAN_INSERT;
+		dev_info->rx_offload_capa = RTE_ETH_RX_OFFLOAD_VLAN_STRIP;
+		dev_info->tx_offload_capa = RTE_ETH_TX_OFFLOAD_VLAN_INSERT;
 	}
 
 	return 0;
@@ -2205,9 +2205,9 @@ avp_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask)
 	struct rte_eth_conf *dev_conf = &eth_dev->data->dev_conf;
 	uint64_t offloads = dev_conf->rxmode.offloads;
 
-	if (mask & ETH_VLAN_STRIP_MASK) {
+	if (mask & RTE_ETH_VLAN_STRIP_MASK) {
 		if (avp->host_features & RTE_AVP_FEATURE_VLAN_OFFLOAD) {
-			if (offloads & DEV_RX_OFFLOAD_VLAN_STRIP)
+			if (offloads & RTE_ETH_RX_OFFLOAD_VLAN_STRIP)
 				avp->features |= RTE_AVP_FEATURE_VLAN_OFFLOAD;
 			else
 				avp->features &= ~RTE_AVP_FEATURE_VLAN_OFFLOAD;
@@ -2216,13 +2216,13 @@ avp_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask)
 		}
 	}
 
-	if (mask & ETH_VLAN_FILTER_MASK) {
-		if (offloads & DEV_RX_OFFLOAD_VLAN_FILTER)
+	if (mask & RTE_ETH_VLAN_FILTER_MASK) {
+		if (offloads & RTE_ETH_RX_OFFLOAD_VLAN_FILTER)
 			PMD_DRV_LOG(ERR, "VLAN filter offload not supported\n");
 	}
 
-	if (mask & ETH_VLAN_EXTEND_MASK) {
-		if (offloads & DEV_RX_OFFLOAD_VLAN_EXTEND)
+	if (mask & RTE_ETH_VLAN_EXTEND_MASK) {
+		if (offloads & RTE_ETH_RX_OFFLOAD_VLAN_EXTEND)
 			PMD_DRV_LOG(ERR, "VLAN extend offload not supported\n");
 	}
 
drivers/net/axgbe/axgbe_dev.c +3 -3
index ca32ad641873..3aaa2193272f 100644
@@ -840,11 +840,11 @@ static void axgbe_rss_options(struct axgbe_port *pdata)
 	pdata->rss_hf = rss_conf->rss_hf;
 	rss_hf = rss_conf->rss_hf;
 
-	if (rss_hf & (ETH_RSS_IPV4 | ETH_RSS_IPV6))
+	if (rss_hf & (RTE_ETH_RSS_IPV4 | RTE_ETH_RSS_IPV6))
 		AXGMAC_SET_BITS(pdata->rss_options, MAC_RSSCR, IP2TE, 1);
-	if (rss_hf & (ETH_RSS_NONFRAG_IPV4_TCP | ETH_RSS_NONFRAG_IPV6_TCP))
+	if (rss_hf & (RTE_ETH_RSS_NONFRAG_IPV4_TCP | RTE_ETH_RSS_NONFRAG_IPV6_TCP))
 		AXGMAC_SET_BITS(pdata->rss_options, MAC_RSSCR, TCP4TE, 1);
-	if (rss_hf & (ETH_RSS_NONFRAG_IPV4_UDP | ETH_RSS_NONFRAG_IPV6_UDP))
+	if (rss_hf & (RTE_ETH_RSS_NONFRAG_IPV4_UDP | RTE_ETH_RSS_NONFRAG_IPV6_UDP))
 		AXGMAC_SET_BITS(pdata->rss_options, MAC_RSSCR, UDP4TE, 1);
 }
 
drivers/net/axgbe/axgbe_ethdev.c +52 -52

86 lines not on this page · raw message

drivers/net/axgbe/axgbe_ethdev.h +6 -6
index a6226729fe4d..0a3e1c59df1a 100644

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

drivers/net/axgbe/axgbe_mdio.c +1 -1
index 4f98e695ae74..59fa9175aded 100644

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

drivers/net/axgbe/axgbe_rxtx.c +3 -3
index c8618d2d6daa..aa2c27ebaa49 100644

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

drivers/net/bnx2x/bnx2x_ethdev.c +6 -6
index 567ea2382864..78fc717ec44a 100644

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

drivers/net/bnxt/bnxt.h +31 -31

62 lines not on this page · raw message

drivers/net/bnxt/bnxt_ethdev.c +86 -86

172 lines not on this page · raw message

drivers/net/bnxt/bnxt_flow.c +3 -3
index b2ebb5634e3a..ced697a73980 100644

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

drivers/net/bnxt/bnxt_hwrm.c +56 -56

112 lines not on this page · raw message

drivers/net/bnxt/bnxt_reps.c +1 -1
index b7e88e013a84..1c07db3ca9c5 100644

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

drivers/net/bnxt/bnxt_ring.c +2 -2
index 08cefa1baaef..7940d489a102 100644

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

drivers/net/bnxt/bnxt_rxq.c +14 -14
index 38ec4aa14b77..1456f8b54ffa 100644

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

drivers/net/bnxt/bnxt_rxr.c +2 -2
index aeacc60a0127..eb555c4545e6 100644

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

drivers/net/bnxt/bnxt_rxtx_vec_avx2.c +1 -1
index d08854ff61e2..e4905b4fd169 100644

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

drivers/net/bnxt/bnxt_rxtx_vec_common.h +1 -1
index 9b9489a695a2..0627fd212d0a 100644

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

drivers/net/bnxt/bnxt_rxtx_vec_neon.c +1 -1
index 13211060cf0e..f15e2d3b4ed4 100644

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

drivers/net/bnxt/bnxt_rxtx_vec_sse.c +1 -1
index 6e563053260a..ffd560166cac 100644

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

drivers/net/bnxt/bnxt_txr.c +2 -2
index 9e45ddd7a82e..f2fcaf53021c 100644

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

drivers/net/bnxt/bnxt_vnic.c +15 -15
index 26253a7e17f2..c63cf4b943fa 100644

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

drivers/net/bnxt/rte_pmd_bnxt.c +4 -4
index f71543810970..77ecbef04c3d 100644

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

drivers/net/bonding/eth_bond_private.h +2 -2
index fc179a2732ac..8b104b639184 100644

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

drivers/net/bonding/rte_eth_bond_8023ad.c +8 -8
index 2029955c1092..ca50583d62d8 100644

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

drivers/net/bonding/rte_eth_bond_api.c +3 -3
index 5140ef14c2ee..84943cffe2bb 100644

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

drivers/net/bonding/rte_eth_bond_pmd.c +25 -25

50 lines not on this page · raw message

drivers/net/cnxk/cn10k_ethdev.c +21 -21

42 lines not on this page · raw message

drivers/net/cnxk/cn10k_rte_flow.c +1 -1
index 8c87452934eb..dff4c7746cf5 100644

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

drivers/net/cnxk/cn10k_rx.c +2 -2
index d6af54b56de6..5d603514c045 100644

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

drivers/net/cnxk/cn10k_tx.c +2 -2
index eb962ef08cab..5e6c5ee11188 100644

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

drivers/net/cnxk/cn9k_ethdev.c +30 -30

60 lines not on this page · raw message

drivers/net/cnxk/cn9k_rx.c +2 -2
index 5c4387e74e0b..8d504c4a6d92 100644

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

drivers/net/cnxk/cn9k_tx.c +2 -2
index e5691a2a7e16..f3f19fed9780 100644

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

drivers/net/cnxk/cnxk_ethdev.c +56 -56

112 lines not on this page · raw message

drivers/net/cnxk/cnxk_ethdev.h +26 -23

49 lines not on this page · raw message

drivers/net/cnxk/cnxk_ethdev_devargs.c +3 -3
index c0b949e21ab0..e068f553495c 100644

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

drivers/net/cnxk/cnxk_ethdev_ops.c +53 -53

106 lines not on this page · raw message

drivers/net/cnxk/cnxk_link.c +7 -7
index 6a7080167598..f10a502826c6 100644

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

drivers/net/cnxk/cnxk_ptp.c +2 -2
index 449489f599c4..139fea256ccd 100644

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

drivers/net/cnxk/cnxk_rte_flow.c +1 -1
index ad89a2e105b1..c86c92ce4c2f 100644

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

drivers/net/cxgbe/cxgbe.h +23 -23

46 lines not on this page · raw message

drivers/net/cxgbe/cxgbe_ethdev.c +21 -21

42 lines not on this page · raw message

drivers/net/cxgbe/cxgbe_main.c +6 -6
index 91d6bb9bbcb0..f1ac32270961 100644

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

drivers/net/dpaa/dpaa_ethdev.c +90 -90

180 lines not on this page · raw message

drivers/net/dpaa/dpaa_ethdev.h +5 -5
index b5728e09c29f..c868e9d5bd9b 100644

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

drivers/net/dpaa/dpaa_flow.c +16 -16
index c5b5ec869519..1ccd03602790 100644

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

drivers/net/dpaa2/base/dpaa2_hw_dpni.c +23 -24

47 lines not on this page · raw message

drivers/net/dpaa2/dpaa2_ethdev.c +69 -69

138 lines not on this page · raw message

drivers/net/dpaa2/dpaa2_ethdev.h +11 -11
index fdc62ec30d22..c5e9267bf04d 100644

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

drivers/net/dpaa2/dpaa2_rxtx.c +4 -4
index f40369e2c3f9..7c77243b5d1a 100644

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

drivers/net/e1000/e1000_ethdev.h +9 -9
index 93bee734ae5d..031c92a66fa0 100644

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

drivers/net/e1000/em_ethdev.c +32 -32

64 lines not on this page · raw message

drivers/net/e1000/em_rxtx.c +19 -19
index 344149c19147..648b04154c5b 100644

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

drivers/net/e1000/igb_ethdev.c +79 -79

158 lines not on this page · raw message

drivers/net/e1000/igb_pf.c +1 -1
index 2ce74dd5a9a5..fe355ef6b3b5 100644

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

drivers/net/e1000/igb_rxtx.c +58 -58

116 lines not on this page · raw message

drivers/net/ena/ena_ethdev.c +35 -35

70 lines not on this page · raw message

drivers/net/ena/ena_ethdev.h +2 -2
index 4f4142ed12d0..865e1241e0ce 100644

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

drivers/net/ena/ena_rss.c +37 -37

74 lines not on this page · raw message

drivers/net/enetc/enetc_ethdev.c +15 -15
index 1b567f01eae0..7cdb8ce463ed 100644

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

drivers/net/enic/enic.h +1 -1
index 47bfdac2cfdd..d5493c98345d 100644

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

drivers/net/enic/enic_ethdev.c +44 -44

88 lines not on this page · raw message

drivers/net/enic/enic_main.c +20 -20
index dfc7f5d1f94f..21b1fffb14f0 100644

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

drivers/net/enic/enic_res.c +25 -25

50 lines not on this page · raw message

drivers/net/failsafe/failsafe.c +4 -4
index b87c036e6014..82d595b1d1a0 100644

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

drivers/net/failsafe/failsafe_intr.c +2 -2
index 602c04033c18..5f4810051dac 100644

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

drivers/net/failsafe/failsafe_ops.c +39 -39

78 lines not on this page · raw message

drivers/net/fm10k/fm10k.h +2 -2
index 17c73c4dc5ae..b7522a47a80b 100644

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

drivers/net/fm10k/fm10k_ethdev.c +73 -73

146 lines not on this page · raw message

drivers/net/fm10k/fm10k_rxtx_vec.c +3 -3
index 83af01dc2da6..50973a662c67 100644

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

drivers/net/hinic/base/hinic_pmd_hwdev.c +11 -11
index cb9cf6efa287..80f9eb5c3031 100644

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

drivers/net/hinic/hinic_pmd_ethdev.c +68 -68

136 lines not on this page · raw message

drivers/net/hinic/hinic_pmd_rx.c +18 -18
index 842399cc4cd8..d347afe9a6a9 100644

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

drivers/net/hinic/hinic_pmd_rx.h +11 -11
index 8a45f2d9fc50..5c303398b635 100644

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

drivers/net/hns3/hns3_dcb.c +7 -7
index 8753c340e790..3d0159d78778 100644

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

drivers/net/hns3/hns3_ethdev.c +176 -176

352 lines not on this page · raw message

drivers/net/hns3/hns3_ethdev.h +6 -6
index e28056b1bd60..0f55fd4c83ad 100644

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

drivers/net/hns3/hns3_ethdev_vf.c +50 -50

100 lines not on this page · raw message

drivers/net/hns3/hns3_flow.c +3 -3
index 38a2ee58a651..da6918fddda3 100644

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

drivers/net/hns3/hns3_ptp.c +1 -1
index 5dfe68cc4dbd..9a829d7011ad 100644

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

drivers/net/hns3/hns3_rss.c +54 -54

108 lines not on this page · raw message

drivers/net/hns3/hns3_rss.h +14 -14
index 996083b88b25..6f153a1b7bfb 100644

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

drivers/net/hns3/hns3_rxtx.c +15 -15
index 602548a4f25b..920ee8ceeab9 100644

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

drivers/net/hns3/hns3_rxtx.h +1 -1
index c8229e9076b5..dfea5d5b4c2f 100644

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

drivers/net/hns3/hns3_rxtx_vec.c +5 -5
index ff434d2d33ed..455110361aac 100644

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

drivers/net/i40e/i40e_ethdev.c +136 -136

272 lines not on this page · raw message

drivers/net/i40e/i40e_ethdev.h +12 -12
index 1d57b9617e66..d8042abbd9be 100644

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

drivers/net/i40e/i40e_flow.c +16 -16
index e41a84f1d737..9acaa1875105 100644

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

drivers/net/i40e/i40e_hash.c +79 -79

158 lines not on this page · raw message

drivers/net/i40e/i40e_pf.c +7 -7
index e2d8b2b5f7f1..ccb3924a5f68 100644

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

drivers/net/i40e/i40e_rxtx.c +4 -4
index 554b1142c136..a13bb81115f4 100644

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

drivers/net/i40e/i40e_rxtx.h +2 -2
index 2301e6301d7d..5e6eecc50116 100644

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

drivers/net/i40e/i40e_rxtx_vec_avx512.c +1 -1
index 4ffe030fcb64..7abc0821d119 100644

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

drivers/net/i40e/i40e_rxtx_vec_common.h +4 -4
index f52e3c567558..f9a7f4655050 100644

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

drivers/net/i40e/i40e_vf_representor.c +24 -24

48 lines not on this page · raw message

drivers/net/iavf/iavf.h +12 -12
index 34bfa9af4734..12f541f53926 100644

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

drivers/net/iavf/iavf_ethdev.c +89 -89

178 lines not on this page · raw message

drivers/net/iavf/iavf_hash.c +160 -160

320 lines not on this page · raw message

drivers/net/iavf/iavf_rxtx.c +1 -1
index 88bbd40c1027..ac4db117f5cd 100644

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

drivers/net/iavf/iavf_rxtx.h +12 -12
index f4ae2fd6e123..2d7f6b1b2dca 100644

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

drivers/net/iavf/iavf_rxtx_vec_avx2.c +2 -2
index 72a4fcab04a5..b47c51b8ebe4 100644

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

drivers/net/iavf/iavf_rxtx_vec_avx512.c +3 -3
index 12375d3d80bd..b8f2f69f12fc 100644

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

drivers/net/iavf/iavf_rxtx_vec_sse.c +1 -1
index edb54991e298..1de43b9b8ee2 100644

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

drivers/net/ice/ice_dcf.c +1 -1
index c9c01a14e349..7b7df5eebb6d 100644

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

drivers/net/ice/ice_dcf_ethdev.c +43 -43

86 lines not on this page · raw message

drivers/net/ice/ice_dcf_vf_representor.c +28 -28

56 lines not on this page · raw message

drivers/net/ice/ice_ethdev.c +90 -90

180 lines not on this page · raw message

drivers/net/ice/ice_ethdev.h +13 -13
index 1cd3753ccc5f..599e0028f7e8 100644

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

drivers/net/ice/ice_hash.c +145 -145

290 lines not on this page · raw message

drivers/net/ice/ice_rxtx.c +8 -8
index ff362c21d9f5..8406240d7209 100644

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

drivers/net/ice/ice_rxtx_vec_avx2.c +1 -1
index 490693bff218..86955539bea8 100644

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

drivers/net/ice/ice_rxtx_vec_avx512.c +2 -2
index 7efe7b50a206..af23f6a34e58 100644

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

drivers/net/ice/ice_rxtx_vec_common.h +14 -14
index f0f99265857e..b1d975b31a5a 100644

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

drivers/net/ice/ice_rxtx_vec_sse.c +1 -1
index 653bd28b417c..117494131f32 100644

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

drivers/net/igc/igc_ethdev.c +69 -69

138 lines not on this page · raw message

drivers/net/igc/igc_ethdev.h +27 -27

54 lines not on this page · raw message

drivers/net/igc/igc_txrx.c +24 -24

48 lines not on this page · raw message

drivers/net/ionic/ionic_ethdev.c +69 -69

138 lines not on this page · raw message

drivers/net/ionic/ionic_ethdev.h +6 -6
index 6cbcd0f825a3..652f28c97d57 100644

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

drivers/net/ionic/ionic_lif.c +18 -18
index a1f9ce2d81cb..5e8fdf3893ad 100644

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

drivers/net/ionic/ionic_rxtx.c +5 -5
index 4d16a39c6b6d..e3df7c56debe 100644

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

drivers/net/ipn3ke/ipn3ke_representor.c +32 -32

64 lines not on this page · raw message

drivers/net/ixgbe/ixgbe_ethdev.c +142 -143

285 lines not on this page · raw message

drivers/net/ixgbe/ixgbe_ethdev.h +9 -9
index 950fb2d2450c..876b670f2682 100644

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

drivers/net/ixgbe/ixgbe_fdir.c +12 -12
index 27a49bbce5e7..7894047829a8 100644

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

drivers/net/ixgbe/ixgbe_flow.c +1 -1
index 27322ab9038a..bdc9d4796c02 100644

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

drivers/net/ixgbe/ixgbe_ipsec.c +6 -6
index e45c5501e6bf..944c9f23809e 100644

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

drivers/net/ixgbe/ixgbe_pf.c +17 -17
index 295e5a39b245..9f1bd0a62ba4 100644

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

drivers/net/ixgbe/ixgbe_rxtx.c +124 -125

249 lines not on this page · raw message

drivers/net/ixgbe/ixgbe_rxtx.h +2 -2
index a1764f2b08af..668a5b9814f6 100644

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

drivers/net/ixgbe/ixgbe_rxtx_vec_common.h +1 -1
index 005e60668a8b..cd34d4098785 100644

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

drivers/net/ixgbe/ixgbe_tm.c +8 -8
index ae03ea6e9db3..ac8976062fa7 100644

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

drivers/net/ixgbe/ixgbe_vf_representor.c +8 -8
index 9fa75984fb31..bd528ff346c7 100644

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

drivers/net/ixgbe/rte_pmd_ixgbe.c +7 -7
index cf089cd9aee5..9729f8575f53 100644

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

drivers/net/ixgbe/rte_pmd_ixgbe.h +2 -2
index 90fc8160b1f8..eef6f6661c74 100644

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

drivers/net/kni/rte_eth_kni.c +4 -4
index cb9f7c8e8200..c428caf44189 100644

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

drivers/net/liquidio/lio_ethdev.c +57 -57

114 lines not on this page · raw message

drivers/net/memif/memif_socket.c +1 -1
index 364e818d65c1..8533e39f6957 100644

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

drivers/net/memif/rte_eth_memif.c +8 -8
index 980150293e86..9deb7a5f1360 100644

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

drivers/net/mlx4/mlx4_ethdev.c +16 -16
index 783ff94dce8d..d606ec8ca76d 100644

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

drivers/net/mlx4/mlx4_flow.c +15 -15
index 71ea91b3fb82..2e1b6c87e983 100644

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

drivers/net/mlx4/mlx4_intr.c +4 -4
index d56009c41845..2aab0f60a7b5 100644

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

drivers/net/mlx4/mlx4_rxq.c +9 -9
index ee2d2b75e59a..781ee256df71 100644

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

drivers/net/mlx4/mlx4_txq.c +12 -12
index 7d8c4f2a2223..0db2e55befd3 100644

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

drivers/net/mlx5/linux/mlx5_ethdev_os.c +27 -27

54 lines not on this page · raw message

drivers/net/mlx5/linux/mlx5_os.c +3 -3
index a823d26bebf9..d207ec053e07 100644

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

drivers/net/mlx5/mlx5.c +2 -2
index e28cc461b914..7727dfb4196c 100644

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

drivers/net/mlx5/mlx5.h +1 -1
index a15f86616d49..ea17a86f4955 100644

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

drivers/net/mlx5/mlx5_defs.h +3 -3
index fe86bb40d351..12ddf4c7ff28 100644

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

drivers/net/mlx5/mlx5_ethdev.c +3 -3
index 82e2284d9866..f2b78c3cc69e 100644

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

drivers/net/mlx5/mlx5_flow.c +27 -27

54 lines not on this page · raw message

drivers/net/mlx5/mlx5_flow.h +6 -6
index 5c68d4f7d742..ff85c1c013a5 100644

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

drivers/net/mlx5/mlx5_flow_dv.c +22 -22

44 lines not on this page · raw message

drivers/net/mlx5/mlx5_flow_verbs.c +2 -2
index 1627c3905fa4..8a455cbf22f4 100644

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

drivers/net/mlx5/mlx5_rss.c +5 -5
index c32129cdc2b8..a4f690039e24 100644

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

drivers/net/mlx5/mlx5_rxq.c +20 -20
index d8d7e481dea0..eb4dc3375248 100644

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

drivers/net/mlx5/mlx5_rxtx_vec.h +4 -4
index 93b4f517bb3e..65d91bdf67e2 100644

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

drivers/net/mlx5/mlx5_tx.c +15 -15
index df671379e46d..12aeba60348a 100644

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

drivers/net/mlx5/mlx5_txq.c +29 -29

58 lines not on this page · raw message

drivers/net/mlx5/mlx5_vlan.c +2 -2
index 60f97f2d2d1f..07792fc5d94f 100644

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

drivers/net/mlx5/windows/mlx5_os.c +2 -2
index 8937ec0d3037..7f7b545ca63a 100644

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

drivers/net/mvneta/mvneta_ethdev.c +16 -16
index 2a0288087357..10fe6d828ccd 100644

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

drivers/net/mvneta/mvneta_ethdev.h +5 -5
index 6428f9ff7931..64aadcffd85a 100644

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

drivers/net/mvneta/mvneta_rxtx.c +1 -1
index 9836bb071a82..62d8aa586dae 100644

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

drivers/net/mvpp2/mrvl_ethdev.c +56 -56

112 lines not on this page · raw message

drivers/net/netvsc/hn_ethdev.c +35 -35

70 lines not on this page · raw message

drivers/net/netvsc/hn_rndis.c +25 -25

50 lines not on this page · raw message

drivers/net/nfb/nfb_ethdev.c +10 -10
index 99d93ebf4667..3c39937816a4 100644

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

drivers/net/nfb/nfb_rx.c +1 -1
index 3ebb332ae46c..f76e2ba64621 100644

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

drivers/net/nfp/nfp_common.c +61 -61

122 lines not on this page · raw message

drivers/net/nfp/nfp_ethdev.c +1 -1
index 1169ea77a8c7..e08e594b04fe 100644

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

drivers/net/nfp/nfp_ethdev_vf.c +1 -1
index 62cb3536e0c9..817fe64dbceb 100644

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

drivers/net/ngbe/ngbe_ethdev.c +25 -25

50 lines not on this page · raw message

drivers/net/null/rte_eth_null.c +14 -14
index 25b9e5b1ce1b..ca03469d0e6d 100644

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

drivers/net/octeontx/octeontx_ethdev.c +37 -37

74 lines not on this page · raw message

drivers/net/octeontx/octeontx_ethdev.h +15 -15
index 3a02824e3948..c493fa7a03ed 100644

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

drivers/net/octeontx/octeontx_ethdev_ops.c +13 -13
index dbe13ce3826b..6ec2b71b0672 100644

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

drivers/net/octeontx2/otx2_ethdev.c +48 -48

96 lines not on this page · raw message

drivers/net/octeontx2/otx2_ethdev.h +32 -32

64 lines not on this page · raw message

drivers/net/octeontx2/otx2_ethdev_devargs.c +6 -6
index 83f905315b38..60bf6c3f5f05 100644

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

drivers/net/octeontx2/otx2_ethdev_ops.c +7 -7
index 22a8af5cba45..d5caaa326a5a 100644

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

drivers/net/octeontx2/otx2_ethdev_sec.c +4 -4
index 7bd1ed6da043..4d40184de46d 100644

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

drivers/net/octeontx2/otx2_flow.c +1 -1
index 6df0732189eb..1d0fe4e950d4 100644

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

drivers/net/octeontx2/otx2_flow_ctrl.c +18 -18
index 76bf48100183..071740de86a7 100644

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

drivers/net/octeontx2/otx2_flow_parse.c +2 -2
index 79b92fda8a4a..91267bbb8182 100644

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

drivers/net/octeontx2/otx2_link.c +20 -20
index 81dd6243b977..8f5d0eed92b6 100644

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

drivers/net/octeontx2/otx2_mcast.c +1 -1
index f84aa1bf570c..b9c63ad3bc21 100644

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

drivers/net/octeontx2/otx2_ptp.c +2 -2
index 91e5c0f6bd11..abb213058792 100644

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

drivers/net/octeontx2/otx2_rss.c +35 -35

70 lines not on this page · raw message

drivers/net/octeontx2/otx2_rx.c +2 -2
index ffeade5952dc..986902287b67 100644

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

drivers/net/octeontx2/otx2_tx.c +1 -1
index ff299f00b913..c60190074926 100644

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

drivers/net/octeontx2/otx2_vlan.c +21 -21

42 lines not on this page · raw message

drivers/net/octeontx_ep/otx_ep_ethdev.c +3 -3
index 698d22e22685..74dc36a17648 100644

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

drivers/net/octeontx_ep/otx_ep_rxtx.c +3 -3
index aa4dcd33cc79..9338b30672ec 100644

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

drivers/net/pcap/pcap_ethdev.c +6 -6
index d695c5eef7b0..ec29fd6bc53c 100644

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

drivers/net/pfe/pfe_ethdev.c +9 -9
index 4cc002ee8fab..047010e15ed0 100644

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

drivers/net/qede/base/mcp_public.h +2 -2
index 6667c2d7ab6d..511742c6a1b3 100644

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

drivers/net/qede/qede_ethdev.c +78 -78

156 lines not on this page · raw message

drivers/net/qede/qede_filter.c +21 -21

42 lines not on this page · raw message

drivers/net/qede/qede_rxtx.c +1 -1
index c2263787b4ec..d585db8b61e8 100644

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

drivers/net/qede/qede_rxtx.h +8 -8
index c9334448c887..15112b83f4f7 100644

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

drivers/net/ring/rte_eth_ring.c +10 -10
index 0440019e07e1..db10f035dfcb 100644

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

drivers/net/sfc/sfc.c +15 -15
index 431c42f508d0..9c1be10ac93d 100644

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

drivers/net/sfc/sfc_ef100_rx.c +5 -5
index d958fd642fb1..eeb73a7530ef 100644

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

drivers/net/sfc/sfc_ef100_tx.c +10 -10
index e166fda888b1..67980a587fe4 100644

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

drivers/net/sfc/sfc_ef10_essb_rx.c +2 -2
index 991329e86f01..9ea207cca163 100644

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

drivers/net/sfc/sfc_ef10_rx.c +4 -4
index 49a7d4fb42fd..9aaabd30eee6 100644

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

drivers/net/sfc/sfc_ef10_tx.c +16 -16
index ed43adb4ca5c..e7da4608bcb0 100644

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

drivers/net/sfc/sfc_ethdev.c +25 -25

50 lines not on this page · raw message

drivers/net/sfc/sfc_flow.c +1 -1
index 8096af56739f..be2dfe778a0d 100644

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

drivers/net/sfc/sfc_port.c +26 -26

52 lines not on this page · raw message

drivers/net/sfc/sfc_repr.c +5 -5
index 2500b14cb006..9d88d554c1ba 100644

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

drivers/net/sfc/sfc_rx.c +25 -25

50 lines not on this page · raw message

drivers/net/sfc/sfc_tx.c +25 -25

50 lines not on this page · raw message

drivers/net/softnic/rte_eth_softnic.c +6 -6
index b3b55b9035b1..3ef33818a9e0 100644

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

drivers/net/szedata2/rte_eth_szedata2.c +7 -7
index 3c6a285e3c5e..6a084e3e1b1b 100644

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

drivers/net/tap/rte_eth_tap.c +52 -52

104 lines not on this page · raw message

drivers/net/tap/tap_rss.h +1 -1
index 176e7180bdaa..48c151cf6b68 100644

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

drivers/net/thunderx/nicvf_ethdev.c +51 -51

102 lines not on this page · raw message

drivers/net/thunderx/nicvf_ethdev.h +20 -20
index 5d38750d6313..cb474e26b81e 100644

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

drivers/net/txgbe/txgbe_ethdev.c +121 -121

242 lines not on this page · raw message

drivers/net/txgbe/txgbe_ethdev.h +9 -9
index fd65d89ffe7d..8304b68292da 100644

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

drivers/net/txgbe/txgbe_ethdev_vf.c +12 -12
index 43dc0ed39b75..283b52e8f3db 100644

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

drivers/net/txgbe/txgbe_fdir.c +10 -10
index 8abb86228608..e303d87176ed 100644

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

drivers/net/txgbe/txgbe_flow.c +1 -1
index eae400b14176..6d7fd1842843 100644

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

drivers/net/txgbe/txgbe_ipsec.c +6 -6
index ccd747973ba2..445733f3ba46 100644

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

drivers/net/txgbe/txgbe_pf.c +17 -17
index a48972b1a381..30be2873307a 100644

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

drivers/net/txgbe/txgbe_rxtx.c +154 -154

308 lines not on this page · raw message

drivers/net/txgbe/txgbe_rxtx.h +2 -2
index b96f58a3f848..27d4c842c0e7 100644

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

drivers/net/txgbe/txgbe_tm.c +8 -8
index 3abe3959eb1a..3171be73d05d 100644

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

drivers/net/vhost/rte_eth_vhost.c +8 -8
index a7935a716de9..27f81a5cafc5 100644

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

drivers/net/virtio/virtio_ethdev.c +62 -62

124 lines not on this page · raw message

drivers/net/vmxnet3/vmxnet3_ethdev.c +36 -36

72 lines not on this page · raw message

drivers/net/vmxnet3/vmxnet3_ethdev.h +8 -8
index 8950175460f0..ef858ac9512f 100644

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

drivers/net/vmxnet3/vmxnet3_rxtx.c +8 -8
index b01c4c01f9c9..870100fa4f11 100644

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

examples/bbdev_app/main.c +3 -3
index 68e3c13730ad..a9fef2297842 100644

Lines of this file are not shown. View the raw message.

examples/bond/main.c +7 -7
index 6352a715c0d9..3f41d8e5965d 100644

Lines of this file are not shown. View the raw message.

examples/distributor/main.c +6 -6
index 8c4a8feec0c2..c681e237ea46 100644

Lines of this file are not shown. View the raw message.

examples/ethtool/ethtool-app/main.c +1 -1
index 1bc675962bf3..cdd9e9b60bd8 100644

Lines of this file are not shown. View the raw message.

examples/ethtool/lib/rte_ethtool.c +9 -9
index 413251630709..e7cdf8d5775b 100644

Lines of this file are not shown. View the raw message.

examples/eventdev_pipeline/pipeline_worker_generic.c +8 -8
index e26be8edf28f..193a16463449 100644

Lines of this file are not shown. View the raw message.

examples/eventdev_pipeline/pipeline_worker_tx.c +6 -6
index 476b147bdfcc..1b841d46ad93 100644

Lines of this file are not shown. View the raw message.

examples/flow_classify/flow_classify.c +2 -2
index 8a43f6ac0f92..6185b340600c 100644

Lines of this file are not shown. View the raw message.

examples/flow_filtering/main.c +8 -8
index dd8a33d036ee..bfc1949c8428 100644

Lines of this file are not shown. View the raw message.

examples/ioat/ioatfwd.c +4 -4
index ccfee585f850..b1aa2767a0af 100644

Lines of this file are not shown. View the raw message.

examples/ip_fragmentation/main.c +6 -6
index 8644454a9aef..0307709f2b4a 100644

Lines of this file are not shown. View the raw message.

examples/ip_pipeline/link.c +10 -10
index 9ba02e687adb..0290767af473 100644

Lines of this file are not shown. View the raw message.

examples/ip_reassembly/main.c +9 -9
index 4f0e12e62447..a9f9bd477007 100644

Lines of this file are not shown. View the raw message.

examples/ipsec-secgw/ipsec-secgw.c +16 -16
index 5f5ec260f315..feddd84d1551 100644

Lines of this file are not shown. View the raw message.

examples/ipsec-secgw/sa.c +4 -4
index 17a28556c971..5cdd794f017f 100644

Lines of this file are not shown. View the raw message.

examples/ipv4_multicast/main.c +3 -3
index 87538dccc879..32670f80bc2b 100644

Lines of this file are not shown. View the raw message.

examples/kni/main.c +4 -4
index 1790ec024072..f780be712ec0 100644

Lines of this file are not shown. View the raw message.

examples/l2fwd-crypto/main.c +5 -5
index c646f1748ca7..42c04abbbb34 100644

Lines of this file are not shown. View the raw message.

examples/l2fwd-event/l2fwd_common.c +5 -5
index 9040be5ed9b6..cf3d1b8aaf40 100644

Lines of this file are not shown. View the raw message.

examples/l2fwd-event/main.c +1 -1
index 1db89f2bd139..9806204b81d1 100644

Lines of this file are not shown. View the raw message.

examples/l2fwd-jobstats/main.c +4 -4
index 06280321b1f2..092ea0189c7f 100644

Lines of this file are not shown. View the raw message.

examples/l2fwd-keepalive/main.c +4 -4
index 07271affb4a9..78e43f9c091e 100644

Lines of this file are not shown. View the raw message.

examples/l2fwd/main.c +4 -4
index f3deeba0a665..3edabd1dd19b 100644

Lines of this file are not shown. View the raw message.

examples/l3fwd-acl/main.c +9 -9
index 1890c88a5b01..fea414ae5929 100644

Lines of this file are not shown. View the raw message.

examples/l3fwd-graph/main.c +7 -7
index 05385807e83e..7f00c65609ed 100644

Lines of this file are not shown. View the raw message.

examples/l3fwd-power/main.c +8 -8
index 6aa1b66ecfcc..5a4359a368b5 100644

Lines of this file are not shown. View the raw message.

examples/l3fwd/l3fwd_event.c +2 -2
index 961860ea18ef..7c7613a83aad 100644

Lines of this file are not shown. View the raw message.

examples/l3fwd/main.c +9 -9
index f27c76bb7a73..51cbf81f1afa 100644

Lines of this file are not shown. View the raw message.

examples/link_status_interrupt/main.c +5 -5
index e4542df11f87..8714acddd110 100644

Lines of this file are not shown. View the raw message.

examples/multi_process/client_server_mp/mp_server/init.c +2 -2
index 1ad71ca7ec5f..23307073c904 100644

Lines of this file are not shown. View the raw message.

examples/multi_process/symmetric_mp/main.c +7 -7
index 01dc3acf34d5..85955375f1bf 100644

Lines of this file are not shown. View the raw message.

examples/ntb/ntb_fwd.c +3 -3
index e9a388710647..f110fc129f55 100644

Lines of this file are not shown. View the raw message.

examples/packet_ordering/main.c +2 -2
index 4f6982bc1289..b01ac60fd196 100644

Lines of this file are not shown. View the raw message.

examples/performance-thread/l3fwd-thread/main.c +8 -8
index 5de5df997ee9..baeee9298d57 100644

Lines of this file are not shown. View the raw message.

examples/pipeline/obj.c +10 -10
index 4f20dfc4be06..569207a79d62 100644

Lines of this file are not shown. View the raw message.

examples/ptpclient/ptpclient.c +5 -5
index 229a277032cb..979d9eb9e9d0 100644

Lines of this file are not shown. View the raw message.

examples/qos_meter/main.c +8 -8
index c32d2e12e633..743bae2da50a 100644

Lines of this file are not shown. View the raw message.

examples/qos_sched/init.c +3 -3
index 1367569c65db..9b34e4a76b1b 100644

Lines of this file are not shown. View the raw message.

examples/rxtx_callbacks/main.c +4 -4
index 6845c396b8d9..1903d8b095a1 100644

Lines of this file are not shown. View the raw message.

examples/server_node_efd/server/init.c +4 -4
index 9ebd88bac20e..074fee5b26b2 100644

Lines of this file are not shown. View the raw message.

examples/skeleton/basicfwd.c +2 -2
index fd7207aee758..16435ee3ccc2 100644

Lines of this file are not shown. View the raw message.

examples/vhost/main.c +13 -13
index 999809e6ed41..49c134a3042f 100644

Lines of this file are not shown. View the raw message.

examples/vm_power_manager/main.c +3 -3
index e19d79a40802..b159291d77ce 100644

Lines of this file are not shown. View the raw message.

examples/vmdq/main.c +10 -10
index ee7f4324e141..1f336082e5c1 100644

Lines of this file are not shown. View the raw message.

examples/vmdq_dcb/main.c +20 -20
index 14c20e6a8b26..1a19f1799bd2 100644

Lines of this file are not shown. View the raw message.

lib/ethdev/ethdev_driver.h +18 -18
index 0174ba03d7f3..c134b878684e 100644

Lines of this file are not shown. View the raw message.

lib/ethdev/rte_ethdev.c +89 -92

181 lines not on this page · raw message

lib/ethdev/rte_ethdev.h +642 -379

1,021 lines not on this page · raw message

lib/ethdev/rte_flow.h +1 -1
index 2b6efeef8cf5..555580ab4e71 100644

Lines of this file are not shown. View the raw message.

lib/gso/rte_gso.c +10 -10
index 0d02ec3cee05..119fdcac0b7f 100644

Lines of this file are not shown. View the raw message.

lib/gso/rte_gso.h +2 -2
index d93ee8e5b171..0a65afc11e64 100644

Lines of this file are not shown. View the raw message.

lib/mbuf/rte_mbuf_core.h +4 -4
index d6f167994411..5a5b6b1e33c1 100644

Lines of this file are not shown. View the raw message.

lib/mbuf/rte_mbuf_dyn.h +1 -1
index fb03cf1dcf90..29abe8da53cf 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.31.1

Part of the diff is not shown here. View the raw message.