ethdev: add namespace
Subsystems (3)
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
@@ -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
@@ -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
@@ -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
@@ -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
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.Signed-off-by Ferruh Yigit <[email protected]>---
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.Signed-off-by Ferruh Yigit <[email protected]>
- 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
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.Signed-off-by Ferruh Yigit <[email protected]>- I did not do a full check but I noticed that
ETH_RSScompat 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 'constrte_eth_conf':
in unqualified underlying type 'structrte_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_NONEsimply 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.
PATCH v2 1/1 ethdev: add namespace
In reply to Ferruh YigitAdd '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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 = ð_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 = ð_dev->data->dev_conf;uint64_t offloads = dev_conf->rxmode.offloads; -if (mask Ð_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 Ð_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 Ð_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
@@ -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/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_hwrm.c +56 -56
112 lines not on this page · raw message
drivers/net/bnxt/bnxt_rxtx_vec_common.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/bonding/rte_eth_bond_8023ad.c +8 -8
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/cn9k_ethdev.c +28 -28
56 lines not on this page · 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_ops.c +52 -52
104 lines not on this page · 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/dpaa/dpaa_ethdev.c +95 -95
190 lines not on this page · raw message
drivers/net/dpaa2/base/dpaa2_hw_dpni.c +17 -17
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/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_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_rss.c +33 -33
66 lines not on this page · raw message
drivers/net/enic/enic_ethdev.c +40 -40
80 lines not on this page · raw message
drivers/net/enic/enic_res.c +26 -26
52 lines not on this page · raw message
drivers/net/failsafe/failsafe_ops.c +41 -41
82 lines not on this page · raw message
drivers/net/fm10k/fm10k_ethdev.c +70 -70
140 lines not on this page · raw message
drivers/net/hinic/base/hinic_pmd_hwdev.c +11 -11
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/hns3/hns3_ethdev.c +180 -180
360 lines not on this page · raw message
drivers/net/hns3/hns3_ethdev_vf.c +54 -54
108 lines not on this page · raw message
drivers/net/hns3/hns3_rss.c +50 -50
100 lines not on this page · raw message
drivers/net/i40e/i40e_ethdev.c +135 -135
270 lines not on this page · raw message
drivers/net/i40e/i40e_ethdev_vf.c +55 -55
110 lines not on this page · raw message
drivers/net/i40e/i40e_hash.c +78 -78
156 lines not on this page · raw message
drivers/net/i40e/i40e_rxtx_vec_avx512.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/i40e/i40e_rxtx_vec_common.h +4 -4
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_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_vec_avx512.c +3 -3
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_hash.c +134 -134
268 lines not on this page · raw message
drivers/net/ice/ice_rxtx_vec_common.h +13 -13
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/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_rxtx.c +126 -126
252 lines not on this page · raw message
drivers/net/ixgbe/ixgbe_rxtx_vec_common.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ixgbe/ixgbe_vf_representor.c +8 -8
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/mlx5/linux/mlx5_ethdev_os.c +27 -27
54 lines not on this page · raw message
drivers/net/mlx5/mlx5_flow.c +27 -27
54 lines not on this page · raw message
drivers/net/mlx5/mlx5_flow_dv.c +22 -22
44 lines not on this page · raw message
drivers/net/mlx5/mlx5_rxq.c +21 -21
42 lines not on this page · raw message
drivers/net/mlx5/mlx5_txq.c +26 -26
52 lines not on this page · 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/nfp/nfp_common.c +61 -61
122 lines not on this page · raw message
drivers/net/ngbe/ngbe_ethdev.c +25 -25
50 lines not on this page · 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
Lines of this file are not shown. View the raw message.
drivers/net/octeontx/octeontx_ethdev_ops.c +13 -13
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
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_ethdev_ops.c +9 -9
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_ethdev_sec.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_flow_ctrl.c +18 -18
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_flow_parse.c +2 -2
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_vlan.c +21 -21
42 lines not on this page · raw message
drivers/net/octeontx_ep/otx_ep_ethdev.c +4 -4
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/sfc/sfc_ethdev.c +21 -21
42 lines not on this page · 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/szedata2/rte_eth_szedata2.c +7 -7
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/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_rxtx.c +156 -156
312 lines not on this page · 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
examples/eventdev_pipeline/pipeline_worker_generic.c +8 -8
Lines of this file are not shown. View the raw message.
examples/eventdev_pipeline/pipeline_worker_tx.c +6 -6
Lines of this file are not shown. View the raw message.
examples/multi_process/client_server_mp/mp_server/init.c +2 -2
Lines of this file are not shown. View the raw message.
examples/multi_process/symmetric_mp/main.c +7 -7
Lines of this file are not shown. View the raw message.
examples/performance-thread/l3fwd-thread/main.c +9 -9
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
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.
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.
Signed-off-by Ferruh Yigit <[email protected]>Acked-by Tyler Retzlaff <[email protected]>
I think that it should be pushed as early as possible in the release cycle.
The changeset definitely deserves entry in release notes.
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
Signed-off-by Ferruh Yigit <[email protected]>Acked-by Tyler Retzlaff <[email protected]>Acked-by Andrew Rybchenko <[email protected]>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.
Ajit Khaparde
Acked-byQuoted 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.
Signed-off-by Ferruh Yigit <[email protected]>Acked-by Tyler Retzlaff <[email protected]>Acked-by Andrew Rybchenko <[email protected]>
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.
Jerin Jacob
Acked-byQuoted 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.
Signed-off-by Ferruh Yigit <[email protected]>Acked-by Tyler Retzlaff <[email protected]>Acked-by Andrew Rybchenko <[email protected]>Acked-by Ajit Khaparde <[email protected]>
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.
Wisam Monther
Acked-byHi,
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 namespaceQuoted 3 lines · Andrew Rybchenko
Quoted 1 line · Ferruh Yigit
Add '
RTE_ETH' namespace to all enums & macros in a backwardcompatible
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.
Signed-off-by Ferruh Yigit <[email protected]>Acked-by Tyler Retzlaff <[email protected]>Acked-by Andrew Rybchenko <[email protected]>Acked-by Ajit Khaparde <[email protected]>
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.
Xu, Rosen
Acked-byHi,
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 namespaceHi,
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 PattanQuoted 1 line
Jerin Jacob <[email protected]>; Wisam Monther
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
Quoted 4 lines
John Miller <[email protected]>; Igor Russkikh <[email protected]>; Steven Webster <[email protected]>; Matt Peters <[email protected]>; Somalapuram Amaranath
Quoted 1 line
Rasesh Mody <[email protected]>; Shahed Shaikh
Quoted 2 lines
Bruce Richardson <[email protected]>; Konstantin Ananyev <[email protected]>; Ruifeng Wang
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
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
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
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 namespaceQuoted 3 lines · Andrew Rybchenko
Quoted 1 line · Ferruh Yigit
Add '
RTE_ETH' namespace to all enums & macros in a backwardcompatible
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
Signed-off-by Ferruh Yigit <[email protected]>Acked-by Tyler Retzlaff <[email protected]>Acked-by Andrew Rybchenko <[email protected]>Acked-by Ajit Khaparde <[email protected]>Acked-by Wisam Jaddo <[email protected]>
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.
Xia, Chenbo
Acked-byQuoted 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 backwardcompatible
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.
Signed-off-by Ferruh Yigit <[email protected]>Acked-by Tyler Retzlaff <[email protected]>
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Quoted 1 line
Acked-by Andrew Rybchenko <[email protected]>Acked-by Ajit Khaparde <[email protected]>Acked-by Wisam Jaddo <[email protected]>Acked-by Rosen Xu <[email protected]>
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.
Hemant Agrawal
Acked-byQuoted 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 backwardcompatible
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
Signed-off-by Ferruh Yigit <[email protected]>Acked-by Tyler Retzlaff <[email protected]>Acked-by Andrew Rybchenko <[email protected]>Acked-by Ajit Khaparde <[email protected]>Acked-by Wisam Jaddo <[email protected]>
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.
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
Quoted 8 lines · David Marchand
Hi Ferruh,
Quoted 2 lines · Ferruh Yigit
Add '
RTE_ETH' namespace to all enums & macros in a backward compatibleFor 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_netmacros.
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 tolib/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]; /**< TXBW 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_tprio_tc[ETH_DCB_NUM_USER_PRIORITIES]; /**< Priority to tc */
[snipped the rest of the output] etc...
PATCH v3 1/1 ethdev: add namespace
In reply to Ferruh YigitAdd '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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 intbond_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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 = ð_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 = ð_dev->data->dev_conf;uint64_t offloads = dev_conf->rxmode.offloads; -if (mask Ð_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 Ð_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 Ð_VLAN_EXTEND_MASK ) { -if (offloads &DEV_RX_OFFLOAD_VLAN_EXTEND ) +if (mask &RTE_ETH_VLAN_EXTEND_MASK ) {
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/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_hwrm.c +56 -56
112 lines not on this page · raw message
drivers/net/bnxt/bnxt_rxtx_vec_common.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/bonding/rte_eth_bond_8023ad.c +8 -8
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/cn9k_ethdev.c +28 -28
56 lines not on this page · 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_ops.c +56 -56
112 lines not on this page · 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/dpaa/dpaa_ethdev.c +95 -95
190 lines not on this page · raw message
drivers/net/dpaa2/base/dpaa2_hw_dpni.c +17 -17
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/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_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_rss.c +38 -38
76 lines not on this page · raw message
drivers/net/enic/enic_ethdev.c +44 -44
88 lines not on this page · raw message
drivers/net/enic/enic_res.c +26 -26
52 lines not on this page · raw message
drivers/net/failsafe/failsafe_ops.c +41 -41
82 lines not on this page · raw message
drivers/net/fm10k/fm10k_ethdev.c +74 -74
148 lines not on this page · raw message
drivers/net/hinic/base/hinic_pmd_hwdev.c +11 -11
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/hns3/hns3_ethdev.c +180 -180
360 lines not on this page · raw message
drivers/net/hns3/hns3_ethdev_vf.c +54 -54
108 lines not on this page · raw message
drivers/net/hns3/hns3_rss.c +54 -54
108 lines not on this page · raw message
drivers/net/i40e/i40e_ethdev.c +139 -139
278 lines not on this page · raw message
drivers/net/i40e/i40e_ethdev_vf.c +59 -59
118 lines not on this page · raw message
drivers/net/i40e/i40e_hash.c +78 -78
156 lines not on this page · raw message
drivers/net/i40e/i40e_rxtx_vec_avx512.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/i40e/i40e_rxtx_vec_common.h +4 -4
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_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_vec_avx512.c +3 -3
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_hash.c +134 -134
268 lines not on this page · raw message
drivers/net/ice/ice_rxtx_vec_common.h +13 -13
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/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_rxtx.c +126 -127
253 lines not on this page · raw message
drivers/net/ixgbe/ixgbe_rxtx_vec_common.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ixgbe/ixgbe_vf_representor.c +8 -8
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/mlx5/linux/mlx5_ethdev_os.c +27 -27
54 lines not on this page · raw message
drivers/net/mlx5/mlx5_flow.c +27 -27
54 lines not on this page · raw message
drivers/net/mlx5/mlx5_flow_dv.c +22 -22
44 lines not on this page · raw message
drivers/net/mlx5/mlx5_rxq.c +21 -21
42 lines not on this page · raw message
drivers/net/mlx5/mlx5_txq.c +26 -26
52 lines not on this page · 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/nfp/nfp_common.c +65 -65
130 lines not on this page · raw message
drivers/net/ngbe/ngbe_ethdev.c +25 -25
50 lines not on this page · 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
Lines of this file are not shown. View the raw message.
drivers/net/octeontx/octeontx_ethdev_ops.c +13 -13
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
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_ethdev_ops.c +9 -9
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_ethdev_sec.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_flow_ctrl.c +18 -18
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_flow_parse.c +2 -2
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_vlan.c +21 -21
42 lines not on this page · raw message
drivers/net/octeontx_ep/otx_ep_ethdev.c +4 -4
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/sfc/sfc_ethdev.c +26 -26
52 lines not on this page · 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/szedata2/rte_eth_szedata2.c +7 -7
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/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_rxtx.c +156 -156
312 lines not on this page · 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
examples/eventdev_pipeline/pipeline_worker_generic.c +8 -8
Lines of this file are not shown. View the raw message.
examples/eventdev_pipeline/pipeline_worker_tx.c +6 -6
Lines of this file are not shown. View the raw message.
examples/multi_process/client_server_mp/mp_server/init.c +2 -2
Lines of this file are not shown. View the raw message.
examples/multi_process/symmetric_mp/main.c +7 -7
Lines of this file are not shown. View the raw message.
examples/performance-thread/l3fwd-thread/main.c +9 -9
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
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.
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.
Signed-off-by Ferruh Yigit <[email protected]>Acked-by Tyler Retzlaff <[email protected]>Acked-by Andrew Rybchenko <[email protected]>Acked-by Ajit Khaparde <[email protected]>Acked-by Jerin Jacob <[email protected]>Acked-by Wisam Jaddo <[email protected]>Acked-by Rosen Xu <[email protected]>Acked-by Chenbo Xia <[email protected]>Acked-by Hemant Agrawal <[email protected]>---
Cc: David Marchand <[email protected]>v2:
* Updated internal components
* Removed deprecation noticev3:
* 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/
PATCH v4 1/1 ethdev: add namespace
In reply to Ferruh YigitAdd '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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 intbond_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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 = ð_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 = ð_dev->data->dev_conf;uint64_t offloads = dev_conf->rxmode.offloads; -if (mask Ð_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 Ð_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 Ð_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
@@ -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/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_hwrm.c +56 -56
112 lines not on this page · raw message
drivers/net/bnxt/bnxt_rxtx_vec_common.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/bonding/rte_eth_bond_8023ad.c +8 -8
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/cn9k_ethdev.c +30 -30
60 lines not on this page · 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_ops.c +53 -53
106 lines not on this page · 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/dpaa/dpaa_ethdev.c +90 -90
180 lines not on this page · 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/e1000/em_ethdev.c +32 -32
64 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_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_rss.c +37 -37
74 lines not on this page · raw message
drivers/net/enic/enic_ethdev.c +44 -44
88 lines not on this page · raw message
drivers/net/enic/enic_res.c +25 -25
50 lines not on this page · raw message
drivers/net/failsafe/failsafe_ops.c +39 -39
78 lines not on this page · raw message
drivers/net/fm10k/fm10k_ethdev.c +73 -73
146 lines not on this page · raw message
drivers/net/hinic/base/hinic_pmd_hwdev.c +11 -11
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/hns3/hns3_ethdev.c +176 -176
352 lines not on this page · raw message
drivers/net/hns3/hns3_ethdev_vf.c +50 -50
100 lines not on this page · raw message
drivers/net/hns3/hns3_rss.c +54 -54
108 lines not on this page · raw message
drivers/net/i40e/i40e_ethdev.c +136 -136
272 lines not on this page · raw message
drivers/net/i40e/i40e_hash.c +78 -78
156 lines not on this page · raw message
drivers/net/i40e/i40e_rxtx_vec_avx512.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/i40e/i40e_rxtx_vec_common.h +4 -4
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_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_vec_avx512.c +3 -3
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_hash.c +145 -145
290 lines not on this page · raw message
drivers/net/ice/ice_rxtx_vec_common.h +14 -14
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/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_rxtx.c +124 -125
249 lines not on this page · raw message
drivers/net/ixgbe/ixgbe_rxtx_vec_common.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ixgbe/ixgbe_vf_representor.c +8 -8
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/mlx5/linux/mlx5_ethdev_os.c +27 -27
54 lines not on this page · raw message
drivers/net/mlx5/mlx5_flow.c +27 -27
54 lines not on this page · raw message
drivers/net/mlx5/mlx5_flow_dv.c +22 -22
44 lines not on this page · raw message
drivers/net/mlx5/mlx5_txq.c +29 -29
58 lines not on this page · 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/nfp/nfp_common.c +61 -61
122 lines not on this page · raw message
drivers/net/ngbe/ngbe_ethdev.c +25 -25
50 lines not on this page · 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
Lines of this file are not shown. View the raw message.
drivers/net/octeontx/octeontx_ethdev_ops.c +13 -13
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
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_ethdev_ops.c +7 -7
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_ethdev_sec.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_flow_ctrl.c +18 -18
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_flow_parse.c +2 -2
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_vlan.c +21 -21
42 lines not on this page · raw message
drivers/net/octeontx_ep/otx_ep_ethdev.c +3 -3
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/sfc/sfc_ethdev.c +25 -25
50 lines not on this page · raw message
drivers/net/sfc/sfc_port.c +26 -26
52 lines not on this page · 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/szedata2/rte_eth_szedata2.c +7 -7
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/thunderx/nicvf_ethdev.c +51 -51
102 lines not on this page · raw message
drivers/net/txgbe/txgbe_ethdev.c +121 -121
242 lines not on this page · raw message
drivers/net/txgbe/txgbe_rxtx.c +154 -154
308 lines not on this page · 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
examples/eventdev_pipeline/pipeline_worker_generic.c +8 -8
Lines of this file are not shown. View the raw message.
examples/eventdev_pipeline/pipeline_worker_tx.c +6 -6
Lines of this file are not shown. View the raw message.
examples/multi_process/client_server_mp/mp_server/init.c +2 -2
Lines of this file are not shown. View the raw message.
examples/multi_process/symmetric_mp/main.c +7 -7
Lines of this file are not shown. View the raw message.
examples/performance-thread/l3fwd-thread/main.c +8 -8
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
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.
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 intbond_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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 = ð_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 = ð_dev->data->dev_conf;uint64_t offloads = dev_conf->rxmode.offloads; -if (mask Ð_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 Ð_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 Ð_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
@@ -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/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_hwrm.c +56 -56
112 lines not on this page · raw message
drivers/net/bnxt/bnxt_rxtx_vec_common.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/bonding/rte_eth_bond_8023ad.c +8 -8
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/cn9k_ethdev.c +30 -30
60 lines not on this page · 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_ops.c +53 -53
106 lines not on this page · 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/dpaa/dpaa_ethdev.c +90 -90
180 lines not on this page · 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/e1000/em_ethdev.c +32 -32
64 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_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_rss.c +37 -37
74 lines not on this page · raw message
drivers/net/enic/enic_ethdev.c +44 -44
88 lines not on this page · raw message
drivers/net/enic/enic_res.c +25 -25
50 lines not on this page · raw message
drivers/net/failsafe/failsafe_ops.c +39 -39
78 lines not on this page · raw message
drivers/net/fm10k/fm10k_ethdev.c +73 -73
146 lines not on this page · raw message
drivers/net/hinic/base/hinic_pmd_hwdev.c +11 -11
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/hns3/hns3_ethdev.c +176 -176
352 lines not on this page · raw message
drivers/net/hns3/hns3_ethdev_vf.c +50 -50
100 lines not on this page · raw message
drivers/net/hns3/hns3_rss.c +54 -54
108 lines not on this page · raw message
drivers/net/i40e/i40e_ethdev.c +136 -136
272 lines not on this page · raw message
drivers/net/i40e/i40e_hash.c +79 -79
158 lines not on this page · raw message
drivers/net/i40e/i40e_rxtx_vec_avx512.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/i40e/i40e_rxtx_vec_common.h +4 -4
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_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_vec_avx512.c +3 -3
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_hash.c +145 -145
290 lines not on this page · raw message
drivers/net/ice/ice_rxtx_vec_common.h +14 -14
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/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_rxtx.c +124 -125
249 lines not on this page · raw message
drivers/net/ixgbe/ixgbe_rxtx_vec_common.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ixgbe/ixgbe_vf_representor.c +8 -8
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/mlx5/linux/mlx5_ethdev_os.c +27 -27
54 lines not on this page · raw message
drivers/net/mlx5/mlx5_flow.c +27 -27
54 lines not on this page · raw message
drivers/net/mlx5/mlx5_flow_dv.c +22 -22
44 lines not on this page · raw message
drivers/net/mlx5/mlx5_txq.c +29 -29
58 lines not on this page · 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/nfp/nfp_common.c +61 -61
122 lines not on this page · raw message
drivers/net/ngbe/ngbe_ethdev.c +25 -25
50 lines not on this page · 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
Lines of this file are not shown. View the raw message.
drivers/net/octeontx/octeontx_ethdev_ops.c +13 -13
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
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_ethdev_ops.c +7 -7
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_ethdev_sec.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_flow_ctrl.c +18 -18
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_flow_parse.c +2 -2
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_vlan.c +21 -21
42 lines not on this page · raw message
drivers/net/octeontx_ep/otx_ep_ethdev.c +3 -3
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/sfc/sfc_ethdev.c +25 -25
50 lines not on this page · raw message
drivers/net/sfc/sfc_port.c +26 -26
52 lines not on this page · 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/szedata2/rte_eth_szedata2.c +7 -7
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/thunderx/nicvf_ethdev.c +51 -51
102 lines not on this page · raw message
drivers/net/txgbe/txgbe_ethdev.c +121 -121
242 lines not on this page · raw message
drivers/net/txgbe/txgbe_rxtx.c +154 -154
308 lines not on this page · 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
examples/eventdev_pipeline/pipeline_worker_generic.c +8 -8
Lines of this file are not shown. View the raw message.
examples/eventdev_pipeline/pipeline_worker_tx.c +6 -6
Lines of this file are not shown. View the raw message.
examples/multi_process/client_server_mp/mp_server/init.c +2 -2
Lines of this file are not shown. View the raw message.
examples/multi_process/symmetric_mp/main.c +7 -7
Lines of this file are not shown. View the raw message.
examples/performance-thread/l3fwd-thread/main.c +8 -8
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
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.