Skip to contentSkip to conversation

ethdev: add namespace

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

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

PATCH v6 1/1 ethdev: add namespace

In reply to Ferruh Yigit

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

All internal components switched to using new names.

Syntax fixed on lines that this patch touches.

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

v2:
* Updated internal components
* Removed deprecation notice

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

v4:
* rebased on latest next-net
* depends on https://patches.dpdk.org/user/todo/dpdk/?series=19744
* Not able to complete scripts to update user code, although some shared by Aman:
https://patches.dpdk.org/project/dpdk/patch/[email protected]/
Sending new version for possible option to get this patch for -rc1 and work for scripts later, before release.

v5:
* rebased on latest next-net

v6:
* 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                       | 1035 +++++++++++------
 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, 6645 insertions(+), 6390 deletions(-)
app/proc-info/main.c +4 -4
index bfe5ce825b70..a4271047e693 100644
@@ -757,11 +757,11 @@ show_port(void)
 		}
 
 		ret = rte_eth_dev_flow_ctrl_get(i, &fc_conf);
-		if (ret == 0 && fc_conf.mode != RTE_FC_NONE)  {
+		if (ret == 0 && fc_conf.mode != RTE_ETH_FC_NONE)  {
 			printf("\t  -- flow control mode %s%s high %u low %u pause %u%s%s\n",
-			       fc_conf.mode == RTE_FC_RX_PAUSE ? "rx " :
-			       fc_conf.mode == RTE_FC_TX_PAUSE ? "tx " :
-			       fc_conf.mode == RTE_FC_FULL ? "full" : "???",
+			       fc_conf.mode == RTE_ETH_FC_RX_PAUSE ? "rx " :
+			       fc_conf.mode == RTE_ETH_FC_TX_PAUSE ? "tx " :
+			       fc_conf.mode == RTE_ETH_FC_FULL ? "full" : "???",
 			       fc_conf.autoneg ? " auto" : "",
 			       fc_conf.high_water,
 			       fc_conf.low_water,
app/test-eventdev/test_perf_common.c +2 -2
index 660d5a0364b6..31d1b0e14653 100644
@@ -668,13 +668,13 @@ perf_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 	struct test_perf *t = evt_test_priv(test);
 	struct rte_eth_conf port_conf = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_RSS,
+			.mq_mode = RTE_ETH_MQ_RX_RSS,
 			.split_hdr_size = 0,
 		},
 		.rx_adv_conf = {
 			.rss_conf = {
 				.rss_key = NULL,
-				.rss_hf = ETH_RSS_IP,
+				.rss_hf = RTE_ETH_RSS_IP,
 			},
 		},
 	};
app/test-eventdev/test_pipeline_common.c +5 -5
index 2775e72c580d..d202091077a6 100644
@@ -176,12 +176,12 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 	struct rte_eth_rxconf rx_conf;
 	struct rte_eth_conf port_conf = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_RSS,
+			.mq_mode = RTE_ETH_MQ_RX_RSS,
 		},
 		.rx_adv_conf = {
 			.rss_conf = {
 				.rss_key = NULL,
-				.rss_hf = ETH_RSS_IP,
+				.rss_hf = RTE_ETH_RSS_IP,
 			},
 		},
 	};
@@ -223,7 +223,7 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 
 		if (!(caps & RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT))
 			local_port_conf.rxmode.offloads |=
-				DEV_RX_OFFLOAD_RSS_HASH;
+				RTE_ETH_RX_OFFLOAD_RSS_HASH;
 
 		ret = rte_eth_dev_info_get(i, &dev_info);
 		if (ret != 0) {
@@ -233,9 +233,9 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 		}
 
 		/* Enable mbuf fast free if PMD has the capability. */
-		if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_MBUF_FAST_FREE)
+		if (dev_info.tx_offload_capa & RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE)
 			local_port_conf.txmode.offloads |=
-				DEV_TX_OFFLOAD_MBUF_FAST_FREE;
+				RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE;
 
 		rx_conf = dev_info.default_rxconf;
 		rx_conf.offloads = port_conf.rxmode.offloads;
app/test-flow-perf/config.h +1 -1
index a14d4e05e185..4249b6175b82 100644
@@ -5,7 +5,7 @@
 #define FLOW_ITEM_MASK(_x) (UINT64_C(1) << _x)
 #define FLOW_ACTION_MASK(_x) (UINT64_C(1) << _x)
 #define FLOW_ATTR_MASK(_x) (UINT64_C(1) << _x)
-#define GET_RSS_HF() (ETH_RSS_IP)
+#define GET_RSS_HF() (RTE_ETH_RSS_IP)
 
 /* Configuration */
 #define RXQ_NUM 4
app/test-pipeline/init.c +4 -4
index fe37d63730c6..c73801904103 100644
@@ -70,16 +70,16 @@ struct app_params app = {
 static struct rte_eth_conf port_conf = {
 	.rxmode = {
 		.split_hdr_size = 0,
-		.offloads = DEV_RX_OFFLOAD_CHECKSUM,
+		.offloads = RTE_ETH_RX_OFFLOAD_CHECKSUM,
 	},
 	.rx_adv_conf = {
 		.rss_conf = {
 			.rss_key = NULL,
-			.rss_hf = ETH_RSS_IP,
+			.rss_hf = RTE_ETH_RSS_IP,
 		},
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 };
 
@@ -178,7 +178,7 @@ app_ports_check_link(void)
 		RTE_LOG(INFO, USER1, "Port %u %s\n",
 			port,
 			link_status_text);
-		if (link.link_status == ETH_LINK_DOWN)
+		if (link.link_status == RTE_ETH_LINK_DOWN)
 			all_ports_up = 0;
 	}
 
app/test-pmd/cmdline.c +143 -143

611 lines not on this page · raw message

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

342 lines not on this page · raw message

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

128 lines not on this page · raw message

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

154 lines not on this page · raw message

app/test-pmd/testpmd.h +1 -1
index bf3669134aa0..cd1e623ad67a 100644
@@ -493,7 +493,7 @@ extern lcoreid_t bitrate_lcore_id;
 extern uint8_t bitrate_enabled;
 #endif
 
-extern struct rte_fdir_conf fdir_conf;
+extern struct rte_eth_fdir_conf fdir_conf;
 
 extern uint32_t max_rx_pkt_len;
 
app/test-pmd/txonly.c +3 -3
index e45f8840c91c..9eb7992815e8 100644
@@ -354,11 +354,11 @@ pkt_burst_transmit(struct fwd_stream *fs)
 	tx_offloads = txp->dev_conf.txmode.offloads;
 	vlan_tci = txp->tx_vlan_id;
 	vlan_tci_outer = txp->tx_vlan_id_outer;
-	if (tx_offloads	& DEV_TX_OFFLOAD_VLAN_INSERT)
+	if (tx_offloads	& RTE_ETH_TX_OFFLOAD_VLAN_INSERT)
 		ol_flags = PKT_TX_VLAN_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_QINQ_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_QINQ_INSERT)
 		ol_flags |= PKT_TX_QINQ_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_MACSEC_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_MACSEC_INSERT)
 		ol_flags |= PKT_TX_MACSEC;
 
 	/*
app/test/test_ethdev_link.c +34 -34

116 lines not on this page · raw message

app/test/test_event_eth_rx_adapter.c +2 -2
index add4d8a67821..a09253e91814 100644
@@ -103,7 +103,7 @@ port_init_rx_intr(uint16_t port, struct rte_mempool *mp)
 {
 	static const struct rte_eth_conf port_conf_default = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_NONE,
+			.mq_mode = RTE_ETH_MQ_RX_NONE,
 		},
 		.intr_conf = {
 			.rxq = 1,
@@ -118,7 +118,7 @@ port_init(uint16_t port, struct rte_mempool *mp)
 {
 	static const struct rte_eth_conf port_conf_default = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_NONE,
+			.mq_mode = RTE_ETH_MQ_RX_NONE,
 		},
 	};
 
app/test/test_kni.c +1 -1
index 96733554b6c4..40ab0d5c4ca4 100644
@@ -74,7 +74,7 @@ static const struct rte_eth_txconf tx_conf = {
 
 static const struct rte_eth_conf port_conf = {
 	.txmode = {
-		.mq_mode = ETH_DCB_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 };
 
app/test/test_link_bonding.c +2 -2
index 5388d18125a6..8a9ef851789f 100644
@@ -134,11 +134,11 @@ static uint16_t vlan_id = 0x100;
 
 static struct rte_eth_conf default_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 0,
 };
app/test/test_link_bonding_mode4.c +2 -2
index 189d2430f27e..351129de2f9b 100644
@@ -107,11 +107,11 @@ static struct link_bonding_unittest_params test_params  = {
 
 static struct rte_eth_conf default_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 0,
 };
app/test/test_link_bonding_rssconf.c +14 -14
index e7bb0497b663..f9eae9397386 100644
@@ -52,7 +52,7 @@ struct slave_conf {
 
 	struct rte_eth_rss_conf rss_conf;
 	uint8_t rss_key[40];
-	struct rte_eth_rss_reta_entry64 reta_conf[512 / RTE_RETA_GROUP_SIZE];
+	struct rte_eth_rss_reta_entry64 reta_conf[512 / RTE_ETH_RETA_GROUP_SIZE];
 
 	uint8_t is_slave;
 	struct rte_ring *rxtx_queue[RXTX_QUEUE_COUNT];
@@ -61,7 +61,7 @@ struct slave_conf {
 struct link_bonding_rssconf_unittest_params {
 	uint8_t bond_port_id;
 	struct rte_eth_dev_info bond_dev_info;
-	struct rte_eth_rss_reta_entry64 bond_reta_conf[512 / RTE_RETA_GROUP_SIZE];
+	struct rte_eth_rss_reta_entry64 bond_reta_conf[512 / RTE_ETH_RETA_GROUP_SIZE];
 	struct slave_conf slave_ports[SLAVE_COUNT];
 
 	struct rte_mempool *mbuf_pool;
@@ -80,27 +80,27 @@ static struct link_bonding_rssconf_unittest_params test_params  = {
  */
 static struct rte_eth_conf default_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 0,
 };
 
 static struct rte_eth_conf rss_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_RSS,
+		.mq_mode = RTE_ETH_MQ_RX_RSS,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.rx_adv_conf = {
 		.rss_conf = {
 			.rss_key = NULL,
-			.rss_hf = ETH_RSS_IPV6,
+			.rss_hf = RTE_ETH_RSS_IPV6,
 		},
 	},
 	.lpbk_mode = 0,
@@ -207,13 +207,13 @@ bond_slaves(void)
 static int
 reta_set(uint16_t port_id, uint8_t value, int reta_size)
 {
-	struct rte_eth_rss_reta_entry64 reta_conf[512/RTE_RETA_GROUP_SIZE];
+	struct rte_eth_rss_reta_entry64 reta_conf[512/RTE_ETH_RETA_GROUP_SIZE];
 	int i, j;
 
-	for (i = 0; i < reta_size / RTE_RETA_GROUP_SIZE; i++) {
+	for (i = 0; i < reta_size / RTE_ETH_RETA_GROUP_SIZE; i++) {
 		/* select all fields to set */
 		reta_conf[i].mask = ~0LL;
-		for (j = 0; j < RTE_RETA_GROUP_SIZE; j++)
+		for (j = 0; j < RTE_ETH_RETA_GROUP_SIZE; j++)
 			reta_conf[i].reta[j] = value;
 	}
 
@@ -232,8 +232,8 @@ reta_check_synced(struct slave_conf *port)
 	for (i = 0; i < test_params.bond_dev_info.reta_size;
 			i++) {
 
-		int index = i / RTE_RETA_GROUP_SIZE;
-		int shift = i % RTE_RETA_GROUP_SIZE;
+		int index = i / RTE_ETH_RETA_GROUP_SIZE;
+		int shift = i % RTE_ETH_RETA_GROUP_SIZE;
 
 		if (port->reta_conf[index].reta[shift] !=
 				test_params.bond_reta_conf[index].reta[shift])
@@ -251,7 +251,7 @@ static int
 bond_reta_fetch(void) {
 	unsigned j;
 
-	for (j = 0; j < test_params.bond_dev_info.reta_size / RTE_RETA_GROUP_SIZE;
+	for (j = 0; j < test_params.bond_dev_info.reta_size / RTE_ETH_RETA_GROUP_SIZE;
 			j++)
 		test_params.bond_reta_conf[j].mask = ~0LL;
 
@@ -268,7 +268,7 @@ static int
 slave_reta_fetch(struct slave_conf *port) {
 	unsigned j;
 
-	for (j = 0; j < port->dev_info.reta_size / RTE_RETA_GROUP_SIZE; j++)
+	for (j = 0; j < port->dev_info.reta_size / RTE_ETH_RETA_GROUP_SIZE; j++)
 		port->reta_conf[j].mask = ~0LL;
 
 	TEST_ASSERT_SUCCESS(rte_eth_dev_rss_reta_query(port->port_id,
app/test/test_pmd_perf.c +6 -6
index a3b4f52c65e6..1df86ce080e5 100644
@@ -62,11 +62,11 @@ static struct rte_ether_addr ports_eth_addr[RTE_MAX_ETHPORTS];
 
 static struct rte_eth_conf port_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 1,  /* enable loopback */
 };
@@ -155,7 +155,7 @@ check_all_ports_link_status(uint16_t port_num, uint32_t port_mask)
 				continue;
 			}
 			/* clear all_ports_up flag if any link down */
-			if (link.link_status == ETH_LINK_DOWN) {
+			if (link.link_status == RTE_ETH_LINK_DOWN) {
 				all_ports_up = 0;
 				break;
 			}
@@ -822,7 +822,7 @@ test_set_rxtx_conf(cmdline_fixed_string_t mode)
 		/* bulk alloc rx, full-featured tx */
 		tx_conf.tx_rs_thresh = 32;
 		tx_conf.tx_free_thresh = 32;
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_CHECKSUM;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_CHECKSUM;
 		return 0;
 	} else if (!strcmp(mode, "hybrid")) {
 		/* bulk alloc rx, vector tx
@@ -831,13 +831,13 @@ test_set_rxtx_conf(cmdline_fixed_string_t mode)
 		 */
 		tx_conf.tx_rs_thresh = 32;
 		tx_conf.tx_free_thresh = 32;
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_CHECKSUM;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_CHECKSUM;
 		return 0;
 	} else if (!strcmp(mode, "full")) {
 		/* full feature rx,tx pair */
 		tx_conf.tx_rs_thresh = 32;
 		tx_conf.tx_free_thresh = 32;
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_SCATTER;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_SCATTER;
 		return 0;
 	}
 
app/test/virtual_pmd.c +5 -5
index 7e15b47eb0fb..d9f2e4f66bde 100644
@@ -53,7 +53,7 @@ static int  virtual_ethdev_stop(struct rte_eth_dev *eth_dev __rte_unused)
 	void *pkt = NULL;
 	struct virtual_ethdev_private *prv = eth_dev->data->dev_private;
 
-	eth_dev->data->dev_link.link_status = ETH_LINK_DOWN;
+	eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 	eth_dev->data->dev_started = 0;
 	while (rte_ring_dequeue(prv->rx_queue, &pkt) != -ENOENT)
 		rte_pktmbuf_free(pkt);
@@ -168,7 +168,7 @@ virtual_ethdev_link_update_success(struct rte_eth_dev *bonded_eth_dev,
 		int wait_to_complete __rte_unused)
 {
 	if (!bonded_eth_dev->data->dev_started)
-		bonded_eth_dev->data->dev_link.link_status = ETH_LINK_DOWN;
+		bonded_eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 
 	return 0;
 }
@@ -562,9 +562,9 @@ virtual_ethdev_create(const char *name, struct rte_ether_addr *mac_addr,
 	eth_dev->data->nb_rx_queues = (uint16_t)1;
 	eth_dev->data->nb_tx_queues = (uint16_t)1;
 
-	eth_dev->data->dev_link.link_status = ETH_LINK_DOWN;
-	eth_dev->data->dev_link.link_speed = ETH_SPEED_NUM_10G;
-	eth_dev->data->dev_link.link_duplex = ETH_LINK_FULL_DUPLEX;
+	eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
+	eth_dev->data->dev_link.link_speed = RTE_ETH_SPEED_NUM_10G;
+	eth_dev->data->dev_link.link_duplex = RTE_ETH_LINK_FULL_DUPLEX;
 
 	eth_dev->data->mac_addrs = rte_zmalloc(name, RTE_ETHER_ADDR_LEN, 0);
 	if (eth_dev->data->mac_addrs == NULL)
doc/guides/eventdevs/cnxk.rst +1 -1
index 53560d3830d7..1c0ea988f239 100644
@@ -42,7 +42,7 @@ Features of the OCTEON cnxk SSO PMD are:
 - HW managed packets enqueued from ethdev to eventdev exposed through event eth
   RX adapter.
 - N:1 ethernet device Rx queue to Event queue mapping.
-- Lockfree Tx from event eth Tx adapter using ``DEV_TX_OFFLOAD_MT_LOCKFREE``
+- Lockfree Tx from event eth Tx adapter using ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE``
   capability while maintaining receive packet order.
 - Full Rx/Tx offload support defined through ethdev queue configuration.
 - HW managed event vectorization on CN10K for packets enqueued from ethdev to
doc/guides/eventdevs/octeontx2.rst +1 -1
index 11fbebfcd243..0fa57abfa3e0 100644
@@ -35,7 +35,7 @@ Features of the OCTEON TX2 SSO PMD are:
 - HW managed packets enqueued from ethdev to eventdev exposed through event eth
   RX adapter.
 - N:1 ethernet device Rx queue to Event queue mapping.
-- Lockfree Tx from event eth Tx adapter using ``DEV_TX_OFFLOAD_MT_LOCKFREE``
+- Lockfree Tx from event eth Tx adapter using ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE``
   capability while maintaining receive packet order.
 - Full Rx/Tx offload support defined through ethdev queue config.
 
doc/guides/nics/af_packet.rst +1 -1
index bdd6e7263c85..54feffdef4bd 100644
@@ -70,5 +70,5 @@ Features and Limitations
 ------------------------
 
 The PMD will re-insert the VLAN tag transparently to the packet if the kernel
-strips it, as long as the ``DEV_RX_OFFLOAD_VLAN_STRIP`` is not enabled by the
+strips it, as long as the ``RTE_ETH_RX_OFFLOAD_VLAN_STRIP`` is not enabled by the
 application.
doc/guides/nics/bnxt.rst +12 -12
index aa6032889a55..b3d10f30dc77 100644
@@ -877,21 +877,21 @@ processing. This improved performance is derived from a number of optimizations:
     * TX: only the following reduced set of transmit offloads is supported in
       vector mode::
 
-       DEV_TX_OFFLOAD_MBUF_FAST_FREE
+       RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE
 
     * RX: only the following reduced set of receive offloads is supported in
       vector mode (note that jumbo MTU is allowed only when the MTU setting
-      does not require `DEV_RX_OFFLOAD_SCATTER` to be enabled)::
-
-       DEV_RX_OFFLOAD_VLAN_STRIP
-       DEV_RX_OFFLOAD_KEEP_CRC
-       DEV_RX_OFFLOAD_IPV4_CKSUM
-       DEV_RX_OFFLOAD_UDP_CKSUM
-       DEV_RX_OFFLOAD_TCP_CKSUM
-       DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM
-       DEV_RX_OFFLOAD_OUTER_UDP_CKSUM
-       DEV_RX_OFFLOAD_RSS_HASH
-       DEV_RX_OFFLOAD_VLAN_FILTER
+      does not require `RTE_ETH_RX_OFFLOAD_SCATTER` to be enabled)::
+
+       RTE_ETH_RX_OFFLOAD_VLAN_STRIP
+       RTE_ETH_RX_OFFLOAD_KEEP_CRC
+       RTE_ETH_RX_OFFLOAD_IPV4_CKSUM
+       RTE_ETH_RX_OFFLOAD_UDP_CKSUM
+       RTE_ETH_RX_OFFLOAD_TCP_CKSUM
+       RTE_ETH_RX_OFFLOAD_OUTER_IPV4_CKSUM
+       RTE_ETH_RX_OFFLOAD_OUTER_UDP_CKSUM
+       RTE_ETH_RX_OFFLOAD_RSS_HASH
+       RTE_ETH_RX_OFFLOAD_VLAN_FILTER
 
 The BNXT Vector PMD is enabled in DPDK builds by default. The decision to enable
 vector processing is made at run-time when the port is started; if no transmit
doc/guides/nics/enic.rst +1 -1
index 91bdcd065a95..0209730b904a 100644
@@ -432,7 +432,7 @@ Limitations
 .. code-block:: console
 
      vlan_offload = rte_eth_dev_get_vlan_offload(port);
-     vlan_offload |= ETH_VLAN_STRIP_OFFLOAD;
+     vlan_offload |= RTE_ETH_VLAN_STRIP_OFFLOAD;
      rte_eth_dev_set_vlan_offload(port, vlan_offload);
 
 Another alternative is modify the adapter's ingress VLAN rewrite mode so that
doc/guides/nics/features.rst +57 -57

303 lines not on this page · raw message

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

174 lines not on this page · raw message

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

86 lines not on this page · raw message

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

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

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

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

drivers/net/axgbe/axgbe_rxtx.c +3 -3
index c8618d2d6daa..aa2c27ebaa49 100644

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

drivers/net/bnx2x/bnx2x_ethdev.c +6 -6
index 567ea2382864..78fc717ec44a 100644

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

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

62 lines not on this page · raw message

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

172 lines not on this page · raw message

drivers/net/bnxt/bnxt_flow.c +3 -3
index b2ebb5634e3a..ced697a73980 100644

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

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

112 lines not on this page · raw message

drivers/net/bnxt/bnxt_reps.c +1 -1
index b7e88e013a84..1c07db3ca9c5 100644

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

drivers/net/bnxt/bnxt_ring.c +2 -2
index 08cefa1baaef..7940d489a102 100644

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

drivers/net/bnxt/bnxt_rxq.c +14 -14
index 38ec4aa14b77..1456f8b54ffa 100644

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

drivers/net/bnxt/bnxt_rxr.c +2 -2
index aeacc60a0127..eb555c4545e6 100644

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

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

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

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

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

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

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

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

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

drivers/net/bnxt/bnxt_txr.c +2 -2
index 9e45ddd7a82e..f2fcaf53021c 100644

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

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

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

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

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

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

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

drivers/net/bonding/rte_eth_bond_8023ad.c +8 -8
index 2029955c1092..ca50583d62d8 100644

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

drivers/net/bonding/rte_eth_bond_api.c +3 -3
index 5140ef14c2ee..84943cffe2bb 100644

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

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

50 lines not on this page · raw message

drivers/net/cnxk/cn10k_ethdev.c +21 -21

42 lines not on this page · raw message

drivers/net/cnxk/cn10k_rte_flow.c +1 -1
index 8c87452934eb..dff4c7746cf5 100644

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

drivers/net/cnxk/cn10k_rx.c +2 -2
index d6af54b56de6..5d603514c045 100644

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

drivers/net/cnxk/cn10k_tx.c +2 -2
index eb962ef08cab..5e6c5ee11188 100644

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

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

60 lines not on this page · raw message

drivers/net/cnxk/cn9k_rx.c +2 -2
index 5c4387e74e0b..8d504c4a6d92 100644

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

drivers/net/cnxk/cn9k_tx.c +2 -2
index e5691a2a7e16..f3f19fed9780 100644

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

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

112 lines not on this page · raw message

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

49 lines not on this page · raw message

drivers/net/cnxk/cnxk_ethdev_devargs.c +3 -3
index c0b949e21ab0..e068f553495c 100644

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

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

106 lines not on this page · raw message

drivers/net/cnxk/cnxk_link.c +7 -7
index 6a7080167598..f10a502826c6 100644

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

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

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

drivers/net/cnxk/cnxk_rte_flow.c +1 -1
index dfc33ba8654a..b08d7c34faa9 100644

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

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

46 lines not on this page · raw message

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

42 lines not on this page · raw message

drivers/net/cxgbe/cxgbe_main.c +6 -6
index 91d6bb9bbcb0..f1ac32270961 100644

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

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

180 lines not on this page · raw message

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

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

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

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

drivers/net/dpaa2/base/dpaa2_hw_dpni.c +23 -24

47 lines not on this page · raw message

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

138 lines not on this page · raw message

drivers/net/dpaa2/dpaa2_ethdev.h +11 -11
index fdc62ec30d22..c5e9267bf04d 100644

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

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

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

drivers/net/e1000/e1000_ethdev.h +9 -9
index 7d5d6377859a..a548ae2ccb2c 100644

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

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

64 lines not on this page · raw message

drivers/net/e1000/em_rxtx.c +19 -19
index 344149c19147..648b04154c5b 100644

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

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

158 lines not on this page · raw message

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

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

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

116 lines not on this page · raw message

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

70 lines not on this page · raw message

drivers/net/ena/ena_ethdev.h +2 -2
index 4f4142ed12d0..865e1241e0ce 100644

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

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

74 lines not on this page · raw message

drivers/net/enetc/enetc_ethdev.c +15 -15
index 1b567f01eae0..7cdb8ce463ed 100644

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

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

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

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

88 lines not on this page · raw message

drivers/net/enic/enic_main.c +20 -20
index dfc7f5d1f94f..21b1fffb14f0 100644

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

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

50 lines not on this page · raw message

drivers/net/failsafe/failsafe.c +4 -4
index b87c036e6014..82d595b1d1a0 100644

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

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

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

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

78 lines not on this page · raw message

drivers/net/fm10k/fm10k.h +2 -2
index 17c73c4dc5ae..b7522a47a80b 100644

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

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

146 lines not on this page · raw message

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

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

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

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

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

136 lines not on this page · raw message

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

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

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

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

drivers/net/hns3/hns3_dcb.c +7 -7
index 8753c340e790..3d0159d78778 100644

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

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

352 lines not on this page · raw message

drivers/net/hns3/hns3_ethdev.h +6 -6
index e28056b1bd60..0f55fd4c83ad 100644

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

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

100 lines not on this page · raw message

drivers/net/hns3/hns3_flow.c +3 -3
index 38a2ee58a651..da6918fddda3 100644

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

drivers/net/hns3/hns3_ptp.c +1 -1
index 5dfe68cc4dbd..9a829d7011ad 100644

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

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

108 lines not on this page · raw message

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

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

drivers/net/hns3/hns3_rxtx.c +15 -15
index 602548a4f25b..920ee8ceeab9 100644

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

drivers/net/hns3/hns3_rxtx.h +1 -1
index c8229e9076b5..dfea5d5b4c2f 100644

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

drivers/net/hns3/hns3_rxtx_vec.c +5 -5
index ff434d2d33ed..455110361aac 100644

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

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

272 lines not on this page · raw message

drivers/net/i40e/i40e_ethdev.h +12 -12
index 1d57b9617e66..d8042abbd9be 100644

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

drivers/net/i40e/i40e_flow.c +16 -16
index e41a84f1d737..9acaa1875105 100644

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

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

158 lines not on this page · raw message

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

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

drivers/net/i40e/i40e_rxtx.c +4 -4
index 554b1142c136..a13bb81115f4 100644

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

drivers/net/i40e/i40e_rxtx.h +2 -2
index 2301e6301d7d..5e6eecc50116 100644

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

drivers/net/i40e/i40e_rxtx_vec_avx512.c +1 -1
index 4ffe030fcb64..7abc0821d119 100644

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

drivers/net/i40e/i40e_rxtx_vec_common.h +4 -4
index f52e3c567558..f9a7f4655050 100644

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

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

48 lines not on this page · raw message

drivers/net/iavf/iavf.h +12 -12
index 34bfa9af4734..12f541f53926 100644

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

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

178 lines not on this page · raw message

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

320 lines not on this page · raw message

drivers/net/iavf/iavf_rxtx.c +1 -1
index 88bbd40c1027..ac4db117f5cd 100644

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

drivers/net/iavf/iavf_rxtx.h +12 -12
index f4ae2fd6e123..2d7f6b1b2dca 100644

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

drivers/net/iavf/iavf_rxtx_vec_avx2.c +2 -2
index 72a4fcab04a5..b47c51b8ebe4 100644

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

drivers/net/iavf/iavf_rxtx_vec_avx512.c +3 -3
index 12375d3d80bd..b8f2f69f12fc 100644

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

drivers/net/iavf/iavf_rxtx_vec_sse.c +1 -1
index edb54991e298..1de43b9b8ee2 100644

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

drivers/net/ice/ice_dcf.c +1 -1
index c9c01a14e349..7b7df5eebb6d 100644

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

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

86 lines not on this page · raw message

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

56 lines not on this page · raw message

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

180 lines not on this page · raw message

drivers/net/ice/ice_ethdev.h +13 -13
index 1cd3753ccc5f..599e0028f7e8 100644

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

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

290 lines not on this page · raw message

drivers/net/ice/ice_rxtx.c +8 -8
index ff362c21d9f5..8406240d7209 100644

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

drivers/net/ice/ice_rxtx_vec_avx2.c +1 -1
index 490693bff218..86955539bea8 100644

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

drivers/net/ice/ice_rxtx_vec_avx512.c +2 -2
index 7efe7b50a206..af23f6a34e58 100644

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

drivers/net/ice/ice_rxtx_vec_common.h +14 -14
index f0f99265857e..b1d975b31a5a 100644

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

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

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

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

138 lines not on this page · raw message

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

54 lines not on this page · raw message

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

48 lines not on this page · raw message

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

138 lines not on this page · raw message

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

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

drivers/net/ionic/ionic_lif.c +18 -18
index a1f9ce2d81cb..5e8fdf3893ad 100644

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

drivers/net/ionic/ionic_rxtx.c +5 -5
index 4d16a39c6b6d..e3df7c56debe 100644

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

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

64 lines not on this page · raw message

drivers/net/ixgbe/ixgbe_ethdev.c +142 -143

285 lines not on this page · raw message

drivers/net/ixgbe/ixgbe_ethdev.h +9 -9
index 950fb2d2450c..876b670f2682 100644

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

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

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

drivers/net/ixgbe/ixgbe_flow.c +1 -1
index 27322ab9038a..bdc9d4796c02 100644

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

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

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

drivers/net/ixgbe/ixgbe_pf.c +17 -17
index 295e5a39b245..9f1bd0a62ba4 100644

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

drivers/net/ixgbe/ixgbe_rxtx.c +124 -125

249 lines not on this page · raw message

drivers/net/ixgbe/ixgbe_rxtx.h +2 -2
index a1764f2b08af..668a5b9814f6 100644

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

drivers/net/ixgbe/ixgbe_rxtx_vec_common.h +1 -1
index 005e60668a8b..cd34d4098785 100644

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

drivers/net/ixgbe/ixgbe_tm.c +8 -8
index ae03ea6e9db3..ac8976062fa7 100644

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

drivers/net/ixgbe/ixgbe_vf_representor.c +8 -8
index 9fa75984fb31..bd528ff346c7 100644

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

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

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

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

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

drivers/net/kni/rte_eth_kni.c +4 -4
index cb9f7c8e8200..c428caf44189 100644

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

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

114 lines not on this page · raw message

drivers/net/memif/memif_socket.c +1 -1
index 364e818d65c1..8533e39f6957 100644

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

drivers/net/memif/rte_eth_memif.c +8 -8
index 980150293e86..9deb7a5f1360 100644

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

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

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

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

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

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

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

drivers/net/mlx4/mlx4_rxq.c +9 -9
index ee2d2b75e59a..781ee256df71 100644

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

drivers/net/mlx4/mlx4_txq.c +12 -12
index 7d8c4f2a2223..0db2e55befd3 100644

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

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

54 lines not on this page · raw message

drivers/net/mlx5/linux/mlx5_os.c +3 -3
index 111a7597317a..23d9e0a476ac 100644

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

drivers/net/mlx5/mlx5.c +2 -2
index 7263d354b180..3a9b716e438c 100644

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

drivers/net/mlx5/mlx5.h +1 -1
index 42cacd0bbe3b..52f03ada2ced 100644

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

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

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

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

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

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

54 lines not on this page · raw message

drivers/net/mlx5/mlx5_flow.h +6 -6
index f1a83d537d0c..4a16f30fb7a6 100644

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

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

44 lines not on this page · raw message

drivers/net/mlx5/mlx5_flow_verbs.c +2 -2
index 892abcb65779..f9010a674d7f 100644

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

drivers/net/mlx5/mlx5_rss.c +5 -5
index c32129cdc2b8..a4f690039e24 100644

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

drivers/net/mlx5/mlx5_rxq.c +20 -20
index 60673d014d02..14b9991c5fa8 100644

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

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

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

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

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

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

58 lines not on this page · raw message

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

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

drivers/net/mlx5/windows/mlx5_os.c +2 -2
index 31c4d3276053..9a9069da7572 100644

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

drivers/net/mvneta/mvneta_ethdev.c +16 -16
index 2a0288087357..10fe6d828ccd 100644

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

drivers/net/mvneta/mvneta_ethdev.h +5 -5
index 126a9a0c11b9..ccb87d518d83 100644

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

drivers/net/mvneta/mvneta_rxtx.c +1 -1
index 9836bb071a82..62d8aa586dae 100644

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

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

112 lines not on this page · raw message

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

70 lines not on this page · raw message

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

50 lines not on this page · raw message

drivers/net/nfb/nfb_ethdev.c +10 -10
index 99d93ebf4667..3c39937816a4 100644

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

drivers/net/nfb/nfb_rx.c +1 -1
index 3ebb332ae46c..f76e2ba64621 100644

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

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

122 lines not on this page · raw message

drivers/net/nfp/nfp_ethdev.c +1 -1
index 1169ea77a8c7..e08e594b04fe 100644

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

drivers/net/nfp/nfp_ethdev_vf.c +1 -1
index 62cb3536e0c9..817fe64dbceb 100644

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

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

50 lines not on this page · raw message

drivers/net/null/rte_eth_null.c +14 -14
index 25b9e5b1ce1b..ca03469d0e6d 100644

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

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

74 lines not on this page · raw message

drivers/net/octeontx/octeontx_ethdev.h +15 -15
index 3a02824e3948..c493fa7a03ed 100644

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

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

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

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

96 lines not on this page · raw message

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

64 lines not on this page · raw message

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

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

drivers/net/octeontx2/otx2_ethdev_ops.c +7 -7
index 22a8af5cba45..d5caaa326a5a 100644

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

drivers/net/octeontx2/otx2_ethdev_sec.c +4 -4
index 7bd1ed6da043..4d40184de46d 100644

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

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

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

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

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

drivers/net/octeontx2/otx2_flow_parse.c +2 -2
index 79b92fda8a4a..91267bbb8182 100644

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

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

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

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

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

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

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

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

70 lines not on this page · raw message

drivers/net/octeontx2/otx2_rx.c +2 -2
index 0d85c898bfe7..2c18483b98fd 100644

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

drivers/net/octeontx2/otx2_tx.c +1 -1
index ad704d745b04..135615580bbf 100644

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

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

42 lines not on this page · raw message

drivers/net/octeontx_ep/otx_ep_ethdev.c +3 -3
index 698d22e22685..74dc36a17648 100644

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

drivers/net/octeontx_ep/otx_ep_rxtx.c +3 -3
index aa4dcd33cc79..9338b30672ec 100644

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

drivers/net/pcap/pcap_ethdev.c +6 -6
index d695c5eef7b0..ec29fd6bc53c 100644

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

drivers/net/pfe/pfe_ethdev.c +9 -9
index 4cc002ee8fab..047010e15ed0 100644

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

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

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

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

156 lines not on this page · raw message

drivers/net/qede/qede_filter.c +21 -21

42 lines not on this page · raw message

drivers/net/qede/qede_rxtx.c +1 -1
index c2263787b4ec..d585db8b61e8 100644

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

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

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

drivers/net/ring/rte_eth_ring.c +10 -10
index 0440019e07e1..db10f035dfcb 100644

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

drivers/net/sfc/sfc.c +15 -15
index 431c42f508d0..9c1be10ac93d 100644

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

drivers/net/sfc/sfc_ef100_rx.c +5 -5
index d958fd642fb1..eeb73a7530ef 100644

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

drivers/net/sfc/sfc_ef100_tx.c +10 -10
index e166fda888b1..67980a587fe4 100644

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

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

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

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

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

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

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

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

50 lines not on this page · raw message

drivers/net/sfc/sfc_flow.c +1 -1
index 8096af56739f..be2dfe778a0d 100644

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

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

52 lines not on this page · raw message

drivers/net/sfc/sfc_repr.c +5 -5
index 2500b14cb006..9d88d554c1ba 100644

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

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

50 lines not on this page · raw message

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

50 lines not on this page · raw message

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

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

drivers/net/szedata2/rte_eth_szedata2.c +7 -7
index 3c6a285e3c5e..6a084e3e1b1b 100644

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

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

104 lines not on this page · raw message

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

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

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

102 lines not on this page · raw message

drivers/net/thunderx/nicvf_ethdev.h +20 -20
index 5d38750d6313..cb474e26b81e 100644

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

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

242 lines not on this page · raw message

drivers/net/txgbe/txgbe_ethdev.h +9 -9
index fd65d89ffe7d..8304b68292da 100644

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

drivers/net/txgbe/txgbe_ethdev_vf.c +12 -12
index 43dc0ed39b75..283b52e8f3db 100644

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

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

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

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

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

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

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

drivers/net/txgbe/txgbe_pf.c +17 -17
index a48972b1a381..30be2873307a 100644

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

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

308 lines not on this page · raw message

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

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

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

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

drivers/net/vhost/rte_eth_vhost.c +8 -8
index 86498365e149..17b6a1a1ceec 100644

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

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

124 lines not on this page · raw message

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

72 lines not on this page · raw message

drivers/net/vmxnet3/vmxnet3_ethdev.h +8 -8
index 8950175460f0..ef858ac9512f 100644

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

drivers/net/vmxnet3/vmxnet3_rxtx.c +8 -8
index b01c4c01f9c9..870100fa4f11 100644

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

examples/bbdev_app/main.c +3 -3
index a26076b312e5..ecafc5e4f1a9 100644

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

examples/bond/main.c +7 -7
index fd8fd767c811..1087b0dad125 100644

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

examples/distributor/main.c +6 -6
index 8c4a8feec0c2..c681e237ea46 100644

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

examples/ethtool/ethtool-app/main.c +1 -1
index 1bc675962bf3..cdd9e9b60bd8 100644

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

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

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

examples/eventdev_pipeline/pipeline_worker_generic.c +8 -8
index e26be8edf28f..193a16463449 100644

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

examples/eventdev_pipeline/pipeline_worker_tx.c +6 -6
index 476b147bdfcc..1b841d46ad93 100644

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

examples/flow_classify/flow_classify.c +2 -2
index 8a43f6ac0f92..6185b340600c 100644

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

examples/flow_filtering/main.c +8 -8
index dd8a33d036ee..bfc1949c8428 100644

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

examples/ioat/ioatfwd.c +4 -4
index ccfee585f850..b1aa2767a0af 100644

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

examples/ip_fragmentation/main.c +6 -6
index d51133199c42..4ffe997baf23 100644

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

examples/ip_pipeline/link.c +10 -10
index 9ba02e687adb..0290767af473 100644

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

examples/ip_reassembly/main.c +9 -9
index 06dc42799314..41e35593867b 100644

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

examples/ipsec-secgw/ipsec-secgw.c +16 -16
index a10e330f5003..1c60ac28e317 100644

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

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

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

examples/ipv4_multicast/main.c +3 -3
index 73391ce1a96d..bdcaa3bcd1ca 100644

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

examples/kni/main.c +4 -4
index 69a0afced6cc..d324ee224109 100644

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

examples/l2fwd-crypto/main.c +5 -5
index 6e2016752fca..04a3bdace20c 100644

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

examples/l2fwd-event/l2fwd_common.c +5 -5
index 9040be5ed9b6..cf3d1b8aaf40 100644

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

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

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

examples/l2fwd-jobstats/main.c +4 -4
index 62981663ea78..d8eabe4c869e 100644

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

examples/l2fwd-keepalive/main.c +4 -4
index af59d51b3ec4..78fc48f781fc 100644

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

examples/l2fwd/main.c +4 -4
index 8feb50e0f542..c9d8d4918a34 100644

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

examples/l3fwd-acl/main.c +9 -9
index 410ec94b4131..1fb180723582 100644

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

examples/l3fwd-graph/main.c +7 -7
index 05385807e83e..7f00c65609ed 100644

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

examples/l3fwd-power/main.c +8 -8
index 39624993b081..21c79567b1f7 100644

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

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

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

examples/l3fwd/main.c +9 -9
index 202ef78b6e95..5dd3e4136ea1 100644

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

examples/link_status_interrupt/main.c +5 -5
index ce8ae059d789..551f0524da79 100644

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

examples/multi_process/client_server_mp/mp_server/init.c +2 -2
index be669c2bcc06..a4d7a3e5436a 100644

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

examples/multi_process/symmetric_mp/main.c +7 -7
index a66328ba0caf..b35886a77b00 100644

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

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

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

examples/packet_ordering/main.c +2 -2
index 4f6982bc1289..b01ac60fd196 100644

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

examples/performance-thread/l3fwd-thread/main.c +8 -8
index 74e016e1d20d..3a6a33bda3b0 100644

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

examples/pipeline/obj.c +10 -10
index 4f20dfc4be06..569207a79d62 100644

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

examples/ptpclient/ptpclient.c +5 -5
index 229a277032cb..979d9eb9e9d0 100644

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

examples/qos_meter/main.c +8 -8
index c32d2e12e633..743bae2da50a 100644

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

examples/qos_sched/init.c +3 -3
index 1367569c65db..9b34e4a76b1b 100644

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

examples/rxtx_callbacks/main.c +4 -4
index 6845c396b8d9..1903d8b095a1 100644

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

examples/server_node_efd/server/init.c +4 -4
index a19934dbe0c8..0e5e3b5a9815 100644

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

examples/skeleton/basicfwd.c +2 -2
index fd7207aee758..16435ee3ccc2 100644

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

examples/vhost/main.c +13 -13
index 97218917067e..44376417f83d 100644

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

examples/vm_power_manager/main.c +3 -3
index e19d79a40802..b159291d77ce 100644

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

examples/vmdq/main.c +10 -10
index 85996bf864b7..feee642f594d 100644

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

examples/vmdq_dcb/main.c +20 -20
index be0179fdeaf0..d2218f2cf741 100644

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

lib/ethdev/ethdev_driver.h +18 -18
index b530ac6e320a..dcbffd4265fa 100644

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

lib/ethdev/rte_ethdev.c +89 -92

181 lines not on this page · raw message

lib/ethdev/rte_ethdev.h +648 -387

1,035 lines not on this page · raw message

lib/ethdev/rte_flow.h +1 -1
index db3392bf9759..59d9d9eeb63f 100644

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

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

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

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

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

lib/mbuf/rte_mbuf_core.h +4 -4
index fdaaaf67f2f3..57e871201816 100644

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

lib/mbuf/rte_mbuf_dyn.h +1 -1
index fb03cf1dcf90..29abe8da53cf 100644

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

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

Signature · 1 line
2.31.1

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

#20 lore raw
Quoted 44 lines · Ferruh Yigit

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

All internal components switched to using new names.

Syntax fixed on lines that this patch touches.

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

v2:
* Updated internal components
* Removed deprecation notice

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

v4:
* rebased on latest next-net
* depends on https://patches.dpdk.org/user/todo/dpdk/?series=19744
* Not able to complete scripts to update user code, although some shared by Aman:
https://patches.dpdk.org/project/dpdk/patch/[email protected]/
Sending new version for possible option to get this patch for -rc1 and work for scripts later, before release.

v5:
* rebased on latest next-net

v6:
* rebased on latest next-net

[snip]

Quoted 26 lines
lib/ethdev/rte_ethdev.h +25 -0
+/** Maximum nb. of vlan per mirror rule */
+#define RTE_ETH_MIRROR_MAX_VLANS       64
+#define ETH_MIRROR_MAX_VLANS           RTE_ETH_MIRROR_MAX_VLANS
+
+#define RTE_ETH_MIRROR_VIRTUAL_POOL_UP    0x01  /**< Virtual Pool uplink Mirroring. */
+#define ETH_MIRROR_VIRTUAL_POOL_UP        RTE_ETH_MIRROR_VIRTUAL_POOL_UP
+#define RTE_ETH_MIRROR_UPLINK_PORT        0x02  /**< Uplink Port Mirroring. */
+#define ETH_MIRROR_UPLINK_PORT            RTE_ETH_MIRROR_UPLINK_PORT
+#define RTE_ETH_MIRROR_DOWNLINK_PORT      0x04  /**< Downlink Port Mirroring. */
+#define ETH_MIRROR_DOWNLINK_PORT          RTE_ETH_MIRROR_DOWNLINK_PORT
+#define RTE_ETH_MIRROR_VLAN               0x08  /**< VLAN Mirroring. */
+#define ETH_MIRROR_VLAN                   RTE_ETH_MIRROR_VLAN
+#define RTE_ETH_MIRROR_VIRTUAL_POOL_DOWN  0x10  /**< Virtual Pool downlink Mirroring. */
+#define ETH_MIRROR_VIRTUAL_POOL_DOWN      RTE_ETH_MIRROR_VIRTUAL_POOL_DOWN
+
+/**
+ * A structure used to configure VLAN traffic mirror of an Ethernet port.
+ */
+struct rte_eth_vlan_mirror {
+	uint64_t vlan_mask; /**< mask for valid VLAN ID. */
+	/** VLAN ID list for vlan mirroring. */
+	uint16_t vlan_id[RTE_ETH_MIRROR_MAX_VLANS];
+};
+
+/**

lib/ethdev/rte_ethdev.h struct rte_eth_rss_conf { · line 1030

Quoted 10 lines
lib/ethdev/rte_ethdev.h +10 -0
+ * A structure used to configure traffic mirror of an Ethernet port.
+ */
+struct rte_eth_mirror_conf {
+	uint8_t rule_type;  /**< Mirroring rule type */
+	uint8_t dst_pool;   /**< Destination pool for this mirror rule. */
+	uint64_t pool_mask; /**< Bitmap of pool for pool mirroring */
+	/** VLAN ID setting for VLAN mirroring. */
+	struct rte_eth_vlan_mirror vlan;
+};
+

I guess above is an incorrect merge which returns mirror structures and defines back.

Andrew.

#21 lore raw
Quoted 79 lines · Andrew Rybchenko
Quoted 44 lines · Ferruh Yigit

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

All internal components switched to using new names.

Syntax fixed on lines that this patch touches.

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

v2:
* Updated internal components
* Removed deprecation notice

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

v4:
* rebased on latest next-net
* depends on https://patches.dpdk.org/user/todo/dpdk/?series=19744
* Not able to complete scripts to update user code, although some shared by Aman:
https://patches.dpdk.org/project/dpdk/patch/[email protected]/
Sending new version for possible option to get this patch for -rc1 and work for scripts later, before release.

v5:
* rebased on latest next-net

v6:
* rebased on latest next-net

[snip]

Quoted 31 lines
lib/ethdev/rte_ethdev.h +30 -0
+/** Maximum nb. of vlan per mirror rule */
+#define RTE_ETH_MIRROR_MAX_VLANS       64
+#define ETH_MIRROR_MAX_VLANS           RTE_ETH_MIRROR_MAX_VLANS
+
+#define RTE_ETH_MIRROR_VIRTUAL_POOL_UP    0x01  /**< Virtual Pool uplink Mirroring. */
+#define ETH_MIRROR_VIRTUAL_POOL_UP        RTE_ETH_MIRROR_VIRTUAL_POOL_UP
+#define RTE_ETH_MIRROR_UPLINK_PORT        0x02  /**< Uplink Port Mirroring. */
+#define ETH_MIRROR_UPLINK_PORT            RTE_ETH_MIRROR_UPLINK_PORT
+#define RTE_ETH_MIRROR_DOWNLINK_PORT      0x04  /**< Downlink Port Mirroring. */
+#define ETH_MIRROR_DOWNLINK_PORT          RTE_ETH_MIRROR_DOWNLINK_PORT
+#define RTE_ETH_MIRROR_VLAN               0x08  /**< VLAN Mirroring. */
+#define ETH_MIRROR_VLAN                   RTE_ETH_MIRROR_VLAN
+#define RTE_ETH_MIRROR_VIRTUAL_POOL_DOWN  0x10  /**< Virtual Pool downlink Mirroring. */
+#define ETH_MIRROR_VIRTUAL_POOL_DOWN      RTE_ETH_MIRROR_VIRTUAL_POOL_DOWN
+
+/**
+ * A structure used to configure VLAN traffic mirror of an Ethernet port.
+ */
+struct rte_eth_vlan_mirror {
+	uint64_t vlan_mask; /**< mask for valid VLAN ID. */
+	/** VLAN ID list for vlan mirroring. */
+	uint16_t vlan_id[RTE_ETH_MIRROR_MAX_VLANS];
+};
+
+/**
+ * A structure used to configure traffic mirror of an Ethernet port.
+ */
+struct rte_eth_mirror_conf {
+	uint8_t rule_type;  /**< Mirroring rule type */
+	uint8_t dst_pool;   /**< Destination pool for this mirror rule. */
Quoted 9 lines

lib/ethdev/rte_ethdev.h struct rte_eth_rss_conf { · line 1030

Quoted 5 lines
lib/ethdev/rte_ethdev.h +5 -0
+	uint64_t pool_mask; /**< Bitmap of pool for pool mirroring */
+	/** VLAN ID setting for VLAN mirroring. */
+	struct rte_eth_vlan_mirror vlan;
+};
+

I guess above is an incorrect merge which returns mirror structures and defines back.

Yes it it, I will fix, thanks.

#23 lore raw

PATCH v7 1/1 ethdev: add namespace

In reply to Ferruh Yigit

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

All internal components switched to using new names.

Syntax fixed on lines that this patch touches.

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

v2:
* Updated internal components
* Removed deprecation notice

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

v4:
* rebased on latest next-net
* depends on https://patches.dpdk.org/user/todo/dpdk/?series=19744
* Not able to complete scripts to update user code, although some shared by Aman:
https://patches.dpdk.org/project/dpdk/patch/[email protected]/
Sending new version for possible option to get this patch for -rc1 and work for scripts later, before release.

v5:
* rebased on latest next-net

v6:
* rebased on latest next-net

v7:
* Remove mirror structures which are rebase residue
* 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                       | 986 +++++++++++-------
 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, 6601 insertions(+), 6385 deletions(-)
app/proc-info/main.c +4 -4
index bfe5ce825b70..a4271047e693 100644
@@ -757,11 +757,11 @@ show_port(void)
 		}
 
 		ret = rte_eth_dev_flow_ctrl_get(i, &fc_conf);
-		if (ret == 0 && fc_conf.mode != RTE_FC_NONE)  {
+		if (ret == 0 && fc_conf.mode != RTE_ETH_FC_NONE)  {
 			printf("\t  -- flow control mode %s%s high %u low %u pause %u%s%s\n",
-			       fc_conf.mode == RTE_FC_RX_PAUSE ? "rx " :
-			       fc_conf.mode == RTE_FC_TX_PAUSE ? "tx " :
-			       fc_conf.mode == RTE_FC_FULL ? "full" : "???",
+			       fc_conf.mode == RTE_ETH_FC_RX_PAUSE ? "rx " :
+			       fc_conf.mode == RTE_ETH_FC_TX_PAUSE ? "tx " :
+			       fc_conf.mode == RTE_ETH_FC_FULL ? "full" : "???",
 			       fc_conf.autoneg ? " auto" : "",
 			       fc_conf.high_water,
 			       fc_conf.low_water,
app/test-eventdev/test_perf_common.c +2 -2
index 660d5a0364b6..31d1b0e14653 100644
@@ -668,13 +668,13 @@ perf_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 	struct test_perf *t = evt_test_priv(test);
 	struct rte_eth_conf port_conf = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_RSS,
+			.mq_mode = RTE_ETH_MQ_RX_RSS,
 			.split_hdr_size = 0,
 		},
 		.rx_adv_conf = {
 			.rss_conf = {
 				.rss_key = NULL,
-				.rss_hf = ETH_RSS_IP,
+				.rss_hf = RTE_ETH_RSS_IP,
 			},
 		},
 	};
app/test-eventdev/test_pipeline_common.c +5 -5
index 2775e72c580d..d202091077a6 100644
@@ -176,12 +176,12 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 	struct rte_eth_rxconf rx_conf;
 	struct rte_eth_conf port_conf = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_RSS,
+			.mq_mode = RTE_ETH_MQ_RX_RSS,
 		},
 		.rx_adv_conf = {
 			.rss_conf = {
 				.rss_key = NULL,
-				.rss_hf = ETH_RSS_IP,
+				.rss_hf = RTE_ETH_RSS_IP,
 			},
 		},
 	};
@@ -223,7 +223,7 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 
 		if (!(caps & RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT))
 			local_port_conf.rxmode.offloads |=
-				DEV_RX_OFFLOAD_RSS_HASH;
+				RTE_ETH_RX_OFFLOAD_RSS_HASH;
 
 		ret = rte_eth_dev_info_get(i, &dev_info);
 		if (ret != 0) {
@@ -233,9 +233,9 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)
 		}
 
 		/* Enable mbuf fast free if PMD has the capability. */
-		if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_MBUF_FAST_FREE)
+		if (dev_info.tx_offload_capa & RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE)
 			local_port_conf.txmode.offloads |=
-				DEV_TX_OFFLOAD_MBUF_FAST_FREE;
+				RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE;
 
 		rx_conf = dev_info.default_rxconf;
 		rx_conf.offloads = port_conf.rxmode.offloads;
app/test-flow-perf/config.h +1 -1
index a14d4e05e185..4249b6175b82 100644
@@ -5,7 +5,7 @@
 #define FLOW_ITEM_MASK(_x) (UINT64_C(1) << _x)
 #define FLOW_ACTION_MASK(_x) (UINT64_C(1) << _x)
 #define FLOW_ATTR_MASK(_x) (UINT64_C(1) << _x)
-#define GET_RSS_HF() (ETH_RSS_IP)
+#define GET_RSS_HF() (RTE_ETH_RSS_IP)
 
 /* Configuration */
 #define RXQ_NUM 4
app/test-pipeline/init.c +4 -4
index fe37d63730c6..c73801904103 100644
@@ -70,16 +70,16 @@ struct app_params app = {
 static struct rte_eth_conf port_conf = {
 	.rxmode = {
 		.split_hdr_size = 0,
-		.offloads = DEV_RX_OFFLOAD_CHECKSUM,
+		.offloads = RTE_ETH_RX_OFFLOAD_CHECKSUM,
 	},
 	.rx_adv_conf = {
 		.rss_conf = {
 			.rss_key = NULL,
-			.rss_hf = ETH_RSS_IP,
+			.rss_hf = RTE_ETH_RSS_IP,
 		},
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 };
 
@@ -178,7 +178,7 @@ app_ports_check_link(void)
 		RTE_LOG(INFO, USER1, "Port %u %s\n",
 			port,
 			link_status_text);
-		if (link.link_status == ETH_LINK_DOWN)
+		if (link.link_status == RTE_ETH_LINK_DOWN)
 			all_ports_up = 0;
 	}
 
app/test-pmd/cmdline.c +143 -143

611 lines not on this page · raw message

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

342 lines not on this page · raw message

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

128 lines not on this page · raw message

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

154 lines not on this page · raw message

app/test-pmd/testpmd.h +1 -1
index 071e4e7d63a3..669ce1e87d79 100644
@@ -493,7 +493,7 @@ extern lcoreid_t bitrate_lcore_id;
 extern uint8_t bitrate_enabled;
 #endif
 
-extern struct rte_fdir_conf fdir_conf;
+extern struct rte_eth_fdir_conf fdir_conf;
 
 extern uint32_t max_rx_pkt_len;
 
app/test-pmd/txonly.c +3 -3
index e45f8840c91c..9eb7992815e8 100644
@@ -354,11 +354,11 @@ pkt_burst_transmit(struct fwd_stream *fs)
 	tx_offloads = txp->dev_conf.txmode.offloads;
 	vlan_tci = txp->tx_vlan_id;
 	vlan_tci_outer = txp->tx_vlan_id_outer;
-	if (tx_offloads	& DEV_TX_OFFLOAD_VLAN_INSERT)
+	if (tx_offloads	& RTE_ETH_TX_OFFLOAD_VLAN_INSERT)
 		ol_flags = PKT_TX_VLAN_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_QINQ_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_QINQ_INSERT)
 		ol_flags |= PKT_TX_QINQ_PKT;
-	if (tx_offloads & DEV_TX_OFFLOAD_MACSEC_INSERT)
+	if (tx_offloads & RTE_ETH_TX_OFFLOAD_MACSEC_INSERT)
 		ol_flags |= PKT_TX_MACSEC;
 
 	/*
app/test/test_ethdev_link.c +34 -34

116 lines not on this page · raw message

app/test/test_event_eth_rx_adapter.c +2 -2
index add4d8a67821..a09253e91814 100644
@@ -103,7 +103,7 @@ port_init_rx_intr(uint16_t port, struct rte_mempool *mp)
 {
 	static const struct rte_eth_conf port_conf_default = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_NONE,
+			.mq_mode = RTE_ETH_MQ_RX_NONE,
 		},
 		.intr_conf = {
 			.rxq = 1,
@@ -118,7 +118,7 @@ port_init(uint16_t port, struct rte_mempool *mp)
 {
 	static const struct rte_eth_conf port_conf_default = {
 		.rxmode = {
-			.mq_mode = ETH_MQ_RX_NONE,
+			.mq_mode = RTE_ETH_MQ_RX_NONE,
 		},
 	};
 
app/test/test_kni.c +1 -1
index 96733554b6c4..40ab0d5c4ca4 100644
@@ -74,7 +74,7 @@ static const struct rte_eth_txconf tx_conf = {
 
 static const struct rte_eth_conf port_conf = {
 	.txmode = {
-		.mq_mode = ETH_DCB_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 };
 
app/test/test_link_bonding.c +2 -2
index 5388d18125a6..8a9ef851789f 100644
@@ -134,11 +134,11 @@ static uint16_t vlan_id = 0x100;
 
 static struct rte_eth_conf default_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 0,
 };
app/test/test_link_bonding_mode4.c +2 -2
index 189d2430f27e..351129de2f9b 100644
@@ -107,11 +107,11 @@ static struct link_bonding_unittest_params test_params  = {
 
 static struct rte_eth_conf default_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 0,
 };
app/test/test_link_bonding_rssconf.c +14 -14
index e7bb0497b663..f9eae9397386 100644
@@ -52,7 +52,7 @@ struct slave_conf {
 
 	struct rte_eth_rss_conf rss_conf;
 	uint8_t rss_key[40];
-	struct rte_eth_rss_reta_entry64 reta_conf[512 / RTE_RETA_GROUP_SIZE];
+	struct rte_eth_rss_reta_entry64 reta_conf[512 / RTE_ETH_RETA_GROUP_SIZE];
 
 	uint8_t is_slave;
 	struct rte_ring *rxtx_queue[RXTX_QUEUE_COUNT];
@@ -61,7 +61,7 @@ struct slave_conf {
 struct link_bonding_rssconf_unittest_params {
 	uint8_t bond_port_id;
 	struct rte_eth_dev_info bond_dev_info;
-	struct rte_eth_rss_reta_entry64 bond_reta_conf[512 / RTE_RETA_GROUP_SIZE];
+	struct rte_eth_rss_reta_entry64 bond_reta_conf[512 / RTE_ETH_RETA_GROUP_SIZE];
 	struct slave_conf slave_ports[SLAVE_COUNT];
 
 	struct rte_mempool *mbuf_pool;
@@ -80,27 +80,27 @@ static struct link_bonding_rssconf_unittest_params test_params  = {
  */
 static struct rte_eth_conf default_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 0,
 };
 
 static struct rte_eth_conf rss_pmd_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_RSS,
+		.mq_mode = RTE_ETH_MQ_RX_RSS,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.rx_adv_conf = {
 		.rss_conf = {
 			.rss_key = NULL,
-			.rss_hf = ETH_RSS_IPV6,
+			.rss_hf = RTE_ETH_RSS_IPV6,
 		},
 	},
 	.lpbk_mode = 0,
@@ -207,13 +207,13 @@ bond_slaves(void)
 static int
 reta_set(uint16_t port_id, uint8_t value, int reta_size)
 {
-	struct rte_eth_rss_reta_entry64 reta_conf[512/RTE_RETA_GROUP_SIZE];
+	struct rte_eth_rss_reta_entry64 reta_conf[512/RTE_ETH_RETA_GROUP_SIZE];
 	int i, j;
 
-	for (i = 0; i < reta_size / RTE_RETA_GROUP_SIZE; i++) {
+	for (i = 0; i < reta_size / RTE_ETH_RETA_GROUP_SIZE; i++) {
 		/* select all fields to set */
 		reta_conf[i].mask = ~0LL;
-		for (j = 0; j < RTE_RETA_GROUP_SIZE; j++)
+		for (j = 0; j < RTE_ETH_RETA_GROUP_SIZE; j++)
 			reta_conf[i].reta[j] = value;
 	}
 
@@ -232,8 +232,8 @@ reta_check_synced(struct slave_conf *port)
 	for (i = 0; i < test_params.bond_dev_info.reta_size;
 			i++) {
 
-		int index = i / RTE_RETA_GROUP_SIZE;
-		int shift = i % RTE_RETA_GROUP_SIZE;
+		int index = i / RTE_ETH_RETA_GROUP_SIZE;
+		int shift = i % RTE_ETH_RETA_GROUP_SIZE;
 
 		if (port->reta_conf[index].reta[shift] !=
 				test_params.bond_reta_conf[index].reta[shift])
@@ -251,7 +251,7 @@ static int
 bond_reta_fetch(void) {
 	unsigned j;
 
-	for (j = 0; j < test_params.bond_dev_info.reta_size / RTE_RETA_GROUP_SIZE;
+	for (j = 0; j < test_params.bond_dev_info.reta_size / RTE_ETH_RETA_GROUP_SIZE;
 			j++)
 		test_params.bond_reta_conf[j].mask = ~0LL;
 
@@ -268,7 +268,7 @@ static int
 slave_reta_fetch(struct slave_conf *port) {
 	unsigned j;
 
-	for (j = 0; j < port->dev_info.reta_size / RTE_RETA_GROUP_SIZE; j++)
+	for (j = 0; j < port->dev_info.reta_size / RTE_ETH_RETA_GROUP_SIZE; j++)
 		port->reta_conf[j].mask = ~0LL;
 
 	TEST_ASSERT_SUCCESS(rte_eth_dev_rss_reta_query(port->port_id,
app/test/test_pmd_perf.c +6 -6
index a3b4f52c65e6..1df86ce080e5 100644
@@ -62,11 +62,11 @@ static struct rte_ether_addr ports_eth_addr[RTE_MAX_ETHPORTS];
 
 static struct rte_eth_conf port_conf = {
 	.rxmode = {
-		.mq_mode = ETH_MQ_RX_NONE,
+		.mq_mode = RTE_ETH_MQ_RX_NONE,
 		.split_hdr_size = 0,
 	},
 	.txmode = {
-		.mq_mode = ETH_MQ_TX_NONE,
+		.mq_mode = RTE_ETH_MQ_TX_NONE,
 	},
 	.lpbk_mode = 1,  /* enable loopback */
 };
@@ -155,7 +155,7 @@ check_all_ports_link_status(uint16_t port_num, uint32_t port_mask)
 				continue;
 			}
 			/* clear all_ports_up flag if any link down */
-			if (link.link_status == ETH_LINK_DOWN) {
+			if (link.link_status == RTE_ETH_LINK_DOWN) {
 				all_ports_up = 0;
 				break;
 			}
@@ -822,7 +822,7 @@ test_set_rxtx_conf(cmdline_fixed_string_t mode)
 		/* bulk alloc rx, full-featured tx */
 		tx_conf.tx_rs_thresh = 32;
 		tx_conf.tx_free_thresh = 32;
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_CHECKSUM;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_CHECKSUM;
 		return 0;
 	} else if (!strcmp(mode, "hybrid")) {
 		/* bulk alloc rx, vector tx
@@ -831,13 +831,13 @@ test_set_rxtx_conf(cmdline_fixed_string_t mode)
 		 */
 		tx_conf.tx_rs_thresh = 32;
 		tx_conf.tx_free_thresh = 32;
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_CHECKSUM;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_CHECKSUM;
 		return 0;
 	} else if (!strcmp(mode, "full")) {
 		/* full feature rx,tx pair */
 		tx_conf.tx_rs_thresh = 32;
 		tx_conf.tx_free_thresh = 32;
-		port_conf.rxmode.offloads |= DEV_RX_OFFLOAD_SCATTER;
+		port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_SCATTER;
 		return 0;
 	}
 
app/test/virtual_pmd.c +5 -5
index 7e15b47eb0fb..d9f2e4f66bde 100644
@@ -53,7 +53,7 @@ static int  virtual_ethdev_stop(struct rte_eth_dev *eth_dev __rte_unused)
 	void *pkt = NULL;
 	struct virtual_ethdev_private *prv = eth_dev->data->dev_private;
 
-	eth_dev->data->dev_link.link_status = ETH_LINK_DOWN;
+	eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 	eth_dev->data->dev_started = 0;
 	while (rte_ring_dequeue(prv->rx_queue, &pkt) != -ENOENT)
 		rte_pktmbuf_free(pkt);
@@ -168,7 +168,7 @@ virtual_ethdev_link_update_success(struct rte_eth_dev *bonded_eth_dev,
 		int wait_to_complete __rte_unused)
 {
 	if (!bonded_eth_dev->data->dev_started)
-		bonded_eth_dev->data->dev_link.link_status = ETH_LINK_DOWN;
+		bonded_eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
 
 	return 0;
 }
@@ -562,9 +562,9 @@ virtual_ethdev_create(const char *name, struct rte_ether_addr *mac_addr,
 	eth_dev->data->nb_rx_queues = (uint16_t)1;
 	eth_dev->data->nb_tx_queues = (uint16_t)1;
 
-	eth_dev->data->dev_link.link_status = ETH_LINK_DOWN;
-	eth_dev->data->dev_link.link_speed = ETH_SPEED_NUM_10G;
-	eth_dev->data->dev_link.link_duplex = ETH_LINK_FULL_DUPLEX;
+	eth_dev->data->dev_link.link_status = RTE_ETH_LINK_DOWN;
+	eth_dev->data->dev_link.link_speed = RTE_ETH_SPEED_NUM_10G;
+	eth_dev->data->dev_link.link_duplex = RTE_ETH_LINK_FULL_DUPLEX;
 
 	eth_dev->data->mac_addrs = rte_zmalloc(name, RTE_ETHER_ADDR_LEN, 0);
 	if (eth_dev->data->mac_addrs == NULL)
doc/guides/eventdevs/cnxk.rst +1 -1
index 53560d3830d7..1c0ea988f239 100644
@@ -42,7 +42,7 @@ Features of the OCTEON cnxk SSO PMD are:
 - HW managed packets enqueued from ethdev to eventdev exposed through event eth
   RX adapter.
 - N:1 ethernet device Rx queue to Event queue mapping.
-- Lockfree Tx from event eth Tx adapter using ``DEV_TX_OFFLOAD_MT_LOCKFREE``
+- Lockfree Tx from event eth Tx adapter using ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE``
   capability while maintaining receive packet order.
 - Full Rx/Tx offload support defined through ethdev queue configuration.
 - HW managed event vectorization on CN10K for packets enqueued from ethdev to
doc/guides/eventdevs/octeontx2.rst +1 -1
index 11fbebfcd243..0fa57abfa3e0 100644
@@ -35,7 +35,7 @@ Features of the OCTEON TX2 SSO PMD are:
 - HW managed packets enqueued from ethdev to eventdev exposed through event eth
   RX adapter.
 - N:1 ethernet device Rx queue to Event queue mapping.
-- Lockfree Tx from event eth Tx adapter using ``DEV_TX_OFFLOAD_MT_LOCKFREE``
+- Lockfree Tx from event eth Tx adapter using ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE``
   capability while maintaining receive packet order.
 - Full Rx/Tx offload support defined through ethdev queue config.
 
doc/guides/nics/af_packet.rst +1 -1
index bdd6e7263c85..54feffdef4bd 100644
@@ -70,5 +70,5 @@ Features and Limitations
 ------------------------
 
 The PMD will re-insert the VLAN tag transparently to the packet if the kernel
-strips it, as long as the ``DEV_RX_OFFLOAD_VLAN_STRIP`` is not enabled by the
+strips it, as long as the ``RTE_ETH_RX_OFFLOAD_VLAN_STRIP`` is not enabled by the
 application.
doc/guides/nics/bnxt.rst +12 -12
index aa6032889a55..b3d10f30dc77 100644
@@ -877,21 +877,21 @@ processing. This improved performance is derived from a number of optimizations:
     * TX: only the following reduced set of transmit offloads is supported in
       vector mode::
 
-       DEV_TX_OFFLOAD_MBUF_FAST_FREE
+       RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE
 
     * RX: only the following reduced set of receive offloads is supported in
       vector mode (note that jumbo MTU is allowed only when the MTU setting
-      does not require `DEV_RX_OFFLOAD_SCATTER` to be enabled)::
-
-       DEV_RX_OFFLOAD_VLAN_STRIP
-       DEV_RX_OFFLOAD_KEEP_CRC
-       DEV_RX_OFFLOAD_IPV4_CKSUM
-       DEV_RX_OFFLOAD_UDP_CKSUM
-       DEV_RX_OFFLOAD_TCP_CKSUM
-       DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM
-       DEV_RX_OFFLOAD_OUTER_UDP_CKSUM
-       DEV_RX_OFFLOAD_RSS_HASH
-       DEV_RX_OFFLOAD_VLAN_FILTER
+      does not require `RTE_ETH_RX_OFFLOAD_SCATTER` to be enabled)::
+
+       RTE_ETH_RX_OFFLOAD_VLAN_STRIP
+       RTE_ETH_RX_OFFLOAD_KEEP_CRC
+       RTE_ETH_RX_OFFLOAD_IPV4_CKSUM
+       RTE_ETH_RX_OFFLOAD_UDP_CKSUM
+       RTE_ETH_RX_OFFLOAD_TCP_CKSUM
+       RTE_ETH_RX_OFFLOAD_OUTER_IPV4_CKSUM
+       RTE_ETH_RX_OFFLOAD_OUTER_UDP_CKSUM
+       RTE_ETH_RX_OFFLOAD_RSS_HASH
+       RTE_ETH_RX_OFFLOAD_VLAN_FILTER
 
 The BNXT Vector PMD is enabled in DPDK builds by default. The decision to enable
 vector processing is made at run-time when the port is started; if no transmit
doc/guides/nics/enic.rst +1 -1
index 91bdcd065a95..0209730b904a 100644
@@ -432,7 +432,7 @@ Limitations
 .. code-block:: console
 
      vlan_offload = rte_eth_dev_get_vlan_offload(port);
-     vlan_offload |= ETH_VLAN_STRIP_OFFLOAD;
+     vlan_offload |= RTE_ETH_VLAN_STRIP_OFFLOAD;
      rte_eth_dev_set_vlan_offload(port, vlan_offload);
 
 Another alternative is modify the adapter's ingress VLAN rewrite mode so that
doc/guides/nics/features.rst +57 -57

303 lines not on this page · raw message

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

174 lines not on this page · raw message

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

86 lines not on this page · raw message

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

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

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

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

drivers/net/axgbe/axgbe_rxtx.c +3 -3
index c8618d2d6daa..aa2c27ebaa49 100644

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

drivers/net/bnx2x/bnx2x_ethdev.c +6 -6
index 567ea2382864..78fc717ec44a 100644

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

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

62 lines not on this page · raw message

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

172 lines not on this page · raw message

drivers/net/bnxt/bnxt_flow.c +3 -3
index b2ebb5634e3a..ced697a73980 100644

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

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

112 lines not on this page · raw message

drivers/net/bnxt/bnxt_reps.c +1 -1
index b7e88e013a84..1c07db3ca9c5 100644

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

drivers/net/bnxt/bnxt_ring.c +2 -2
index 08cefa1baaef..7940d489a102 100644

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

drivers/net/bnxt/bnxt_rxq.c +14 -14
index 38ec4aa14b77..1456f8b54ffa 100644

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

drivers/net/bnxt/bnxt_rxr.c +2 -2
index aeacc60a0127..eb555c4545e6 100644

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

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

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

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

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

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

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

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

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

drivers/net/bnxt/bnxt_txr.c +2 -2
index 9e45ddd7a82e..f2fcaf53021c 100644

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

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

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

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

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

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

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

drivers/net/bonding/rte_eth_bond_8023ad.c +8 -8
index 2029955c1092..ca50583d62d8 100644

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

drivers/net/bonding/rte_eth_bond_api.c +3 -3
index 5140ef14c2ee..84943cffe2bb 100644

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

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

50 lines not on this page · raw message

drivers/net/cnxk/cn10k_ethdev.c +21 -21

42 lines not on this page · raw message

drivers/net/cnxk/cn10k_rte_flow.c +1 -1
index 8c87452934eb..dff4c7746cf5 100644

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

drivers/net/cnxk/cn10k_rx.c +2 -2
index d6af54b56de6..5d603514c045 100644

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

drivers/net/cnxk/cn10k_tx.c +2 -2
index eb962ef08cab..5e6c5ee11188 100644

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

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

60 lines not on this page · raw message

drivers/net/cnxk/cn9k_rx.c +2 -2
index 5c4387e74e0b..8d504c4a6d92 100644

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

drivers/net/cnxk/cn9k_tx.c +2 -2
index e5691a2a7e16..f3f19fed9780 100644

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

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

112 lines not on this page · raw message

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

49 lines not on this page · raw message

drivers/net/cnxk/cnxk_ethdev_devargs.c +3 -3
index c0b949e21ab0..e068f553495c 100644

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

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

106 lines not on this page · raw message

drivers/net/cnxk/cnxk_link.c +7 -7
index 6a7080167598..f10a502826c6 100644

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

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

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

drivers/net/cnxk/cnxk_rte_flow.c +1 -1
index dfc33ba8654a..b08d7c34faa9 100644

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

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

46 lines not on this page · raw message

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

42 lines not on this page · raw message

drivers/net/cxgbe/cxgbe_main.c +6 -6
index 91d6bb9bbcb0..f1ac32270961 100644

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

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

180 lines not on this page · raw message

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

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

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

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

drivers/net/dpaa2/base/dpaa2_hw_dpni.c +23 -24

47 lines not on this page · raw message

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

138 lines not on this page · raw message

drivers/net/dpaa2/dpaa2_ethdev.h +11 -11
index fdc62ec30d22..c5e9267bf04d 100644

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

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

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

drivers/net/e1000/e1000_ethdev.h +9 -9
index 7d5d6377859a..a548ae2ccb2c 100644

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

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

64 lines not on this page · raw message

drivers/net/e1000/em_rxtx.c +19 -19
index 344149c19147..648b04154c5b 100644

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

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

158 lines not on this page · raw message

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

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

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

116 lines not on this page · raw message

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

70 lines not on this page · raw message

drivers/net/ena/ena_ethdev.h +2 -2
index 4f4142ed12d0..865e1241e0ce 100644

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

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

74 lines not on this page · raw message

drivers/net/enetc/enetc_ethdev.c +15 -15
index 1b567f01eae0..7cdb8ce463ed 100644

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

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

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

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

88 lines not on this page · raw message

drivers/net/enic/enic_main.c +20 -20
index dfc7f5d1f94f..21b1fffb14f0 100644

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

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

50 lines not on this page · raw message

drivers/net/failsafe/failsafe.c +4 -4
index b87c036e6014..82d595b1d1a0 100644

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

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

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

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

78 lines not on this page · raw message

drivers/net/fm10k/fm10k.h +2 -2
index 17c73c4dc5ae..b7522a47a80b 100644

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

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

146 lines not on this page · raw message

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

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

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

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

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

136 lines not on this page · raw message

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

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

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

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

drivers/net/hns3/hns3_dcb.c +7 -7
index 8753c340e790..3d0159d78778 100644

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

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

352 lines not on this page · raw message

drivers/net/hns3/hns3_ethdev.h +6 -6
index fa08fadc9497..eb3470535363 100644

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

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

100 lines not on this page · raw message

drivers/net/hns3/hns3_flow.c +3 -3
index 38a2ee58a651..da6918fddda3 100644

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

drivers/net/hns3/hns3_ptp.c +1 -1
index 5dfe68cc4dbd..9a829d7011ad 100644

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

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

108 lines not on this page · raw message

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

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

drivers/net/hns3/hns3_rxtx.c +15 -15
index 602548a4f25b..920ee8ceeab9 100644

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

drivers/net/hns3/hns3_rxtx.h +1 -1
index c8229e9076b5..dfea5d5b4c2f 100644

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

drivers/net/hns3/hns3_rxtx_vec.c +5 -5
index ff434d2d33ed..455110361aac 100644

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

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

272 lines not on this page · raw message

drivers/net/i40e/i40e_ethdev.h +12 -12
index 1d57b9617e66..d8042abbd9be 100644

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

drivers/net/i40e/i40e_flow.c +16 -16
index e41a84f1d737..9acaa1875105 100644

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

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

158 lines not on this page · raw message

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

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

drivers/net/i40e/i40e_rxtx.c +4 -4
index 554b1142c136..a13bb81115f4 100644

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

drivers/net/i40e/i40e_rxtx.h +2 -2
index 2301e6301d7d..5e6eecc50116 100644

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

drivers/net/i40e/i40e_rxtx_vec_avx512.c +1 -1
index 4ffe030fcb64..7abc0821d119 100644

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

drivers/net/i40e/i40e_rxtx_vec_common.h +4 -4
index f52e3c567558..f9a7f4655050 100644

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

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

48 lines not on this page · raw message

drivers/net/iavf/iavf.h +12 -12
index 34bfa9af4734..12f541f53926 100644

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

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

178 lines not on this page · raw message

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

320 lines not on this page · raw message

drivers/net/iavf/iavf_rxtx.c +1 -1
index 88bbd40c1027..ac4db117f5cd 100644

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

drivers/net/iavf/iavf_rxtx.h +12 -12
index f4ae2fd6e123..2d7f6b1b2dca 100644

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

drivers/net/iavf/iavf_rxtx_vec_avx2.c +2 -2
index 72a4fcab04a5..b47c51b8ebe4 100644

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

drivers/net/iavf/iavf_rxtx_vec_avx512.c +3 -3
index 12375d3d80bd..b8f2f69f12fc 100644

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

drivers/net/iavf/iavf_rxtx_vec_sse.c +1 -1
index edb54991e298..1de43b9b8ee2 100644

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

drivers/net/ice/ice_dcf.c +1 -1
index c9c01a14e349..7b7df5eebb6d 100644

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

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

86 lines not on this page · raw message

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

56 lines not on this page · raw message

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

180 lines not on this page · raw message

drivers/net/ice/ice_ethdev.h +13 -13
index 1cd3753ccc5f..599e0028f7e8 100644

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

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

290 lines not on this page · raw message

drivers/net/ice/ice_rxtx.c +8 -8
index ff362c21d9f5..8406240d7209 100644

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

drivers/net/ice/ice_rxtx_vec_avx2.c +1 -1
index 490693bff218..86955539bea8 100644

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

drivers/net/ice/ice_rxtx_vec_avx512.c +2 -2
index 7efe7b50a206..af23f6a34e58 100644

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

drivers/net/ice/ice_rxtx_vec_common.h +14 -14
index f0f99265857e..b1d975b31a5a 100644

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

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

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

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

138 lines not on this page · raw message

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

54 lines not on this page · raw message

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

48 lines not on this page · raw message

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

138 lines not on this page · raw message

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

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

drivers/net/ionic/ionic_lif.c +18 -18
index a1f9ce2d81cb..5e8fdf3893ad 100644

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

drivers/net/ionic/ionic_rxtx.c +5 -5
index 4d16a39c6b6d..e3df7c56debe 100644

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

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

64 lines not on this page · raw message

drivers/net/ixgbe/ixgbe_ethdev.c +142 -143

285 lines not on this page · raw message

drivers/net/ixgbe/ixgbe_ethdev.h +9 -9
index 950fb2d2450c..876b670f2682 100644

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

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

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

drivers/net/ixgbe/ixgbe_flow.c +1 -1
index 27322ab9038a..bdc9d4796c02 100644

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

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

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

drivers/net/ixgbe/ixgbe_pf.c +17 -17
index 295e5a39b245..9f1bd0a62ba4 100644

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

drivers/net/ixgbe/ixgbe_rxtx.c +124 -125

249 lines not on this page · raw message

drivers/net/ixgbe/ixgbe_rxtx.h +2 -2
index a1764f2b08af..668a5b9814f6 100644

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

drivers/net/ixgbe/ixgbe_rxtx_vec_common.h +1 -1
index 005e60668a8b..cd34d4098785 100644

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

drivers/net/ixgbe/ixgbe_tm.c +8 -8
index ae03ea6e9db3..ac8976062fa7 100644

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

drivers/net/ixgbe/ixgbe_vf_representor.c +8 -8
index 9fa75984fb31..bd528ff346c7 100644

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

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

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

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

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

drivers/net/kni/rte_eth_kni.c +4 -4
index cb9f7c8e8200..c428caf44189 100644

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

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

114 lines not on this page · raw message

drivers/net/memif/memif_socket.c +1 -1
index 364e818d65c1..8533e39f6957 100644

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

drivers/net/memif/rte_eth_memif.c +8 -8
index 980150293e86..9deb7a5f1360 100644

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

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

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

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

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

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

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

drivers/net/mlx4/mlx4_rxq.c +9 -9
index ee2d2b75e59a..781ee256df71 100644

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

drivers/net/mlx4/mlx4_txq.c +12 -12
index 7d8c4f2a2223..0db2e55befd3 100644

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

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

54 lines not on this page · raw message

drivers/net/mlx5/linux/mlx5_os.c +3 -3
index 111a7597317a..23d9e0a476ac 100644

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

drivers/net/mlx5/mlx5.c +2 -2
index 7263d354b180..3a9b716e438c 100644

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

drivers/net/mlx5/mlx5.h +1 -1
index 42cacd0bbe3b..52f03ada2ced 100644

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

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

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

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

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

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

54 lines not on this page · raw message

drivers/net/mlx5/mlx5_flow.h +6 -6
index f1a83d537d0c..4a16f30fb7a6 100644

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

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

44 lines not on this page · raw message

drivers/net/mlx5/mlx5_flow_verbs.c +2 -2
index 892abcb65779..f9010a674d7f 100644

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

drivers/net/mlx5/mlx5_rss.c +5 -5
index c32129cdc2b8..a4f690039e24 100644

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

drivers/net/mlx5/mlx5_rxq.c +20 -20
index 60673d014d02..14b9991c5fa8 100644

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

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

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

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

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

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

58 lines not on this page · raw message

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

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

drivers/net/mlx5/windows/mlx5_os.c +2 -2
index 31c4d3276053..9a9069da7572 100644

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

drivers/net/mvneta/mvneta_ethdev.c +16 -16
index 2a0288087357..10fe6d828ccd 100644

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

drivers/net/mvneta/mvneta_ethdev.h +5 -5
index 126a9a0c11b9..ccb87d518d83 100644

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

drivers/net/mvneta/mvneta_rxtx.c +1 -1
index 9836bb071a82..62d8aa586dae 100644

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

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

112 lines not on this page · raw message

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

70 lines not on this page · raw message

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

50 lines not on this page · raw message

drivers/net/nfb/nfb_ethdev.c +10 -10
index 99d93ebf4667..3c39937816a4 100644

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

drivers/net/nfb/nfb_rx.c +1 -1
index 3ebb332ae46c..f76e2ba64621 100644

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

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

122 lines not on this page · raw message

drivers/net/nfp/nfp_ethdev.c +1 -1
index 1169ea77a8c7..e08e594b04fe 100644

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

drivers/net/nfp/nfp_ethdev_vf.c +1 -1
index 62cb3536e0c9..817fe64dbceb 100644

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

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

50 lines not on this page · raw message

drivers/net/null/rte_eth_null.c +14 -14
index 25b9e5b1ce1b..ca03469d0e6d 100644

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

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

74 lines not on this page · raw message

drivers/net/octeontx/octeontx_ethdev.h +15 -15
index 3a02824e3948..c493fa7a03ed 100644

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

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

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

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

96 lines not on this page · raw message

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

64 lines not on this page · raw message

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

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

drivers/net/octeontx2/otx2_ethdev_ops.c +7 -7
index 22a8af5cba45..d5caaa326a5a 100644

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

drivers/net/octeontx2/otx2_ethdev_sec.c +4 -4
index 7bd1ed6da043..4d40184de46d 100644

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

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

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

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

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

drivers/net/octeontx2/otx2_flow_parse.c +2 -2
index 79b92fda8a4a..91267bbb8182 100644

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

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

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

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

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

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

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

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

70 lines not on this page · raw message

drivers/net/octeontx2/otx2_rx.c +2 -2
index 0d85c898bfe7..2c18483b98fd 100644

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

drivers/net/octeontx2/otx2_tx.c +1 -1
index ad704d745b04..135615580bbf 100644

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

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

42 lines not on this page · raw message

drivers/net/octeontx_ep/otx_ep_ethdev.c +3 -3
index 698d22e22685..74dc36a17648 100644

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

drivers/net/octeontx_ep/otx_ep_rxtx.c +3 -3
index aa4dcd33cc79..9338b30672ec 100644

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

drivers/net/pcap/pcap_ethdev.c +6 -6
index d695c5eef7b0..ec29fd6bc53c 100644

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

drivers/net/pfe/pfe_ethdev.c +9 -9
index 4cc002ee8fab..047010e15ed0 100644

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

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

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

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

156 lines not on this page · raw message

drivers/net/qede/qede_filter.c +21 -21

42 lines not on this page · raw message

drivers/net/qede/qede_rxtx.c +1 -1
index c2263787b4ec..d585db8b61e8 100644

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

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

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

drivers/net/ring/rte_eth_ring.c +10 -10
index 0440019e07e1..db10f035dfcb 100644

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

drivers/net/sfc/sfc.c +15 -15
index 431c42f508d0..9c1be10ac93d 100644

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

drivers/net/sfc/sfc_ef100_rx.c +5 -5
index d958fd642fb1..eeb73a7530ef 100644

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

drivers/net/sfc/sfc_ef100_tx.c +10 -10
index e166fda888b1..67980a587fe4 100644

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

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

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

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

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

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

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

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

50 lines not on this page · raw message

drivers/net/sfc/sfc_flow.c +1 -1
index 8096af56739f..be2dfe778a0d 100644

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

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

52 lines not on this page · raw message

drivers/net/sfc/sfc_repr.c +5 -5
index 2500b14cb006..9d88d554c1ba 100644

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

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

50 lines not on this page · raw message

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

50 lines not on this page · raw message

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

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

drivers/net/szedata2/rte_eth_szedata2.c +7 -7
index 3c6a285e3c5e..6a084e3e1b1b 100644

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

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

104 lines not on this page · raw message

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

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

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

102 lines not on this page · raw message

drivers/net/thunderx/nicvf_ethdev.h +20 -20
index 5d38750d6313..cb474e26b81e 100644

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

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

242 lines not on this page · raw message

drivers/net/txgbe/txgbe_ethdev.h +9 -9
index fd65d89ffe7d..8304b68292da 100644

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

drivers/net/txgbe/txgbe_ethdev_vf.c +12 -12
index 43dc0ed39b75..283b52e8f3db 100644

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

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

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

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

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

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

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

drivers/net/txgbe/txgbe_pf.c +17 -17
index a48972b1a381..30be2873307a 100644

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

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

308 lines not on this page · raw message

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

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

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

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

drivers/net/vhost/rte_eth_vhost.c +8 -8
index 86498365e149..17b6a1a1ceec 100644

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

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

124 lines not on this page · raw message

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

72 lines not on this page · raw message

drivers/net/vmxnet3/vmxnet3_ethdev.h +8 -8
index 8950175460f0..ef858ac9512f 100644

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

drivers/net/vmxnet3/vmxnet3_rxtx.c +8 -8
index b01c4c01f9c9..870100fa4f11 100644

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

examples/bbdev_app/main.c +3 -3
index a26076b312e5..ecafc5e4f1a9 100644

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

examples/bond/main.c +7 -7
index fd8fd767c811..1087b0dad125 100644

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

examples/distributor/main.c +6 -6
index 8c4a8feec0c2..c681e237ea46 100644

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

examples/ethtool/ethtool-app/main.c +1 -1
index 1bc675962bf3..cdd9e9b60bd8 100644

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

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

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

examples/eventdev_pipeline/pipeline_worker_generic.c +8 -8
index e26be8edf28f..193a16463449 100644

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

examples/eventdev_pipeline/pipeline_worker_tx.c +6 -6
index 476b147bdfcc..1b841d46ad93 100644

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

examples/flow_classify/flow_classify.c +2 -2
index 8a43f6ac0f92..6185b340600c 100644

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

examples/flow_filtering/main.c +8 -8
index dd8a33d036ee..bfc1949c8428 100644

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

examples/ioat/ioatfwd.c +4 -4
index ccfee585f850..b1aa2767a0af 100644

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

examples/ip_fragmentation/main.c +6 -6
index d51133199c42..4ffe997baf23 100644

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

examples/ip_pipeline/link.c +10 -10
index 9ba02e687adb..0290767af473 100644

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

examples/ip_reassembly/main.c +9 -9
index 06dc42799314..41e35593867b 100644

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

examples/ipsec-secgw/ipsec-secgw.c +16 -16
index a10e330f5003..1c60ac28e317 100644

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

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

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

examples/ipv4_multicast/main.c +3 -3
index 73391ce1a96d..bdcaa3bcd1ca 100644

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

examples/kni/main.c +4 -4
index 69a0afced6cc..d324ee224109 100644

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

examples/l2fwd-crypto/main.c +5 -5
index 6e2016752fca..04a3bdace20c 100644

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

examples/l2fwd-event/l2fwd_common.c +5 -5
index 9040be5ed9b6..cf3d1b8aaf40 100644

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

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

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

examples/l2fwd-jobstats/main.c +4 -4
index 62981663ea78..d8eabe4c869e 100644

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

examples/l2fwd-keepalive/main.c +4 -4
index af59d51b3ec4..78fc48f781fc 100644

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

examples/l2fwd/main.c +4 -4
index 8feb50e0f542..c9d8d4918a34 100644

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

examples/l3fwd-acl/main.c +9 -9
index 410ec94b4131..1fb180723582 100644

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

examples/l3fwd-graph/main.c +7 -7
index 05385807e83e..7f00c65609ed 100644

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

examples/l3fwd-power/main.c +8 -8
index 39624993b081..21c79567b1f7 100644

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

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

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

examples/l3fwd/main.c +9 -9
index 202ef78b6e95..5dd3e4136ea1 100644

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

examples/link_status_interrupt/main.c +5 -5
index ce8ae059d789..551f0524da79 100644

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

examples/multi_process/client_server_mp/mp_server/init.c +2 -2
index be669c2bcc06..a4d7a3e5436a 100644

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

examples/multi_process/symmetric_mp/main.c +7 -7
index a66328ba0caf..b35886a77b00 100644

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

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

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

examples/packet_ordering/main.c +2 -2
index 4f6982bc1289..b01ac60fd196 100644

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

examples/performance-thread/l3fwd-thread/main.c +8 -8
index 74e016e1d20d..3a6a33bda3b0 100644

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

examples/pipeline/obj.c +10 -10
index 4f20dfc4be06..569207a79d62 100644

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

examples/ptpclient/ptpclient.c +5 -5
index 229a277032cb..979d9eb9e9d0 100644

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

examples/qos_meter/main.c +8 -8
index c32d2e12e633..743bae2da50a 100644

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

examples/qos_sched/init.c +3 -3
index 1367569c65db..9b34e4a76b1b 100644

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

examples/rxtx_callbacks/main.c +4 -4
index 6845c396b8d9..1903d8b095a1 100644

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

examples/server_node_efd/server/init.c +4 -4
index a19934dbe0c8..0e5e3b5a9815 100644

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

examples/skeleton/basicfwd.c +2 -2
index fd7207aee758..16435ee3ccc2 100644

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

examples/vhost/main.c +13 -13
index 97218917067e..44376417f83d 100644

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

examples/vm_power_manager/main.c +3 -3
index e19d79a40802..b159291d77ce 100644

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

examples/vmdq/main.c +10 -10
index 85996bf864b7..feee642f594d 100644

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

examples/vmdq_dcb/main.c +20 -20
index be0179fdeaf0..d2218f2cf741 100644

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

lib/ethdev/ethdev_driver.h +18 -18
index b530ac6e320a..dcbffd4265fa 100644

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

lib/ethdev/rte_ethdev.c +89 -92

181 lines not on this page · raw message

lib/ethdev/rte_ethdev.h +604 -382

986 lines not on this page · raw message

lib/ethdev/rte_flow.h +1 -1
index db3392bf9759..59d9d9eeb63f 100644

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

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

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

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

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

lib/mbuf/rte_mbuf_core.h +4 -4
index fdaaaf67f2f3..57e871201816 100644

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

lib/mbuf/rte_mbuf_dyn.h +1 -1
index fb03cf1dcf90..29abe8da53cf 100644

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

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

Signature · 1 line
2.31.1

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

#24 lore raw
Quoted 2 lines · Ferruh Yigit

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

LGTM except two lines duplicated above.

Quoted 16 lines

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.

#25 lore raw
Quoted 23 lines · On Fri, 22 Oct 2021, 16:58 Andrew Rybchenko, <[email protected]>…
Quoted 2 lines · Ferruh Yigit

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

LGTM except two lines duplicated above.

Quoted 16 lines

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.

Acked-by: Somnath Kotur
[email protected]

Quoted 2 lines
author Applied
#26 lore raw
Quoted 26 lines · On Fri, 22 Oct 2021, 16:58 Andrew Rybchenko, <[email protected]…

On 10/22/21 2:03 PM, Ferruh Yigit wrote:
> Add 'RTE_ETH' namespace to all enums & macros in a backward compatible > Add 'RTE_ETH' namespace to all enums & macros in a backward compatible

LGTM except two lines duplicated above.

> 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] <mailto:[email protected]>> > Acked-by: Tyler Retzlaff <[email protected] <mailto:[email protected]>> > Acked-by: Andrew Rybchenko <[email protected] <mailto:[email protected]>> > Acked-by: Ajit Khaparde <[email protected] <mailto:[email protected]>> > Acked-by: Jerin Jacob <[email protected] <mailto:[email protected]>>
> Acked-by: Wisam Jaddo <[email protected] <mailto:[email protected]>>
> Acked-by: Rosen Xu <[email protected] <mailto:[email protected]>>
> Acked-by: Chenbo Xia <[email protected] <mailto:[email protected]>>
> Acked-by: Hemant Agrawal <[email protected] <mailto:[email protected]>>

Quoted 2 lines

Applied to dpdk-next-net/main, thanks.

#27 lore raw
In reply to Andrew Rybchenko
Quoted 6 lines · Andrew Rybchenko
Quoted 2 lines · Ferruh Yigit

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

LGTM except two lines duplicated above.

Thanks Andrew, I will fix it while merging (unless there is a new version).

Quoted 17 lines
Quoted 16 lines

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.

#28 lore raw
In reply to Ferruh Yigit
Quoted 11 lines · Ferruh Yigit
drivers/net/txgbe/txgbe_ethdev.c +0 -0
index 7b46ffb68635..0b0f9db7cb2a 100644
@@ -2695,11 +2695,11 @@ txgbe_dev_link_update_share(struct rte_eth_dev
 *dev,
 	int wait = 1;
 
 	memset(&link, 0, sizeof(link));

drivers/net/txgbe/txgbe_ethdev.c txgbe_dev_link_update_share(struct rte_eth_dev · line 2704

Quoted 10 lines
drivers/net/txgbe/txgbe_ethdev.c +4 -4
-	link.link_status = ETH_LINK_DOWN;
-	link.link_speed = ETH_SPEED_NUM_NONE;
-	link.link_duplex = ETH_LINK_HALF_DUPLEX;
+	link.link_status = RTE_ETH_LINK_DOWN;
+	link.link_speed = RTE_ETH_SPEED_NUM_NONE;
+	link.link_duplex = RTE_ETH_LINK_HALF_DUPLEX;
 	link.link_autoneg = !(dev->data->dev_conf.link_speeds &
-			ETH_LINK_SPEED_FIXED);
+			RTE_ETH_LINK_AUTONEG);
 

Hi Ferruh,
Is there some wrong that 'ETH_LINK_SPEED_FIXED' is changed to auto-negotiation?

Quoted 2 lines
drivers/net/txgbe/txgbe_ethdev.c +0 -0
 	hw->mac.get_link_status = true;
#29 lore raw
Quoted 11 lines · Jiawen Wu
Quoted 10 lines · Ferruh Yigit
drivers/net/txgbe/txgbe_ethdev.c +0 -0
index 7b46ffb68635..0b0f9db7cb2a 100644
@@ -2695,11 +2695,11 @@ txgbe_dev_link_update_share(struct rte_eth_dev
 *dev,
  	int wait = 1;
 
Quoted 16 lines

drivers/net/txgbe/txgbe_ethdev.c txgbe_dev_link_update_share(struct rte_eth_dev *dev, · line 2703

Quoted 11 lines
drivers/net/txgbe/txgbe_ethdev.c +4 -4
  	memset(&link, 0, sizeof(link));
-	link.link_status = ETH_LINK_DOWN;
-	link.link_speed = ETH_SPEED_NUM_NONE;
-	link.link_duplex = ETH_LINK_HALF_DUPLEX;
+	link.link_status = RTE_ETH_LINK_DOWN;
+	link.link_speed = RTE_ETH_SPEED_NUM_NONE;
+	link.link_duplex = RTE_ETH_LINK_HALF_DUPLEX;
  	link.link_autoneg = !(dev->data->dev_conf.link_speeds &
-			ETH_LINK_SPEED_FIXED);
+			RTE_ETH_LINK_AUTONEG);
 

Hi Ferruh,
Is there some wrong that 'ETH_LINK_SPEED_FIXED' is changed to auto-negotiation?

Not sure how it happened, but I will send a patch to fix it.

#30 lore raw
Quoted 29 lines · Ferruh Yigit
Quoted 11 lines · Jiawen Wu
Quoted 10 lines · Ferruh Yigit
drivers/net/txgbe/txgbe_ethdev.c +0 -0
index 7b46ffb68635..0b0f9db7cb2a 100644
@@ -2695,11 +2695,11 @@ txgbe_dev_link_update_share(struct rte_eth_dev
 *dev,
       int wait = 1;
 
Quoted 16 lines
Quoted 11 lines
drivers/net/txgbe/txgbe_ethdev.c +3 -3
       memset(&link, 0, sizeof(link));
-    link.link_status = ETH_LINK_DOWN;
-    link.link_speed = ETH_SPEED_NUM_NONE;
-    link.link_duplex = ETH_LINK_HALF_DUPLEX;
+    link.link_status = RTE_ETH_LINK_DOWN;
+    link.link_speed = RTE_ETH_SPEED_NUM_NONE;
+    link.link_duplex = RTE_ETH_LINK_HALF_DUPLEX;

      link.link_autoneg = !(dev->data->dev_conf.link_speeds & -            ETH_LINK_SPEED_FIXED);
+            RTE_ETH_LINK_AUTONEG);

Hi Ferruh,
Is there some wrong that 'ETH_LINK_SPEED_FIXED' is changed to auto-negotiation?

Quoted 1 line

Not sure how it happened, but I will send a patch to fix it.

Ahh, there is another driver change [1] between this patch versions, that seems lead the conflict resolve error.

[1]
Commit 196f0e123bcb ("net/txgbe: set fixed flag for exact link speed")

- link.link_autoneg = ETH_LINK_AUTONEG;
+ link.link_autoneg = !(dev->data->dev_conf.link_speeds &
+ ETH_LINK_SPEED_FIXED);

#31 lore raw
Quoted 35 lines · Ferruh Yigit
Quoted 29 lines · Ferruh Yigit
Quoted 11 lines · Jiawen Wu
Quoted 10 lines · Ferruh Yigit
drivers/net/txgbe/txgbe_ethdev.c +0 -0
index 7b46ffb68635..0b0f9db7cb2a 100644
@@ -2695,11 +2695,11 @@ txgbe_dev_link_update_share(struct rte_eth_dev
 *dev,
       int wait = 1;
 
Quoted 16 lines
Quoted 11 lines
drivers/net/txgbe/txgbe_ethdev.c +3 -3
       memset(&link, 0, sizeof(link));
-    link.link_status = ETH_LINK_DOWN;
-    link.link_speed = ETH_SPEED_NUM_NONE;
-    link.link_duplex = ETH_LINK_HALF_DUPLEX;
+    link.link_status = RTE_ETH_LINK_DOWN;
+    link.link_speed = RTE_ETH_SPEED_NUM_NONE;
+    link.link_duplex = RTE_ETH_LINK_HALF_DUPLEX;

      link.link_autoneg = !(dev->data->dev_conf.link_speeds & -            ETH_LINK_SPEED_FIXED);
+            RTE_ETH_LINK_AUTONEG);

Hi Ferruh,
Is there some wrong that 'ETH_LINK_SPEED_FIXED' is changed to auto-negotiation?

Quoted 1 line

Not sure how it happened, but I will send a patch to fix it.

Ahh, there is another driver change [1] between this patch versions, that seems lead the conflict resolve error.

Quoted 6 lines

[1]
Commit 196f0e123bcb ("net/txgbe: set fixed flag for exact link speed")

 -       link.link_autoneg = ETH_LINK_AUTONEG;
 +       link.link_autoneg = !(dev->data->dev_conf.link_speeds & +                       ETH_LINK_SPEED_FIXED);

Can you please check:
https://patches.dpdk.org/project/dpdk/patch/[email protected]/