ethdev: add namespace
Subsystems (3)
PATCH v6 1/1 ethdev: add namespace
In reply to Ferruh YigitAdd 'RTE_ETH' namespace to all enums & macros in a backward compatible Add 'RTE_ETH' namespace to all enums & macros in a backward compatible way. The macros for backward compatibility can be removed in next LTS. Also updated some struct names to have 'rte_eth' prefix.
All internal components switched to using new names.
Syntax fixed on lines that this patch touches.
---
Cc: David Marchand <[email protected]>
Cc: Thomas Monjalon <[email protected]>
v2:
* Updated internal components
* Removed deprecation notice
v3:
* Updated missing macros / structs that David highlighted
* Added release notes update
v4:
* rebased on latest next-net
* depends on https://patches.dpdk.org/user/todo/dpdk/?series=19744
* Not able to complete scripts to update user code, although some shared by Aman:
https://patches.dpdk.org/project/dpdk/patch/[email protected]/
Sending new version for possible option to get this patch for -rc1 and work for scripts later, before release.
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
@@ -757,11 +757,11 @@ show_port(void) } ret =rte_eth_dev_flow_ctrl_get (i, &fc_conf); -if (ret ==0 && fc_conf.mode !=RTE_FC_NONE ) { +if (ret ==0 && fc_conf.mode !=RTE_ETH_FC_NONE ) { printf("\t -- flow control mode %s%s high %u low %u pause %u%s%s\n", - fc_conf.mode == RTE_FC_RX_PAUSE ? "rx " : - fc_conf.mode == RTE_FC_TX_PAUSE ? "tx " : - fc_conf.mode == RTE_FC_FULL ? "full" : "???", + fc_conf.mode == RTE_ETH_FC_RX_PAUSE ? "rx " : + fc_conf.mode == RTE_ETH_FC_TX_PAUSE ? "tx " : + fc_conf.mode == RTE_ETH_FC_FULL ? "full" : "???", fc_conf.autoneg ? " auto" : "", fc_conf.high_water, fc_conf.low_water,
app/test-eventdev/test_perf_common.c +2 -2
@@ -668,13 +668,13 @@ perf_ethdev_setup(struct evt_test *test, struct evt_options *opt)struct test_perf *t =evt_test_priv (test);struct rte_eth_conf port_conf = { .rxmode = { - .mq_mode =ETH_MQ_RX_RSS , + .mq_mode =RTE_ETH_MQ_RX_RSS , .split_hdr_size =0 , }, .rx_adv_conf = { .rss_conf = { .rss_key =NULL , - .rss_hf =ETH_RSS_IP , + .rss_hf =RTE_ETH_RSS_IP , }, }, };
app/test-eventdev/test_pipeline_common.c +5 -5
@@ -176,12 +176,12 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)struct rte_eth_rxconf rx_conf;struct rte_eth_conf port_conf = { .rxmode = { - .mq_mode =ETH_MQ_RX_RSS , + .mq_mode =RTE_ETH_MQ_RX_RSS , }, .rx_adv_conf = { .rss_conf = { .rss_key =NULL , - .rss_hf =ETH_RSS_IP , + .rss_hf =RTE_ETH_RSS_IP , }, }, };
@@ -223,7 +223,7 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)if (!(caps &RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT )) local_port_conf.rxmode.offloads |= -DEV_RX_OFFLOAD_RSS_HASH ; +RTE_ETH_RX_OFFLOAD_RSS_HASH ; ret =rte_eth_dev_info_get (i, &dev_info);if (ret !=0 ) {
@@ -233,9 +233,9 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt) }/* Enable mbuf fast free if PMD has the capability. */ -if (dev_info.tx_offload_capa &DEV_TX_OFFLOAD_MBUF_FAST_FREE ) +if (dev_info.tx_offload_capa &RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE ) local_port_conf.txmode.offloads |= -DEV_TX_OFFLOAD_MBUF_FAST_FREE ; +RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE ; rx_conf = dev_info.default_rxconf; rx_conf.offloads = port_conf.rxmode.offloads;
app/test-flow-perf/config.h +1 -1
@@ -5,7 +5,7 @@#define FLOW_ITEM_MASK (_x) (UINT64_C(1) << _x)#define FLOW_ACTION_MASK (_x) (UINT64_C(1) << _x)#define FLOW_ATTR_MASK (_x) (UINT64_C(1) << _x) -#define GET_RSS_HF () (ETH_RSS_IP) +#define GET_RSS_HF () (RTE_ETH_RSS_IP)/* Configuration */ #define RXQ_NUM 4
app/test-pipeline/init.c +4 -4
@@ -70,16 +70,16 @@ struct app_params app = {static struct rte_eth_conf port_conf = { .rxmode = { .split_hdr_size =0 , - .offloads =DEV_RX_OFFLOAD_CHECKSUM , + .offloads =RTE_ETH_RX_OFFLOAD_CHECKSUM , }, .rx_adv_conf = { .rss_conf = { .rss_key =NULL , - .rss_hf =ETH_RSS_IP , + .rss_hf =RTE_ETH_RSS_IP , }, }, .txmode = { - .mq_mode =ETH_MQ_TX_NONE , + .mq_mode =RTE_ETH_MQ_TX_NONE , }, };
@@ -178,7 +178,7 @@ app_ports_check_link(void)RTE_LOG (INFO ,USER1 ,"Port %u %s\n" , port, link_status_text); -if (link.link_status ==ETH_LINK_DOWN ) +if (link.link_status ==RTE_ETH_LINK_DOWN ) all_ports_up =0 ; }
app/test-pmd/cmdline.c +143 -143
611 lines not on this page · raw message
app/test-pmd/config.c +100 -100
342 lines not on this page · raw message
app/test-pmd/csumonly.c +14 -14
@@ -485,7 +485,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info,if (info->l4_proto ==IPPROTO_TCP && tso_segsz) { ol_flags |=PKT_TX_IP_CKSUM ; }else { -if (tx_offloads &DEV_TX_OFFLOAD_IPV4_CKSUM ) { +if (tx_offloads &RTE_ETH_TX_OFFLOAD_IPV4_CKSUM ) { ol_flags |=PKT_TX_IP_CKSUM ; }else { ipv4_hdr->hdr_checksum =0 ;
@@ -502,7 +502,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info, udp_hdr = (struct rte_udp_hdr *)((char *)l3_hdr + info->l3_len);/* do not recalculate udp cksum if it was 0 */ if (udp_hdr->dgram_cksum !=0 ) { -if (tx_offloads &DEV_TX_OFFLOAD_UDP_CKSUM ) { +if (tx_offloads &RTE_ETH_TX_OFFLOAD_UDP_CKSUM ) { ol_flags |=PKT_TX_UDP_CKSUM ; }else { udp_hdr->dgram_cksum =0 ;
@@ -517,7 +517,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info, tcp_hdr = (struct rte_tcp_hdr *)((char *)l3_hdr + info->l3_len);if (tso_segsz) ol_flags |=PKT_TX_TCP_SEG ; -else if (tx_offloads &DEV_TX_OFFLOAD_TCP_CKSUM ) { +else if (tx_offloads &RTE_ETH_TX_OFFLOAD_TCP_CKSUM ) { ol_flags |=PKT_TX_TCP_CKSUM ; }else { tcp_hdr->cksum =0 ;
@@ -532,7 +532,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info, ((char *)l3_hdr + info->l3_len);/* sctp payload must be a multiple of 4 to be * offloaded */ -if ((tx_offloads &DEV_TX_OFFLOAD_SCTP_CKSUM ) && +if ((tx_offloads &RTE_ETH_TX_OFFLOAD_SCTP_CKSUM ) && ((ipv4_hdr->total_length &0x3 ) ==0 )) { ol_flags |=PKT_TX_SCTP_CKSUM ; }else {
@@ -559,7 +559,7 @@ process_outer_cksums(void *outer_l3_hdr, struct testpmd_offload_info *info, ipv4_hdr->hdr_checksum =0 ; ol_flags |=PKT_TX_OUTER_IPV4 ; -if (tx_offloads &DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM ) ol_flags |=PKT_TX_OUTER_IP_CKSUM ;else ipv4_hdr->hdr_checksum =rte_ipv4_cksum (ipv4_hdr);
@@ -576,7 +576,7 @@ process_outer_cksums(void *outer_l3_hdr, struct testpmd_offload_info *info, ol_flags |=PKT_TX_TCP_SEG ;/* Skip SW outer UDP checksum generation if HW supports it */ -if (tx_offloads &DEV_TX_OFFLOAD_OUTER_UDP_CKSUM ) { +if (tx_offloads &RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM ) {if (info->outer_ethertype ==_htons (RTE_ETHER_TYPE_IPV4 )) udp_hdr->dgram_cksum =rte_ipv4_phdr_cksum (ipv4_hdr, ol_flags);
@@ -959,9 +959,9 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)if (info.is_tunnel ==1 ) {if (info.tunnel_tso_segsz || (tx_offloads & -DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM ) || +RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM ) || (tx_offloads & -DEV_TX_OFFLOAD_OUTER_UDP_CKSUM )) { +RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM )) { m->outer_l2_len = info.outer_l2_len; m->outer_l3_len = info.outer_l3_len; m->l2_len = info.l2_len;
@@ -1022,19 +1022,19 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)rte_be_to_cpu_16 (info.outer_ethertype), info.outer_l3_len);/* dump tx packet info */ -if ((tx_offloads & (DEV_TX_OFFLOAD_IPV4_CKSUM | -DEV_TX_OFFLOAD_UDP_CKSUM | -DEV_TX_OFFLOAD_TCP_CKSUM | -DEV_TX_OFFLOAD_SCTP_CKSUM )) || +if ((tx_offloads & (RTE_ETH_TX_OFFLOAD_IPV4_CKSUM | +RTE_ETH_TX_OFFLOAD_UDP_CKSUM | +RTE_ETH_TX_OFFLOAD_TCP_CKSUM | +RTE_ETH_TX_OFFLOAD_SCTP_CKSUM )) || info.tso_segsz !=0 )printf ("tx: m->l2_len=%d m->l3_len=%d " "m->l4_len=%d\n" , m->l2_len, m->l3_len, m->l4_len);if (info.is_tunnel ==1 ) {if ((tx_offloads & -DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM ) || +RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM ) || (tx_offloads & -DEV_TX_OFFLOAD_OUTER_UDP_CKSUM ) || +RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM ) || (tx_ol_flags &PKT_TX_OUTER_IPV6 )) printf("tx: m->outer_l2_len=%d " "m->outer_l3_len=%d\n",
app/test-pmd/flowgen.c +3 -3
@@ -99,11 +99,11 @@ pkt_burst_flow_gen(struct fwd_stream *fs) vlan_tci_outer = ports[fs->tx_port].tx_vlan_id_outer; tx_offloads = ports[fs->tx_port].dev_conf.txmode.offloads; -if (tx_offloads &DEV_TX_OFFLOAD_VLAN_INSERT ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_VLAN_INSERT ) ol_flags |=PKT_TX_VLAN_PKT ; -if (tx_offloads &DEV_TX_OFFLOAD_QINQ_INSERT ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_QINQ_INSERT ) ol_flags |=PKT_TX_QINQ_PKT ; -if (tx_offloads &DEV_TX_OFFLOAD_MACSEC_INSERT ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_MACSEC_INSERT ) ol_flags |=PKT_TX_MACSEC ;for (nb_pkt =0 ; nb_pkt < nb_pkt_per_burst; nb_pkt++) {
app/test-pmd/macfwd.c +3 -3
@@ -72,11 +72,11 @@ pkt_burst_mac_forward(struct fwd_stream *fs) fs->rx_packets += nb_rx; txp = &ports[fs->tx_port]; tx_offloads = txp->dev_conf.txmode.offloads; -if (tx_offloads &DEV_TX_OFFLOAD_VLAN_INSERT ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_VLAN_INSERT ) ol_flags =PKT_TX_VLAN_PKT ; -if (tx_offloads &DEV_TX_OFFLOAD_QINQ_INSERT ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_QINQ_INSERT ) ol_flags |=PKT_TX_QINQ_PKT ; -if (tx_offloads &DEV_TX_OFFLOAD_MACSEC_INSERT ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_MACSEC_INSERT ) ol_flags |=PKT_TX_MACSEC ;for (i =0 ; i < nb_rx; i++) {if (likely (i < nb_rx -1 ))
app/test-pmd/macswap_common.h +3 -3
@@ -10,11 +10,11 @@ ol_flags_init(uint64_t tx_offload) {uint64_t ol_flags =0 ; - ol_flags |= (tx_offload &DEV_TX_OFFLOAD_VLAN_INSERT ) ? + ol_flags |= (tx_offload &RTE_ETH_TX_OFFLOAD_VLAN_INSERT ) ?PKT_TX_VLAN :0 ; - ol_flags |= (tx_offload &DEV_TX_OFFLOAD_QINQ_INSERT ) ? + ol_flags |= (tx_offload &RTE_ETH_TX_OFFLOAD_QINQ_INSERT ) ?PKT_TX_QINQ :0 ; - ol_flags |= (tx_offload &DEV_TX_OFFLOAD_MACSEC_INSERT ) ? + ol_flags |= (tx_offload &RTE_ETH_TX_OFFLOAD_MACSEC_INSERT ) ?PKT_TX_MACSEC :0 ;return ol_flags;
app/test-pmd/parameters.c +27 -27
128 lines not on this page · raw message
app/test-pmd/testpmd.c +26 -26
154 lines not on this page · raw message
app/test-pmd/testpmd.h +1 -1
@@ -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
@@ -354,11 +354,11 @@ pkt_burst_transmit(struct fwd_stream *fs) tx_offloads = txp->dev_conf.txmode.offloads; vlan_tci = txp->tx_vlan_id; vlan_tci_outer = txp->tx_vlan_id_outer; -if (tx_offloads &DEV_TX_OFFLOAD_VLAN_INSERT ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_VLAN_INSERT ) ol_flags =PKT_TX_VLAN_PKT ; -if (tx_offloads &DEV_TX_OFFLOAD_QINQ_INSERT ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_QINQ_INSERT ) ol_flags |=PKT_TX_QINQ_PKT ; -if (tx_offloads &DEV_TX_OFFLOAD_MACSEC_INSERT ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_MACSEC_INSERT ) ol_flags |=PKT_TX_MACSEC ;/*
app/test/test_ethdev_link.c +34 -34
116 lines not on this page · raw message
app/test/test_event_eth_rx_adapter.c +2 -2
@@ -103,7 +103,7 @@ port_init_rx_intr(uint16_t port, struct rte_mempool *mp) {static const struct rte_eth_conf port_conf_default = { .rxmode = { - .mq_mode =ETH_MQ_RX_NONE , + .mq_mode =RTE_ETH_MQ_RX_NONE , }, .intr_conf = { .rxq =1 ,
@@ -118,7 +118,7 @@ port_init(uint16_t port, struct rte_mempool *mp) {static const struct rte_eth_conf port_conf_default = { .rxmode = { - .mq_mode =ETH_MQ_RX_NONE , + .mq_mode =RTE_ETH_MQ_RX_NONE , }, };
app/test/test_kni.c +1 -1
@@ -74,7 +74,7 @@ static const struct rte_eth_txconf tx_conf = {static const struct rte_eth_conf port_conf = { .txmode = { - .mq_mode =ETH_DCB_NONE , + .mq_mode =RTE_ETH_MQ_TX_NONE , }, };
app/test/test_link_bonding.c +2 -2
@@ -134,11 +134,11 @@ static uint16_t vlan_id = 0x100;static struct rte_eth_conf default_pmd_conf = { .rxmode = { - .mq_mode =ETH_MQ_RX_NONE , + .mq_mode =RTE_ETH_MQ_RX_NONE , .split_hdr_size =0 , }, .txmode = { - .mq_mode =ETH_MQ_TX_NONE , + .mq_mode =RTE_ETH_MQ_TX_NONE , }, .lpbk_mode =0 , };
app/test/test_link_bonding_mode4.c +2 -2
@@ -107,11 +107,11 @@ static struct link_bonding_unittest_params test_params = {static struct rte_eth_conf default_pmd_conf = { .rxmode = { - .mq_mode =ETH_MQ_RX_NONE , + .mq_mode =RTE_ETH_MQ_RX_NONE , .split_hdr_size =0 , }, .txmode = { - .mq_mode =ETH_MQ_TX_NONE , + .mq_mode =RTE_ETH_MQ_TX_NONE , }, .lpbk_mode =0 , };
app/test/test_link_bonding_rssconf.c +14 -14
@@ -52,7 +52,7 @@ struct slave_conf {struct rte_eth_rss_conf rss_conf;uint8_t rss_key[40 ]; -struct rte_eth_rss_reta_entry64 reta_conf[512 /RTE_RETA_GROUP_SIZE ]; +struct rte_eth_rss_reta_entry64 reta_conf[512 /RTE_ETH_RETA_GROUP_SIZE ];uint8_t is_slave;struct rte_ring *rxtx_queue[RXTX_QUEUE_COUNT ];
@@ -61,7 +61,7 @@ struct slave_conf {struct link_bonding_rssconf_unittest_params {uint8_t bond_port_id;struct rte_eth_dev_info bond_dev_info; -struct rte_eth_rss_reta_entry64 bond_reta_conf[512 /RTE_RETA_GROUP_SIZE ]; +struct rte_eth_rss_reta_entry64 bond_reta_conf[512 /RTE_ETH_RETA_GROUP_SIZE ];struct slave_conf slave_ports[SLAVE_COUNT ];struct rte_mempool *mbuf_pool;
@@ -80,27 +80,27 @@ static struct link_bonding_rssconf_unittest_params test_params = {*/ static struct rte_eth_conf default_pmd_conf = { .rxmode = { - .mq_mode =ETH_MQ_RX_NONE , + .mq_mode =RTE_ETH_MQ_RX_NONE , .split_hdr_size =0 , }, .txmode = { - .mq_mode =ETH_MQ_TX_NONE , + .mq_mode =RTE_ETH_MQ_TX_NONE , }, .lpbk_mode =0 , };static struct rte_eth_conf rss_pmd_conf = { .rxmode = { - .mq_mode =ETH_MQ_RX_RSS , + .mq_mode =RTE_ETH_MQ_RX_RSS , .split_hdr_size =0 , }, .txmode = { - .mq_mode =ETH_MQ_TX_NONE , + .mq_mode =RTE_ETH_MQ_TX_NONE , }, .rx_adv_conf = { .rss_conf = { .rss_key =NULL , - .rss_hf =ETH_RSS_IPV6 , + .rss_hf =RTE_ETH_RSS_IPV6 , }, }, .lpbk_mode =0 ,
@@ -207,13 +207,13 @@ bond_slaves(void)static int reta_set (uint16_t port_id,uint8_t value,int reta_size) { -struct rte_eth_rss_reta_entry64 reta_conf[512 /RTE_RETA_GROUP_SIZE ]; +struct rte_eth_rss_reta_entry64 reta_conf[512 /RTE_ETH_RETA_GROUP_SIZE ];int i, j; -for (i =0 ; i < reta_size /RTE_RETA_GROUP_SIZE ; i++) { +for (i =0 ; i < reta_size /RTE_ETH_RETA_GROUP_SIZE ; i++) {/* select all fields to set */ reta_conf[i].mask = ~0LL ; -for (j =0 ; j <RTE_RETA_GROUP_SIZE ; j++) +for (j =0 ; j <RTE_ETH_RETA_GROUP_SIZE ; j++) reta_conf[i].reta[j] = value; }
@@ -232,8 +232,8 @@ reta_check_synced(struct slave_conf *port)for (i =0 ; i < test_params.bond_dev_info.reta_size; i++) { -int index = i /RTE_RETA_GROUP_SIZE ; -int shift = i %RTE_RETA_GROUP_SIZE ; +int index = i /RTE_ETH_RETA_GROUP_SIZE ; +int shift = i %RTE_ETH_RETA_GROUP_SIZE ;if (port->reta_conf[index].reta[shift] != test_params.bond_reta_conf[index].reta[shift])
@@ -251,7 +251,7 @@ static intbond_reta_fetch (void) {unsigned j; -for (j =0 ; j < test_params.bond_dev_info.reta_size /RTE_RETA_GROUP_SIZE ; +for (j =0 ; j < test_params.bond_dev_info.reta_size /RTE_ETH_RETA_GROUP_SIZE ; j++) test_params.bond_reta_conf[j].mask = ~0LL ;
@@ -268,7 +268,7 @@ static int slave_reta_fetch(struct slave_conf *port) {unsigned j; -for (j =0 ; j < port->dev_info.reta_size /RTE_RETA_GROUP_SIZE ; j++) +for (j =0 ; j < port->dev_info.reta_size /RTE_ETH_RETA_GROUP_SIZE ; j++) port->reta_conf[j].mask = ~0LL ; TEST_ASSERT_SUCCESS(rte_eth_dev_rss_reta_query(port->port_id,
app/test/test_pmd_perf.c +6 -6
@@ -62,11 +62,11 @@ static struct rte_ether_addr ports_eth_addr[RTE_MAX_ETHPORTS];static struct rte_eth_conf port_conf = { .rxmode = { - .mq_mode =ETH_MQ_RX_NONE , + .mq_mode =RTE_ETH_MQ_RX_NONE , .split_hdr_size =0 , }, .txmode = { - .mq_mode =ETH_MQ_TX_NONE , + .mq_mode =RTE_ETH_MQ_TX_NONE , }, .lpbk_mode =1 ,/* enable loopback */ };
@@ -155,7 +155,7 @@ check_all_ports_link_status(uint16_t port_num, uint32_t port_mask)continue ; }/* clear all_ports_up flag if any link down */ -if (link.link_status ==ETH_LINK_DOWN ) { +if (link.link_status ==RTE_ETH_LINK_DOWN ) { all_ports_up =0 ;break ; }
@@ -822,7 +822,7 @@ test_set_rxtx_conf(cmdline_fixed_string_t mode)/* bulk alloc rx, full-featured tx */ tx_conf.tx_rs_thresh =32 ; tx_conf.tx_free_thresh =32 ; - port_conf.rxmode.offloads |=DEV_RX_OFFLOAD_CHECKSUM ; + port_conf.rxmode.offloads |=RTE_ETH_RX_OFFLOAD_CHECKSUM ;return 0 ; }else if (!strcmp (mode,"hybrid" )) {/* bulk alloc rx, vector tx
@@ -831,13 +831,13 @@ test_set_rxtx_conf(cmdline_fixed_string_t mode)*/ tx_conf.tx_rs_thresh =32 ; tx_conf.tx_free_thresh =32 ; - port_conf.rxmode.offloads |=DEV_RX_OFFLOAD_CHECKSUM ; + port_conf.rxmode.offloads |=RTE_ETH_RX_OFFLOAD_CHECKSUM ;return 0 ; }else if (!strcmp (mode,"full" )) {/* full feature rx,tx pair */ tx_conf.tx_rs_thresh =32 ; tx_conf.tx_free_thresh =32 ; - port_conf.rxmode.offloads |=DEV_RX_OFFLOAD_SCATTER ; + port_conf.rxmode.offloads |=RTE_ETH_RX_OFFLOAD_SCATTER ;return 0 ; }
app/test/virtual_pmd.c +5 -5
@@ -53,7 +53,7 @@ static int virtual_ethdev_stop(struct rte_eth_dev *eth_dev __rte_unused)void *pkt =NULL ;struct virtual_ethdev_private *prv = eth_dev->data->dev_private; - eth_dev->data->dev_link.link_status =ETH_LINK_DOWN ; + eth_dev->data->dev_link.link_status =RTE_ETH_LINK_DOWN ; eth_dev->data->dev_started =0 ;while (rte_ring_dequeue (prv->rx_queue, &pkt) != -ENOENT )rte_pktmbuf_free (pkt);
@@ -168,7 +168,7 @@ virtual_ethdev_link_update_success(struct rte_eth_dev *bonded_eth_dev, int wait_to_complete __rte_unused) {if (!bonded_eth_dev->data->dev_started) - bonded_eth_dev->data->dev_link.link_status =ETH_LINK_DOWN ; + bonded_eth_dev->data->dev_link.link_status =RTE_ETH_LINK_DOWN ;return 0 ; }
@@ -562,9 +562,9 @@ virtual_ethdev_create(const char *name, struct rte_ether_addr *mac_addr, eth_dev->data->nb_rx_queues = (uint16_t )1 ; eth_dev->data->nb_tx_queues = (uint16_t )1 ; - eth_dev->data->dev_link.link_status =ETH_LINK_DOWN ; - eth_dev->data->dev_link.link_speed =ETH_SPEED_NUM_10G ; - eth_dev->data->dev_link.link_duplex =ETH_LINK_FULL_DUPLEX ; + eth_dev->data->dev_link.link_status =RTE_ETH_LINK_DOWN ; + eth_dev->data->dev_link.link_speed =RTE_ETH_SPEED_NUM_10G ; + eth_dev->data->dev_link.link_duplex =RTE_ETH_LINK_FULL_DUPLEX ; eth_dev->data->mac_addrs =rte_zmalloc (name,RTE_ETHER_ADDR_LEN ,0 );if (eth_dev->data->mac_addrs ==NULL )
doc/guides/eventdevs/cnxk.rst +1 -1
@@ -42,7 +42,7 @@ Features of the OCTEON cnxk SSO PMD are: - HW managed packets enqueued from ethdev to eventdev exposed through event eth RX adapter. - N:1 ethernet device Rx queue to Event queue mapping. -- Lockfree Tx from event eth Tx adapter using ``DEV_TX_OFFLOAD_MT_LOCKFREE`` +- Lockfree Tx from event eth Tx adapter using ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capability while maintaining receive packet order. - Full Rx/Tx offload support defined through ethdev queue configuration. - HW managed event vectorization on CN10K for packets enqueued from ethdev to
doc/guides/eventdevs/octeontx2.rst +1 -1
@@ -35,7 +35,7 @@ Features of the OCTEON TX2 SSO PMD are: - HW managed packets enqueued from ethdev to eventdev exposed through event eth RX adapter. - N:1 ethernet device Rx queue to Event queue mapping. -- Lockfree Tx from event eth Tx adapter using ``DEV_TX_OFFLOAD_MT_LOCKFREE`` +- Lockfree Tx from event eth Tx adapter using ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capability while maintaining receive packet order. - Full Rx/Tx offload support defined through ethdev queue config.
doc/guides/nics/af_packet.rst +1 -1
@@ -70,5 +70,5 @@ Features and Limitations ------------------------ The PMD will re-insert the VLAN tag transparently to the packet if the kernel -strips it, as long as the ``DEV_RX_OFFLOAD_VLAN_STRIP`` is not enabled by the +strips it, as long as the ``RTE_ETH_RX_OFFLOAD_VLAN_STRIP`` is not enabled by the application.
doc/guides/nics/bnxt.rst +12 -12
@@ -877,21 +877,21 @@ processing. This improved performance is derived from a number of optimizations: * TX: only the following reduced set of transmit offloads is supported in vector mode:: - DEV_TX_OFFLOAD_MBUF_FAST_FREE + RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE * RX: only the following reduced set of receive offloads is supported in vector mode (note that jumbo MTU is allowed only when the MTU setting - does not require `DEV_RX_OFFLOAD_SCATTER` to be enabled):: - - DEV_RX_OFFLOAD_VLAN_STRIP - DEV_RX_OFFLOAD_KEEP_CRC - DEV_RX_OFFLOAD_IPV4_CKSUM - DEV_RX_OFFLOAD_UDP_CKSUM - DEV_RX_OFFLOAD_TCP_CKSUM - DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM - DEV_RX_OFFLOAD_OUTER_UDP_CKSUM - DEV_RX_OFFLOAD_RSS_HASH - DEV_RX_OFFLOAD_VLAN_FILTER + does not require `RTE_ETH_RX_OFFLOAD_SCATTER` to be enabled):: + + RTE_ETH_RX_OFFLOAD_VLAN_STRIP + RTE_ETH_RX_OFFLOAD_KEEP_CRC + RTE_ETH_RX_OFFLOAD_IPV4_CKSUM + RTE_ETH_RX_OFFLOAD_UDP_CKSUM + RTE_ETH_RX_OFFLOAD_TCP_CKSUM + RTE_ETH_RX_OFFLOAD_OUTER_IPV4_CKSUM + RTE_ETH_RX_OFFLOAD_OUTER_UDP_CKSUM + RTE_ETH_RX_OFFLOAD_RSS_HASH + RTE_ETH_RX_OFFLOAD_VLAN_FILTER The BNXT Vector PMD is enabled in DPDK builds by default. The decision to enable vector processing is made at run-time when the port is started; if no transmit
doc/guides/nics/enic.rst +1 -1
@@ -432,7 +432,7 @@ Limitations .. code-block:: console vlan_offload = rte_eth_dev_get_vlan_offload(port); - vlan_offload |= ETH_VLAN_STRIP_OFFLOAD; + vlan_offload |= RTE_ETH_VLAN_STRIP_OFFLOAD; rte_eth_dev_set_vlan_offload(port, vlan_offload); Another alternative is modify the adapter's ingress VLAN rewrite mode so that
doc/guides/nics/features.rst +57 -57
303 lines not on this page · raw message
doc/guides/nics/fm10k.rst +3 -3
@@ -78,11 +78,11 @@ To enable via ``RX_OLFLAGS`` use ``RTE_LIBRTE_FM10K_RX_OLFLAGS_ENABLE=y``. To guarantee the constraint, the following capabilities in ``dev_conf.rxmode.offloads`` will be checked: -* ``DEV_RX_OFFLOAD_VLAN_EXTEND`` +* ``RTE_ETH_RX_OFFLOAD_VLAN_EXTEND`` -* ``DEV_RX_OFFLOAD_CHECKSUM`` +* ``RTE_ETH_RX_OFFLOAD_CHECKSUM`` -* ``DEV_RX_OFFLOAD_HEADER_SPLIT`` +* ``RTE_ETH_RX_OFFLOAD_HEADER_SPLIT`` * ``fdir_conf->mode``
doc/guides/nics/intel_vf.rst +5 -5
@@ -216,21 +216,21 @@ For example, * If the max number of VFs (max_vfs) is set in the range of 1 to 32: If the number of Rx queues is specified as 4 (``--rxq=4`` in testpmd), then there are totally 32 - pools (ETH_32_POOLS), and each VF could have 4 Rx queues; + pools (RTE_ETH_32_POOLS), and each VF could have 4 Rx queues; If the number of Rx queues is specified as 2 (``--rxq=2`` in testpmd), then there are totally 32 - pools (ETH_32_POOLS), and each VF could have 2 Rx queues; + pools (RTE_ETH_32_POOLS), and each VF could have 2 Rx queues; * If the max number of VFs (max_vfs) is in the range of 33 to 64: If the number of Rx queues in specified as 4 (``--rxq=4`` in testpmd), then error message is expected as ``rxq`` is not correct at this case; - If the number of rxq is 2 (``--rxq=2`` in testpmd), then there is totally 64 pools (ETH_64_POOLS), + If the number of rxq is 2 (``--rxq=2`` in testpmd), then there is totally 64 pools (RTE_ETH_64_POOLS), and each VF have 2 Rx queues; - On host, to enable VF RSS functionality, rx mq mode should be set as ETH_MQ_RX_VMDQ_RSS - or ETH_MQ_RX_RSS mode, and SRIOV mode should be activated (max_vfs >= 1). + On host, to enable VF RSS functionality, rx mq mode should be set as RTE_ETH_MQ_RX_VMDQ_RSS + or RTE_ETH_MQ_RX_RSS mode, and SRIOV mode should be activated (max_vfs >= 1). It also needs config VF RSS information like hash function, RSS key, RSS key length. .. note::
doc/guides/nics/ixgbe.rst +6 -6
@@ -89,13 +89,13 @@ Other features are supported using optional MACRO configuration. They include: To guarantee the constraint, capabilities in dev_conf.rxmode.offloads will be checked: -* DEV_RX_OFFLOAD_VLAN_STRIP +* RTE_ETH_RX_OFFLOAD_VLAN_STRIP -* DEV_RX_OFFLOAD_VLAN_EXTEND +* RTE_ETH_RX_OFFLOAD_VLAN_EXTEND -* DEV_RX_OFFLOAD_CHECKSUM +* RTE_ETH_RX_OFFLOAD_CHECKSUM -* DEV_RX_OFFLOAD_HEADER_SPLIT +* RTE_ETH_RX_OFFLOAD_HEADER_SPLIT * dev_conf
@@ -163,13 +163,13 @@ l3fwd ~~~~~ When running l3fwd with vPMD, there is one thing to note. -In the configuration, ensure that DEV_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads is NOT set. +In the configuration, ensure that RTE_ETH_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads is NOT set. Otherwise, by default, RX vPMD is disabled. load_balancer ~~~~~~~~~~~~~ -As in the case of l3fwd, to enable vPMD, do NOT set DEV_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads. +As in the case of l3fwd, to enable vPMD, do NOT set RTE_ETH_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads. In addition, for improved performance, use -bsz "(32,32),(64,64),(32,32)" in load_balancer to avoid using the default burst size of 144.
doc/guides/nics/mlx5.rst +2 -2
@@ -371,7 +371,7 @@ Limitations - CRC: - - ``DEV_RX_OFFLOAD_KEEP_CRC`` cannot be supported with decapsulation + - ``RTE_ETH_RX_OFFLOAD_KEEP_CRC`` cannot be supported with decapsulation for some NICs (such as ConnectX-6 Dx, ConnectX-6 Lx, and BlueField-2). The capability bit ``scatter_fcs_w_decap_disable`` shows NIC support.
@@ -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
@@ -275,7 +275,7 @@ An example utility for eBPF instruction generation in the format of C arrays wil be added in next releases TAP reports on supported RSS functions as part of dev_infos_get callback: -``ETH_RSS_IP``, ``ETH_RSS_UDP`` and ``ETH_RSS_TCP``. +``RTE_ETH_RSS_IP``, ``RTE_ETH_RSS_UDP`` and ``RTE_ETH_RSS_TCP``. **Known limitation:** TAP supports all of the above hash functions together and not in partial combinations.
doc/guides/prog_guide/generic_segmentation_offload_lib.rst +4 -4
@@ -194,11 +194,11 @@ To segment an outgoing packet, an application must: - the bit mask of required GSO types. The GSO library uses the same macros as those that describe a physical device's TX offloading capabilities (i.e. - ``DEV_TX_OFFLOAD_*_TSO``) for gso_types. For example, if an application + ``RTE_ETH_TX_OFFLOAD_*_TSO``) for gso_types. For example, if an application wants to segment TCP/IPv4 packets, it should set gso_types to - ``DEV_TX_OFFLOAD_TCP_TSO``. The only other supported values currently - supported for gso_types are ``DEV_TX_OFFLOAD_VXLAN_TNL_TSO``, and - ``DEV_TX_OFFLOAD_GRE_TNL_TSO``; a combination of these macros is also + ``RTE_ETH_TX_OFFLOAD_TCP_TSO``. The only other supported values currently + supported for gso_types are ``RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO``, and + ``RTE_ETH_TX_OFFLOAD_GRE_TNL_TSO``; a combination of these macros is also allowed. - a flag, that indicates whether the IPv4 headers of output segments should
doc/guides/prog_guide/mbuf_lib.rst +9 -9
@@ -137,7 +137,7 @@ a vxlan-encapsulated tcp packet: mb->ol_flags |= PKT_TX_IPV4 | PKT_TX_IP_CSUM set out_ip checksum to 0 in the packet - This is supported on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM. + This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM. - calculate checksum of out_ip and out_udp::
@@ -147,8 +147,8 @@ a vxlan-encapsulated tcp packet: set out_ip checksum to 0 in the packet set out_udp checksum to pseudo header using rte_ipv4_phdr_cksum() - This is supported on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM - and DEV_TX_OFFLOAD_UDP_CKSUM. + This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM + and RTE_ETH_TX_OFFLOAD_UDP_CKSUM. - calculate checksum of in_ip::
@@ -158,7 +158,7 @@ a vxlan-encapsulated tcp packet: set in_ip checksum to 0 in the packet This is similar to case 1), but l2_len is different. It is supported - on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM. + on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM. Note that it can only work if outer L4 checksum is 0. - calculate checksum of in_ip and in_tcp::
@@ -170,8 +170,8 @@ a vxlan-encapsulated tcp packet: set in_tcp checksum to pseudo header using rte_ipv4_phdr_cksum() This is similar to case 2), but l2_len is different. It is supported - on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM and - DEV_TX_OFFLOAD_TCP_CKSUM. + on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM and + RTE_ETH_TX_OFFLOAD_TCP_CKSUM. Note that it can only work if outer L4 checksum is 0. - segment inner TCP::
@@ -185,7 +185,7 @@ a vxlan-encapsulated tcp packet: set in_tcp checksum to pseudo header without including the IP payload length using rte_ipv4_phdr_cksum() - This is supported on hardware advertising DEV_TX_OFFLOAD_TCP_TSO. + This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_TCP_TSO. Note that it can only work if outer L4 checksum is 0. - calculate checksum of out_ip, in_ip, in_tcp::
@@ -200,8 +200,8 @@ a vxlan-encapsulated tcp packet: set in_ip checksum to 0 in the packet set in_tcp checksum to pseudo header using rte_ipv4_phdr_cksum() - This is supported on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM, - DEV_TX_OFFLOAD_UDP_CKSUM and DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM. + This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM, + RTE_ETH_TX_OFFLOAD_UDP_CKSUM and RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM. The list of flags and their precise meaning is described in the mbuf API documentation (rte_mbuf.h). Also refer to the testpmd source code
doc/guides/prog_guide/poll_mode_drv.rst +4 -4
@@ -57,7 +57,7 @@ Whenever needed and appropriate, asynchronous communication should be introduced Avoiding lock contention is a key issue in a multi-core environment. To address this issue, PMDs are designed to work with per-core private resources as much as possible. -For example, a PMD maintains a separate transmit queue per-core, per-port, if the PMD is not ``DEV_TX_OFFLOAD_MT_LOCKFREE`` capable. +For example, a PMD maintains a separate transmit queue per-core, per-port, if the PMD is not ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capable. In the same way, every receive queue of a port is assigned to and polled by a single logical core (lcore). To comply with Non-Uniform Memory Access (NUMA), memory management is designed to assign to each logical core
@@ -119,7 +119,7 @@ This is also true for the pipe-line model provided all logical cores used are lo Multiple logical cores should never share receive or transmit queues for interfaces since this would require global locks and hinder performance. -If the PMD is ``DEV_TX_OFFLOAD_MT_LOCKFREE`` capable, multiple threads can invoke ``rte_eth_tx_burst()`` +If the PMD is ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capable, multiple threads can invoke ``rte_eth_tx_burst()`` concurrently on the same tx queue without SW lock. This PMD feature found in some NICs and useful in the following use cases: * Remove explicit spinlock in some applications where lcores are not mapped to Tx queues with 1:1 relation.
@@ -127,7 +127,7 @@ concurrently on the same tx queue without SW lock. This PMD feature found in som * In the eventdev use case, avoid dedicating a separate TX core for transmitting and thus enables more scaling as all workers can send the packets. -See `Hardware Offload`_ for ``DEV_TX_OFFLOAD_MT_LOCKFREE`` capability probing details. +See `Hardware Offload`_ for ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capability probing details. Device Identification, Ownership and Configuration --------------------------------------------------
@@ -311,7 +311,7 @@ The ``dev_info->[rt]x_queue_offload_capa`` returned from ``rte_eth_dev_info_get( The ``dev_info->[rt]x_offload_capa`` returned from ``rte_eth_dev_info_get()`` includes all pure per-port and per-queue offloading capabilities. Supported offloads can be either per-port or per-queue. -Offloads are enabled using the existing ``DEV_TX_OFFLOAD_*`` or ``DEV_RX_OFFLOAD_*`` flags. +Offloads are enabled using the existing ``RTE_ETH_TX_OFFLOAD_*`` or ``RTE_ETH_RX_OFFLOAD_*`` flags. Any requested offloading by an application must be within the device capabilities. Any offloading is disabled by default if it is not set in the parameter ``dev_conf->[rt]xmode.offloads`` to ``rte_eth_dev_configure()`` and
doc/guides/prog_guide/rte_flow.rst +17 -17
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -93,10 +93,10 @@ static const char *valid_arguments[] = { };static struct rte_eth_link pmd_link = { - .link_speed =ETH_SPEED_NUM_10G , - .link_duplex =ETH_LINK_FULL_DUPLEX , - .link_status =ETH_LINK_DOWN , - .link_autoneg =ETH_LINK_FIXED , + .link_speed =RTE_ETH_SPEED_NUM_10G , + .link_duplex =RTE_ETH_LINK_FULL_DUPLEX , + .link_status =RTE_ETH_LINK_DOWN , + .link_autoneg =RTE_ETH_LINK_FIXED , };RTE_LOG_REGISTER_DEFAULT (af_packet_logtype,NOTICE );
@@ -290,7 +290,7 @@ eth_af_packet_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)static int eth_dev_start (struct rte_eth_dev *dev) { - dev->data->dev_link.link_status =ETH_LINK_UP ; + dev->data->dev_link.link_status =RTE_ETH_LINK_UP ;return 0 ; }
@@ -320,7 +320,7 @@ eth_dev_stop(struct rte_eth_dev *dev) internals->tx_queue[i].sockfd =-1 ; } - dev->data->dev_link.link_status =ETH_LINK_DOWN ; + dev->data->dev_link.link_status =RTE_ETH_LINK_DOWN ;return 0 ; }
@@ -331,7 +331,7 @@ eth_dev_configure(struct rte_eth_dev *dev __rte_unused)const struct rte_eth_rxmode *rxmode = &dev_conf->rxmode;struct pmd_internals *internals = dev->data->dev_private; - internals->vlan_strip = !!(rxmode->offloads &DEV_RX_OFFLOAD_VLAN_STRIP ); + internals->vlan_strip = !!(rxmode->offloads &RTE_ETH_RX_OFFLOAD_VLAN_STRIP );return 0 ; }
@@ -346,9 +346,9 @@ eth_dev_info(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) dev_info->max_rx_queues = (uint16_t )internals->nb_queues; dev_info->max_tx_queues = (uint16_t )internals->nb_queues; dev_info->min_rx_bufsize =0 ; - dev_info->tx_offload_capa =DEV_TX_OFFLOAD_MULTI_SEGS | -DEV_TX_OFFLOAD_VLAN_INSERT ; - dev_info->rx_offload_capa =DEV_RX_OFFLOAD_VLAN_STRIP ; + dev_info->tx_offload_capa =RTE_ETH_TX_OFFLOAD_MULTI_SEGS | +RTE_ETH_TX_OFFLOAD_VLAN_INSERT ; + dev_info->rx_offload_capa =RTE_ETH_RX_OFFLOAD_VLAN_STRIP ;return 0 ; }
drivers/net/af_xdp/rte_eth_af_xdp.c +6 -6
@@ -163,10 +163,10 @@ static const char * const valid_arguments[] = { };static const struct rte_eth_link pmd_link = { - .link_speed =ETH_SPEED_NUM_10G , - .link_duplex =ETH_LINK_FULL_DUPLEX , - .link_status =ETH_LINK_DOWN , - .link_autoneg =ETH_LINK_AUTONEG + .link_speed =RTE_ETH_SPEED_NUM_10G , + .link_duplex =RTE_ETH_LINK_FULL_DUPLEX , + .link_status =RTE_ETH_LINK_DOWN , + .link_autoneg =RTE_ETH_LINK_AUTONEG };/* List which tracks PMDs to facilitate sharing UMEMs across them. */
@@ -652,7 +652,7 @@ eth_af_xdp_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)static int eth_dev_start (struct rte_eth_dev *dev) { - dev->data->dev_link.link_status =ETH_LINK_UP ; + dev->data->dev_link.link_status =RTE_ETH_LINK_UP ;return 0 ; }
@@ -661,7 +661,7 @@ eth_dev_start(struct rte_eth_dev *dev)static int eth_dev_stop (struct rte_eth_dev *dev) { - dev->data->dev_link.link_status =ETH_LINK_DOWN ; + dev->data->dev_link.link_status =RTE_ETH_LINK_DOWN ;return 0 ; }
drivers/net/ark/ark_ethdev.c +8 -8
@@ -736,14 +736,14 @@ eth_ark_dev_info_get(struct rte_eth_dev *dev, .nb_align = ARK_TX_MIN_QUEUE}; /* power of 2 *//* ARK PMD supports all line rates, how do we indicate that here ?? */ - dev_info->speed_capa = (ETH_LINK_SPEED_1G | -ETH_LINK_SPEED_10G | -ETH_LINK_SPEED_25G | -ETH_LINK_SPEED_40G | -ETH_LINK_SPEED_50G | -ETH_LINK_SPEED_100G ); - - dev_info->rx_offload_capa =DEV_RX_OFFLOAD_TIMESTAMP ; + dev_info->speed_capa = (RTE_ETH_LINK_SPEED_1G | +RTE_ETH_LINK_SPEED_10G | +RTE_ETH_LINK_SPEED_25G | +RTE_ETH_LINK_SPEED_40G | +RTE_ETH_LINK_SPEED_50G | +RTE_ETH_LINK_SPEED_100G ); + + dev_info->rx_offload_capa =RTE_ETH_RX_OFFLOAD_TIMESTAMP ;return 0 ; }
drivers/net/atlantic/atl_ethdev.c +44 -44
174 lines not on this page · raw message
drivers/net/atlantic/atl_ethdev.h +9 -9
@@ -11,15 +11,15 @@#include "hw_atl/hw_atl_utils.h" #define ATL_RSS_OFFLOAD_ALL ( \ - ETH_RSS_IPV4 | \ - ETH_RSS_NONFRAG_IPV4_TCP | \ - ETH_RSS_NONFRAG_IPV4_UDP | \ - ETH_RSS_IPV6 | \ - ETH_RSS_NONFRAG_IPV6_TCP | \ - ETH_RSS_NONFRAG_IPV6_UDP | \ - ETH_RSS_IPV6_EX | \ - ETH_RSS_IPV6_TCP_EX | \ - ETH_RSS_IPV6_UDP_EX) + RTE_ETH_RSS_IPV4 | \ + RTE_ETH_RSS_NONFRAG_IPV4_TCP | \ + RTE_ETH_RSS_NONFRAG_IPV4_UDP | \ + RTE_ETH_RSS_IPV6 | \ + RTE_ETH_RSS_NONFRAG_IPV6_TCP | \ + RTE_ETH_RSS_NONFRAG_IPV6_UDP | \ + RTE_ETH_RSS_IPV6_EX | \ + RTE_ETH_RSS_IPV6_TCP_EX | \ + RTE_ETH_RSS_IPV6_UDP_EX)#define ATL_DEV_PRIVATE_TO_HW (adapter) \ (&((struct atl_adapter *)adapter)->hw)
drivers/net/atlantic/atl_rxtx.c +3 -3
@@ -145,10 +145,10 @@ atl_rx_queue_setup(struct rte_eth_dev *dev, uint16_t rx_queue_id, rxq->rx_free_thresh = rx_conf->rx_free_thresh; rxq->l3_csum_enabled = dev->data->dev_conf.rxmode.offloads & -DEV_RX_OFFLOAD_IPV4_CKSUM ; +RTE_ETH_RX_OFFLOAD_IPV4_CKSUM ; rxq->l4_csum_enabled = dev->data->dev_conf.rxmode.offloads & - (DEV_RX_OFFLOAD_UDP_CKSUM |DEV_RX_OFFLOAD_TCP_CKSUM ); -if (dev->data->dev_conf.rxmode.offloads &DEV_RX_OFFLOAD_KEEP_CRC ) + (RTE_ETH_RX_OFFLOAD_UDP_CKSUM |RTE_ETH_RX_OFFLOAD_TCP_CKSUM ); +if (dev->data->dev_conf.rxmode.offloads &RTE_ETH_RX_OFFLOAD_KEEP_CRC )PMD_DRV_LOG (ERR ,"PMD does not support KEEP_CRC offload" );/* allocate memory for the software ring */
drivers/net/avp/avp_ethdev.c +13 -13
@@ -1998,9 +1998,9 @@ avp_dev_configure(struct rte_eth_dev *eth_dev)/* Setup required number of queues */ _avp_set_queue_counts (eth_dev); - mask = (ETH_VLAN_STRIP_MASK | -ETH_VLAN_FILTER_MASK | -ETH_VLAN_EXTEND_MASK ); + mask = (RTE_ETH_VLAN_STRIP_MASK | +RTE_ETH_VLAN_FILTER_MASK | +RTE_ETH_VLAN_EXTEND_MASK ); ret =avp_vlan_offload_set (eth_dev, mask);if (ret <0 ) { PMD_DRV_LOG(ERR, "VLAN offload set failed by host, ret=%d\n",
@@ -2140,8 +2140,8 @@ avp_dev_link_update(struct rte_eth_dev *eth_dev,struct avp_dev *avp =AVP_DEV_PRIVATE_TO_HW (eth_dev->data->dev_private);struct rte_eth_link *link = ð_dev->data->dev_link; - link->link_speed =ETH_SPEED_NUM_10G ; - link->link_duplex =ETH_LINK_FULL_DUPLEX ; + link->link_speed =RTE_ETH_SPEED_NUM_10G ; + link->link_duplex =RTE_ETH_LINK_FULL_DUPLEX ; link->link_status = !!(avp->flags &AVP_F_LINKUP );return -1 ;
@@ -2191,8 +2191,8 @@ avp_dev_info_get(struct rte_eth_dev *eth_dev, dev_info->max_rx_pktlen = avp->max_rx_pkt_len; dev_info->max_mac_addrs =AVP_MAX_MAC_ADDRS ;if (avp->host_features &RTE_AVP_FEATURE_VLAN_OFFLOAD ) { - dev_info->rx_offload_capa =DEV_RX_OFFLOAD_VLAN_STRIP ; - dev_info->tx_offload_capa =DEV_TX_OFFLOAD_VLAN_INSERT ; + dev_info->rx_offload_capa =RTE_ETH_RX_OFFLOAD_VLAN_STRIP ; + dev_info->tx_offload_capa =RTE_ETH_TX_OFFLOAD_VLAN_INSERT ; }return 0 ;
@@ -2205,9 +2205,9 @@ avp_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask)struct rte_eth_conf *dev_conf = ð_dev->data->dev_conf;uint64_t offloads = dev_conf->rxmode.offloads; -if (mask Ð_VLAN_STRIP_MASK ) { +if (mask &RTE_ETH_VLAN_STRIP_MASK ) {if (avp->host_features &RTE_AVP_FEATURE_VLAN_OFFLOAD ) { -if (offloads &DEV_RX_OFFLOAD_VLAN_STRIP ) +if (offloads &RTE_ETH_RX_OFFLOAD_VLAN_STRIP ) avp->features |=RTE_AVP_FEATURE_VLAN_OFFLOAD ;else avp->features &= ~RTE_AVP_FEATURE_VLAN_OFFLOAD ;
@@ -2216,13 +2216,13 @@ avp_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask) } } -if (mask Ð_VLAN_FILTER_MASK ) { -if (offloads &DEV_RX_OFFLOAD_VLAN_FILTER ) +if (mask &RTE_ETH_VLAN_FILTER_MASK ) { +if (offloads &RTE_ETH_RX_OFFLOAD_VLAN_FILTER )PMD_DRV_LOG (ERR ,"VLAN filter offload not supported\n" ); } -if (mask Ð_VLAN_EXTEND_MASK ) { -if (offloads &DEV_RX_OFFLOAD_VLAN_EXTEND ) +if (mask &RTE_ETH_VLAN_EXTEND_MASK ) { +if (offloads &RTE_ETH_RX_OFFLOAD_VLAN_EXTEND )PMD_DRV_LOG (ERR ,"VLAN extend offload not supported\n" ); }
drivers/net/axgbe/axgbe_dev.c +3 -3
@@ -840,11 +840,11 @@ static void axgbe_rss_options(struct axgbe_port *pdata) pdata->rss_hf = rss_conf->rss_hf; rss_hf = rss_conf->rss_hf; -if (rss_hf & (ETH_RSS_IPV4 |ETH_RSS_IPV6 )) +if (rss_hf & (RTE_ETH_RSS_IPV4 |RTE_ETH_RSS_IPV6 ))AXGMAC_SET_BITS (pdata->rss_options,MAC_RSSCR ,IP2TE ,1 ); -if (rss_hf & (ETH_RSS_NONFRAG_IPV4_TCP |ETH_RSS_NONFRAG_IPV6_TCP )) +if (rss_hf & (RTE_ETH_RSS_NONFRAG_IPV4_TCP |RTE_ETH_RSS_NONFRAG_IPV6_TCP ))AXGMAC_SET_BITS (pdata->rss_options,MAC_RSSCR ,TCP4TE ,1 ); -if (rss_hf & (ETH_RSS_NONFRAG_IPV4_UDP |ETH_RSS_NONFRAG_IPV6_UDP )) +if (rss_hf & (RTE_ETH_RSS_NONFRAG_IPV4_UDP |RTE_ETH_RSS_NONFRAG_IPV6_UDP ))AXGMAC_SET_BITS (pdata->rss_options,MAC_RSSCR ,UDP4TE ,1 ); }
drivers/net/axgbe/axgbe_ethdev.c +52 -52
86 lines not on this page · raw message
drivers/net/bnxt/bnxt.h +31 -31
62 lines not on this page · raw message
drivers/net/bnxt/bnxt_ethdev.c +86 -86
172 lines not on this page · raw message
drivers/net/bnxt/bnxt_hwrm.c +56 -56
112 lines not on this page · raw message
drivers/net/bnxt/bnxt_rxtx_vec_common.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/bonding/rte_eth_bond_8023ad.c +8 -8
Lines of this file are not shown. View the raw message.
drivers/net/bonding/rte_eth_bond_pmd.c +25 -25
50 lines not on this page · raw message
drivers/net/cnxk/cn10k_ethdev.c +21 -21
42 lines not on this page · raw message
drivers/net/cnxk/cn9k_ethdev.c +30 -30
60 lines not on this page · raw message
drivers/net/cnxk/cnxk_ethdev.c +56 -56
112 lines not on this page · raw message
drivers/net/cnxk/cnxk_ethdev.h +26 -23
49 lines not on this page · raw message
drivers/net/cnxk/cnxk_ethdev_ops.c +53 -53
106 lines not on this page · raw message
drivers/net/cxgbe/cxgbe.h +23 -23
46 lines not on this page · raw message
drivers/net/cxgbe/cxgbe_ethdev.c +21 -21
42 lines not on this page · raw message
drivers/net/dpaa/dpaa_ethdev.c +90 -90
180 lines not on this page · raw message
drivers/net/dpaa2/base/dpaa2_hw_dpni.c +23 -24
47 lines not on this page · raw message
drivers/net/dpaa2/dpaa2_ethdev.c +69 -69
138 lines not on this page · raw message
drivers/net/e1000/em_ethdev.c +32 -32
64 lines not on this page · raw message
drivers/net/e1000/igb_ethdev.c +79 -79
158 lines not on this page · raw message
drivers/net/e1000/igb_rxtx.c +58 -58
116 lines not on this page · raw message
drivers/net/ena/ena_ethdev.c +35 -35
70 lines not on this page · raw message
drivers/net/ena/ena_rss.c +37 -37
74 lines not on this page · raw message
drivers/net/enic/enic_ethdev.c +44 -44
88 lines not on this page · raw message
drivers/net/enic/enic_res.c +25 -25
50 lines not on this page · raw message
drivers/net/failsafe/failsafe_ops.c +39 -39
78 lines not on this page · raw message
drivers/net/fm10k/fm10k_ethdev.c +73 -73
146 lines not on this page · raw message
drivers/net/hinic/base/hinic_pmd_hwdev.c +11 -11
Lines of this file are not shown. View the raw message.
drivers/net/hinic/hinic_pmd_ethdev.c +68 -68
136 lines not on this page · raw message
drivers/net/hns3/hns3_ethdev.c +176 -176
352 lines not on this page · raw message
drivers/net/hns3/hns3_ethdev_vf.c +50 -50
100 lines not on this page · raw message
drivers/net/hns3/hns3_rss.c +54 -54
108 lines not on this page · raw message
drivers/net/i40e/i40e_ethdev.c +136 -136
272 lines not on this page · raw message
drivers/net/i40e/i40e_hash.c +79 -79
158 lines not on this page · raw message
drivers/net/i40e/i40e_rxtx_vec_avx512.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/i40e/i40e_rxtx_vec_common.h +4 -4
Lines of this file are not shown. View the raw message.
drivers/net/i40e/i40e_vf_representor.c +24 -24
48 lines not on this page · raw message
drivers/net/iavf/iavf_ethdev.c +89 -89
178 lines not on this page · raw message
drivers/net/iavf/iavf_hash.c +160 -160
320 lines not on this page · raw message
drivers/net/iavf/iavf_rxtx_vec_avx512.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/ice/ice_dcf_ethdev.c +43 -43
86 lines not on this page · raw message
drivers/net/ice/ice_dcf_vf_representor.c +28 -28
56 lines not on this page · raw message
drivers/net/ice/ice_ethdev.c +90 -90
180 lines not on this page · raw message
drivers/net/ice/ice_hash.c +145 -145
290 lines not on this page · raw message
drivers/net/ice/ice_rxtx_vec_common.h +14 -14
Lines of this file are not shown. View the raw message.
drivers/net/igc/igc_ethdev.c +69 -69
138 lines not on this page · raw message
drivers/net/igc/igc_ethdev.h +27 -27
54 lines not on this page · raw message
drivers/net/igc/igc_txrx.c +24 -24
48 lines not on this page · raw message
drivers/net/ionic/ionic_ethdev.c +69 -69
138 lines not on this page · raw message
drivers/net/ipn3ke/ipn3ke_representor.c +32 -32
64 lines not on this page · raw message
drivers/net/ixgbe/ixgbe_ethdev.c +142 -143
285 lines not on this page · raw message
drivers/net/ixgbe/ixgbe_rxtx.c +124 -125
249 lines not on this page · raw message
drivers/net/ixgbe/ixgbe_rxtx_vec_common.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ixgbe/ixgbe_vf_representor.c +8 -8
Lines of this file are not shown. View the raw message.
drivers/net/liquidio/lio_ethdev.c +57 -57
114 lines not on this page · raw message
drivers/net/mlx5/linux/mlx5_ethdev_os.c +27 -27
54 lines not on this page · raw message
drivers/net/mlx5/mlx5_flow.c +27 -27
54 lines not on this page · raw message
drivers/net/mlx5/mlx5_flow_dv.c +22 -22
44 lines not on this page · raw message
drivers/net/mlx5/mlx5_txq.c +29 -29
58 lines not on this page · raw message
drivers/net/mvpp2/mrvl_ethdev.c +56 -56
112 lines not on this page · raw message
drivers/net/netvsc/hn_ethdev.c +35 -35
70 lines not on this page · raw message
drivers/net/netvsc/hn_rndis.c +25 -25
50 lines not on this page · raw message
drivers/net/nfp/nfp_common.c +61 -61
122 lines not on this page · raw message
drivers/net/ngbe/ngbe_ethdev.c +25 -25
50 lines not on this page · raw message
drivers/net/octeontx/octeontx_ethdev.c +37 -37
74 lines not on this page · raw message
drivers/net/octeontx/octeontx_ethdev.h +15 -15
Lines of this file are not shown. View the raw message.
drivers/net/octeontx/octeontx_ethdev_ops.c +13 -13
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_ethdev.c +48 -48
96 lines not on this page · raw message
drivers/net/octeontx2/otx2_ethdev.h +32 -32
64 lines not on this page · raw message
drivers/net/octeontx2/otx2_ethdev_devargs.c +6 -6
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_ethdev_ops.c +7 -7
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_ethdev_sec.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_flow_ctrl.c +18 -18
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_flow_parse.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_rss.c +35 -35
70 lines not on this page · raw message
drivers/net/octeontx2/otx2_vlan.c +21 -21
42 lines not on this page · raw message
drivers/net/octeontx_ep/otx_ep_ethdev.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/qede/qede_ethdev.c +78 -78
156 lines not on this page · raw message
drivers/net/qede/qede_filter.c +21 -21
42 lines not on this page · raw message
drivers/net/sfc/sfc_ethdev.c +25 -25
50 lines not on this page · raw message
drivers/net/sfc/sfc_port.c +26 -26
52 lines not on this page · raw message
drivers/net/sfc/sfc_rx.c +25 -25
50 lines not on this page · raw message
drivers/net/sfc/sfc_tx.c +25 -25
50 lines not on this page · raw message
drivers/net/szedata2/rte_eth_szedata2.c +7 -7
Lines of this file are not shown. View the raw message.
drivers/net/tap/rte_eth_tap.c +52 -52
104 lines not on this page · raw message
drivers/net/thunderx/nicvf_ethdev.c +51 -51
102 lines not on this page · raw message
drivers/net/txgbe/txgbe_ethdev.c +121 -121
242 lines not on this page · raw message
drivers/net/txgbe/txgbe_rxtx.c +154 -154
308 lines not on this page · raw message
drivers/net/virtio/virtio_ethdev.c +62 -62
124 lines not on this page · raw message
drivers/net/vmxnet3/vmxnet3_ethdev.c +36 -36
72 lines not on this page · raw message
examples/eventdev_pipeline/pipeline_worker_generic.c +8 -8
Lines of this file are not shown. View the raw message.
examples/eventdev_pipeline/pipeline_worker_tx.c +6 -6
Lines of this file are not shown. View the raw message.
examples/multi_process/client_server_mp/mp_server/init.c +2 -2
Lines of this file are not shown. View the raw message.
examples/multi_process/symmetric_mp/main.c +7 -7
Lines of this file are not shown. View the raw message.
examples/performance-thread/l3fwd-thread/main.c +8 -8
Lines of this file are not shown. View the raw message.
lib/ethdev/rte_ethdev.c +89 -92
181 lines not on this page · raw message
lib/ethdev/rte_ethdev.h +648 -387
1,035 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.31.1
Part of the diff is not shown here. View the raw message.
Quoted 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.
Signed-off-by Ferruh Yigit <[email protected]>Acked-by Tyler Retzlaff <[email protected]>Acked-by Andrew Rybchenko <[email protected]>Acked-by Ajit Khaparde <[email protected]>Acked-by Jerin Jacob <[email protected]>Acked-by Wisam Jaddo <[email protected]>Acked-by Rosen Xu <[email protected]>Acked-by Chenbo Xia <[email protected]>Acked-by Hemant Agrawal <[email protected]>---
Cc: David Marchand <[email protected]>
Cc: Thomas Monjalon <[email protected]>v2:
* Updated internal components
* Removed deprecation noticev3:
* Updated missing macros / structs that David highlighted
* Added release notes updatev4:
* 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-netv6:
* 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.
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.
Signed-off-by Ferruh Yigit <[email protected]>Acked-by Tyler Retzlaff <[email protected]>Acked-by Andrew Rybchenko <[email protected]>Acked-by Ajit Khaparde <[email protected]>Acked-by Jerin Jacob <[email protected]>Acked-by Wisam Jaddo <[email protected]>Acked-by Rosen Xu <[email protected]>Acked-by Chenbo Xia <[email protected]>Acked-by Hemant Agrawal <[email protected]>---
Cc: David Marchand <[email protected]>
Cc: Thomas Monjalon <[email protected]>v2:
* Updated internal components
* Removed deprecation noticev3:
* Updated missing macros / structs that David highlighted
* Added release notes updatev4:
* 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-netv6:
* 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.
Quoted 9 lines
-----Original Message-----
From: Yigit, Ferruh <[email protected]>Signed-off-by Ferruh Yigit <[email protected]>app/proc-info/main.c | 8 +- examples/l3fwd-power/main.c | 16 +-
PATCH v7 1/1 ethdev: add namespace
In reply to Ferruh YigitAdd 'RTE_ETH' namespace to all enums & macros in a backward compatible Add 'RTE_ETH' namespace to all enums & macros in a backward compatible way. The macros for backward compatibility can be removed in next LTS. Also updated some struct names to have 'rte_eth' prefix.
All internal components switched to using new names.
Syntax fixed on lines that this patch touches.
---
Cc: David Marchand <[email protected]>
Cc: Thomas Monjalon <[email protected]>
v2:
* Updated internal components
* Removed deprecation notice
v3:
* Updated missing macros / structs that David highlighted
* Added release notes update
v4:
* rebased on latest next-net
* depends on https://patches.dpdk.org/user/todo/dpdk/?series=19744
* Not able to complete scripts to update user code, although some shared by Aman:
https://patches.dpdk.org/project/dpdk/patch/[email protected]/
Sending new version for possible option to get this patch for -rc1 and work for scripts later, before release.
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
@@ -757,11 +757,11 @@ show_port(void) } ret =rte_eth_dev_flow_ctrl_get (i, &fc_conf); -if (ret ==0 && fc_conf.mode !=RTE_FC_NONE ) { +if (ret ==0 && fc_conf.mode !=RTE_ETH_FC_NONE ) { printf("\t -- flow control mode %s%s high %u low %u pause %u%s%s\n", - fc_conf.mode == RTE_FC_RX_PAUSE ? "rx " : - fc_conf.mode == RTE_FC_TX_PAUSE ? "tx " : - fc_conf.mode == RTE_FC_FULL ? "full" : "???", + fc_conf.mode == RTE_ETH_FC_RX_PAUSE ? "rx " : + fc_conf.mode == RTE_ETH_FC_TX_PAUSE ? "tx " : + fc_conf.mode == RTE_ETH_FC_FULL ? "full" : "???", fc_conf.autoneg ? " auto" : "", fc_conf.high_water, fc_conf.low_water,
app/test-eventdev/test_perf_common.c +2 -2
@@ -668,13 +668,13 @@ perf_ethdev_setup(struct evt_test *test, struct evt_options *opt)struct test_perf *t =evt_test_priv (test);struct rte_eth_conf port_conf = { .rxmode = { - .mq_mode =ETH_MQ_RX_RSS , + .mq_mode =RTE_ETH_MQ_RX_RSS , .split_hdr_size =0 , }, .rx_adv_conf = { .rss_conf = { .rss_key =NULL , - .rss_hf =ETH_RSS_IP , + .rss_hf =RTE_ETH_RSS_IP , }, }, };
app/test-eventdev/test_pipeline_common.c +5 -5
@@ -176,12 +176,12 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)struct rte_eth_rxconf rx_conf;struct rte_eth_conf port_conf = { .rxmode = { - .mq_mode =ETH_MQ_RX_RSS , + .mq_mode =RTE_ETH_MQ_RX_RSS , }, .rx_adv_conf = { .rss_conf = { .rss_key =NULL , - .rss_hf =ETH_RSS_IP , + .rss_hf =RTE_ETH_RSS_IP , }, }, };
@@ -223,7 +223,7 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt)if (!(caps &RTE_EVENT_ETH_RX_ADAPTER_CAP_INTERNAL_PORT )) local_port_conf.rxmode.offloads |= -DEV_RX_OFFLOAD_RSS_HASH ; +RTE_ETH_RX_OFFLOAD_RSS_HASH ; ret =rte_eth_dev_info_get (i, &dev_info);if (ret !=0 ) {
@@ -233,9 +233,9 @@ pipeline_ethdev_setup(struct evt_test *test, struct evt_options *opt) }/* Enable mbuf fast free if PMD has the capability. */ -if (dev_info.tx_offload_capa &DEV_TX_OFFLOAD_MBUF_FAST_FREE ) +if (dev_info.tx_offload_capa &RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE ) local_port_conf.txmode.offloads |= -DEV_TX_OFFLOAD_MBUF_FAST_FREE ; +RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE ; rx_conf = dev_info.default_rxconf; rx_conf.offloads = port_conf.rxmode.offloads;
app/test-flow-perf/config.h +1 -1
@@ -5,7 +5,7 @@#define FLOW_ITEM_MASK (_x) (UINT64_C(1) << _x)#define FLOW_ACTION_MASK (_x) (UINT64_C(1) << _x)#define FLOW_ATTR_MASK (_x) (UINT64_C(1) << _x) -#define GET_RSS_HF () (ETH_RSS_IP) +#define GET_RSS_HF () (RTE_ETH_RSS_IP)/* Configuration */ #define RXQ_NUM 4
app/test-pipeline/init.c +4 -4
@@ -70,16 +70,16 @@ struct app_params app = {static struct rte_eth_conf port_conf = { .rxmode = { .split_hdr_size =0 , - .offloads =DEV_RX_OFFLOAD_CHECKSUM , + .offloads =RTE_ETH_RX_OFFLOAD_CHECKSUM , }, .rx_adv_conf = { .rss_conf = { .rss_key =NULL , - .rss_hf =ETH_RSS_IP , + .rss_hf =RTE_ETH_RSS_IP , }, }, .txmode = { - .mq_mode =ETH_MQ_TX_NONE , + .mq_mode =RTE_ETH_MQ_TX_NONE , }, };
@@ -178,7 +178,7 @@ app_ports_check_link(void)RTE_LOG (INFO ,USER1 ,"Port %u %s\n" , port, link_status_text); -if (link.link_status ==ETH_LINK_DOWN ) +if (link.link_status ==RTE_ETH_LINK_DOWN ) all_ports_up =0 ; }
app/test-pmd/cmdline.c +143 -143
611 lines not on this page · raw message
app/test-pmd/config.c +100 -100
342 lines not on this page · raw message
app/test-pmd/csumonly.c +14 -14
@@ -485,7 +485,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info,if (info->l4_proto ==IPPROTO_TCP && tso_segsz) { ol_flags |=PKT_TX_IP_CKSUM ; }else { -if (tx_offloads &DEV_TX_OFFLOAD_IPV4_CKSUM ) { +if (tx_offloads &RTE_ETH_TX_OFFLOAD_IPV4_CKSUM ) { ol_flags |=PKT_TX_IP_CKSUM ; }else { ipv4_hdr->hdr_checksum =0 ;
@@ -502,7 +502,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info, udp_hdr = (struct rte_udp_hdr *)((char *)l3_hdr + info->l3_len);/* do not recalculate udp cksum if it was 0 */ if (udp_hdr->dgram_cksum !=0 ) { -if (tx_offloads &DEV_TX_OFFLOAD_UDP_CKSUM ) { +if (tx_offloads &RTE_ETH_TX_OFFLOAD_UDP_CKSUM ) { ol_flags |=PKT_TX_UDP_CKSUM ; }else { udp_hdr->dgram_cksum =0 ;
@@ -517,7 +517,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info, tcp_hdr = (struct rte_tcp_hdr *)((char *)l3_hdr + info->l3_len);if (tso_segsz) ol_flags |=PKT_TX_TCP_SEG ; -else if (tx_offloads &DEV_TX_OFFLOAD_TCP_CKSUM ) { +else if (tx_offloads &RTE_ETH_TX_OFFLOAD_TCP_CKSUM ) { ol_flags |=PKT_TX_TCP_CKSUM ; }else { tcp_hdr->cksum =0 ;
@@ -532,7 +532,7 @@ process_inner_cksums(void *l3_hdr, const struct testpmd_offload_info *info, ((char *)l3_hdr + info->l3_len);/* sctp payload must be a multiple of 4 to be * offloaded */ -if ((tx_offloads &DEV_TX_OFFLOAD_SCTP_CKSUM ) && +if ((tx_offloads &RTE_ETH_TX_OFFLOAD_SCTP_CKSUM ) && ((ipv4_hdr->total_length &0x3 ) ==0 )) { ol_flags |=PKT_TX_SCTP_CKSUM ; }else {
@@ -559,7 +559,7 @@ process_outer_cksums(void *outer_l3_hdr, struct testpmd_offload_info *info, ipv4_hdr->hdr_checksum =0 ; ol_flags |=PKT_TX_OUTER_IPV4 ; -if (tx_offloads &DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM ) ol_flags |=PKT_TX_OUTER_IP_CKSUM ;else ipv4_hdr->hdr_checksum =rte_ipv4_cksum (ipv4_hdr);
@@ -576,7 +576,7 @@ process_outer_cksums(void *outer_l3_hdr, struct testpmd_offload_info *info, ol_flags |=PKT_TX_TCP_SEG ;/* Skip SW outer UDP checksum generation if HW supports it */ -if (tx_offloads &DEV_TX_OFFLOAD_OUTER_UDP_CKSUM ) { +if (tx_offloads &RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM ) {if (info->outer_ethertype ==_htons (RTE_ETHER_TYPE_IPV4 )) udp_hdr->dgram_cksum =rte_ipv4_phdr_cksum (ipv4_hdr, ol_flags);
@@ -959,9 +959,9 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)if (info.is_tunnel ==1 ) {if (info.tunnel_tso_segsz || (tx_offloads & -DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM ) || +RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM ) || (tx_offloads & -DEV_TX_OFFLOAD_OUTER_UDP_CKSUM )) { +RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM )) { m->outer_l2_len = info.outer_l2_len; m->outer_l3_len = info.outer_l3_len; m->l2_len = info.l2_len;
@@ -1022,19 +1022,19 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)rte_be_to_cpu_16 (info.outer_ethertype), info.outer_l3_len);/* dump tx packet info */ -if ((tx_offloads & (DEV_TX_OFFLOAD_IPV4_CKSUM | -DEV_TX_OFFLOAD_UDP_CKSUM | -DEV_TX_OFFLOAD_TCP_CKSUM | -DEV_TX_OFFLOAD_SCTP_CKSUM )) || +if ((tx_offloads & (RTE_ETH_TX_OFFLOAD_IPV4_CKSUM | +RTE_ETH_TX_OFFLOAD_UDP_CKSUM | +RTE_ETH_TX_OFFLOAD_TCP_CKSUM | +RTE_ETH_TX_OFFLOAD_SCTP_CKSUM )) || info.tso_segsz !=0 )printf ("tx: m->l2_len=%d m->l3_len=%d " "m->l4_len=%d\n" , m->l2_len, m->l3_len, m->l4_len);if (info.is_tunnel ==1 ) {if ((tx_offloads & -DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM ) || +RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM ) || (tx_offloads & -DEV_TX_OFFLOAD_OUTER_UDP_CKSUM ) || +RTE_ETH_TX_OFFLOAD_OUTER_UDP_CKSUM ) || (tx_ol_flags &PKT_TX_OUTER_IPV6 )) printf("tx: m->outer_l2_len=%d " "m->outer_l3_len=%d\n",
app/test-pmd/flowgen.c +3 -3
@@ -99,11 +99,11 @@ pkt_burst_flow_gen(struct fwd_stream *fs) vlan_tci_outer = ports[fs->tx_port].tx_vlan_id_outer; tx_offloads = ports[fs->tx_port].dev_conf.txmode.offloads; -if (tx_offloads &DEV_TX_OFFLOAD_VLAN_INSERT ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_VLAN_INSERT ) ol_flags |=PKT_TX_VLAN_PKT ; -if (tx_offloads &DEV_TX_OFFLOAD_QINQ_INSERT ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_QINQ_INSERT ) ol_flags |=PKT_TX_QINQ_PKT ; -if (tx_offloads &DEV_TX_OFFLOAD_MACSEC_INSERT ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_MACSEC_INSERT ) ol_flags |=PKT_TX_MACSEC ;for (nb_pkt =0 ; nb_pkt < nb_pkt_per_burst; nb_pkt++) {
app/test-pmd/macfwd.c +3 -3
@@ -72,11 +72,11 @@ pkt_burst_mac_forward(struct fwd_stream *fs) fs->rx_packets += nb_rx; txp = &ports[fs->tx_port]; tx_offloads = txp->dev_conf.txmode.offloads; -if (tx_offloads &DEV_TX_OFFLOAD_VLAN_INSERT ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_VLAN_INSERT ) ol_flags =PKT_TX_VLAN_PKT ; -if (tx_offloads &DEV_TX_OFFLOAD_QINQ_INSERT ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_QINQ_INSERT ) ol_flags |=PKT_TX_QINQ_PKT ; -if (tx_offloads &DEV_TX_OFFLOAD_MACSEC_INSERT ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_MACSEC_INSERT ) ol_flags |=PKT_TX_MACSEC ;for (i =0 ; i < nb_rx; i++) {if (likely (i < nb_rx -1 ))
app/test-pmd/macswap_common.h +3 -3
@@ -10,11 +10,11 @@ ol_flags_init(uint64_t tx_offload) {uint64_t ol_flags =0 ; - ol_flags |= (tx_offload &DEV_TX_OFFLOAD_VLAN_INSERT ) ? + ol_flags |= (tx_offload &RTE_ETH_TX_OFFLOAD_VLAN_INSERT ) ?PKT_TX_VLAN :0 ; - ol_flags |= (tx_offload &DEV_TX_OFFLOAD_QINQ_INSERT ) ? + ol_flags |= (tx_offload &RTE_ETH_TX_OFFLOAD_QINQ_INSERT ) ?PKT_TX_QINQ :0 ; - ol_flags |= (tx_offload &DEV_TX_OFFLOAD_MACSEC_INSERT ) ? + ol_flags |= (tx_offload &RTE_ETH_TX_OFFLOAD_MACSEC_INSERT ) ?PKT_TX_MACSEC :0 ;return ol_flags;
app/test-pmd/parameters.c +27 -27
128 lines not on this page · raw message
app/test-pmd/testpmd.c +26 -26
154 lines not on this page · raw message
app/test-pmd/testpmd.h +1 -1
@@ -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
@@ -354,11 +354,11 @@ pkt_burst_transmit(struct fwd_stream *fs) tx_offloads = txp->dev_conf.txmode.offloads; vlan_tci = txp->tx_vlan_id; vlan_tci_outer = txp->tx_vlan_id_outer; -if (tx_offloads &DEV_TX_OFFLOAD_VLAN_INSERT ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_VLAN_INSERT ) ol_flags =PKT_TX_VLAN_PKT ; -if (tx_offloads &DEV_TX_OFFLOAD_QINQ_INSERT ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_QINQ_INSERT ) ol_flags |=PKT_TX_QINQ_PKT ; -if (tx_offloads &DEV_TX_OFFLOAD_MACSEC_INSERT ) +if (tx_offloads &RTE_ETH_TX_OFFLOAD_MACSEC_INSERT ) ol_flags |=PKT_TX_MACSEC ;/*
app/test/test_ethdev_link.c +34 -34
116 lines not on this page · raw message
app/test/test_event_eth_rx_adapter.c +2 -2
@@ -103,7 +103,7 @@ port_init_rx_intr(uint16_t port, struct rte_mempool *mp) {static const struct rte_eth_conf port_conf_default = { .rxmode = { - .mq_mode =ETH_MQ_RX_NONE , + .mq_mode =RTE_ETH_MQ_RX_NONE , }, .intr_conf = { .rxq =1 ,
@@ -118,7 +118,7 @@ port_init(uint16_t port, struct rte_mempool *mp) {static const struct rte_eth_conf port_conf_default = { .rxmode = { - .mq_mode =ETH_MQ_RX_NONE , + .mq_mode =RTE_ETH_MQ_RX_NONE , }, };
app/test/test_kni.c +1 -1
@@ -74,7 +74,7 @@ static const struct rte_eth_txconf tx_conf = {static const struct rte_eth_conf port_conf = { .txmode = { - .mq_mode =ETH_DCB_NONE , + .mq_mode =RTE_ETH_MQ_TX_NONE , }, };
app/test/test_link_bonding.c +2 -2
@@ -134,11 +134,11 @@ static uint16_t vlan_id = 0x100;static struct rte_eth_conf default_pmd_conf = { .rxmode = { - .mq_mode =ETH_MQ_RX_NONE , + .mq_mode =RTE_ETH_MQ_RX_NONE , .split_hdr_size =0 , }, .txmode = { - .mq_mode =ETH_MQ_TX_NONE , + .mq_mode =RTE_ETH_MQ_TX_NONE , }, .lpbk_mode =0 , };
app/test/test_link_bonding_mode4.c +2 -2
@@ -107,11 +107,11 @@ static struct link_bonding_unittest_params test_params = {static struct rte_eth_conf default_pmd_conf = { .rxmode = { - .mq_mode =ETH_MQ_RX_NONE , + .mq_mode =RTE_ETH_MQ_RX_NONE , .split_hdr_size =0 , }, .txmode = { - .mq_mode =ETH_MQ_TX_NONE , + .mq_mode =RTE_ETH_MQ_TX_NONE , }, .lpbk_mode =0 , };
app/test/test_link_bonding_rssconf.c +14 -14
@@ -52,7 +52,7 @@ struct slave_conf {struct rte_eth_rss_conf rss_conf;uint8_t rss_key[40 ]; -struct rte_eth_rss_reta_entry64 reta_conf[512 /RTE_RETA_GROUP_SIZE ]; +struct rte_eth_rss_reta_entry64 reta_conf[512 /RTE_ETH_RETA_GROUP_SIZE ];uint8_t is_slave;struct rte_ring *rxtx_queue[RXTX_QUEUE_COUNT ];
@@ -61,7 +61,7 @@ struct slave_conf {struct link_bonding_rssconf_unittest_params {uint8_t bond_port_id;struct rte_eth_dev_info bond_dev_info; -struct rte_eth_rss_reta_entry64 bond_reta_conf[512 /RTE_RETA_GROUP_SIZE ]; +struct rte_eth_rss_reta_entry64 bond_reta_conf[512 /RTE_ETH_RETA_GROUP_SIZE ];struct slave_conf slave_ports[SLAVE_COUNT ];struct rte_mempool *mbuf_pool;
@@ -80,27 +80,27 @@ static struct link_bonding_rssconf_unittest_params test_params = {*/ static struct rte_eth_conf default_pmd_conf = { .rxmode = { - .mq_mode =ETH_MQ_RX_NONE , + .mq_mode =RTE_ETH_MQ_RX_NONE , .split_hdr_size =0 , }, .txmode = { - .mq_mode =ETH_MQ_TX_NONE , + .mq_mode =RTE_ETH_MQ_TX_NONE , }, .lpbk_mode =0 , };static struct rte_eth_conf rss_pmd_conf = { .rxmode = { - .mq_mode =ETH_MQ_RX_RSS , + .mq_mode =RTE_ETH_MQ_RX_RSS , .split_hdr_size =0 , }, .txmode = { - .mq_mode =ETH_MQ_TX_NONE , + .mq_mode =RTE_ETH_MQ_TX_NONE , }, .rx_adv_conf = { .rss_conf = { .rss_key =NULL , - .rss_hf =ETH_RSS_IPV6 , + .rss_hf =RTE_ETH_RSS_IPV6 , }, }, .lpbk_mode =0 ,
@@ -207,13 +207,13 @@ bond_slaves(void)static int reta_set (uint16_t port_id,uint8_t value,int reta_size) { -struct rte_eth_rss_reta_entry64 reta_conf[512 /RTE_RETA_GROUP_SIZE ]; +struct rte_eth_rss_reta_entry64 reta_conf[512 /RTE_ETH_RETA_GROUP_SIZE ];int i, j; -for (i =0 ; i < reta_size /RTE_RETA_GROUP_SIZE ; i++) { +for (i =0 ; i < reta_size /RTE_ETH_RETA_GROUP_SIZE ; i++) {/* select all fields to set */ reta_conf[i].mask = ~0LL ; -for (j =0 ; j <RTE_RETA_GROUP_SIZE ; j++) +for (j =0 ; j <RTE_ETH_RETA_GROUP_SIZE ; j++) reta_conf[i].reta[j] = value; }
@@ -232,8 +232,8 @@ reta_check_synced(struct slave_conf *port)for (i =0 ; i < test_params.bond_dev_info.reta_size; i++) { -int index = i /RTE_RETA_GROUP_SIZE ; -int shift = i %RTE_RETA_GROUP_SIZE ; +int index = i /RTE_ETH_RETA_GROUP_SIZE ; +int shift = i %RTE_ETH_RETA_GROUP_SIZE ;if (port->reta_conf[index].reta[shift] != test_params.bond_reta_conf[index].reta[shift])
@@ -251,7 +251,7 @@ static intbond_reta_fetch (void) {unsigned j; -for (j =0 ; j < test_params.bond_dev_info.reta_size /RTE_RETA_GROUP_SIZE ; +for (j =0 ; j < test_params.bond_dev_info.reta_size /RTE_ETH_RETA_GROUP_SIZE ; j++) test_params.bond_reta_conf[j].mask = ~0LL ;
@@ -268,7 +268,7 @@ static int slave_reta_fetch(struct slave_conf *port) {unsigned j; -for (j =0 ; j < port->dev_info.reta_size /RTE_RETA_GROUP_SIZE ; j++) +for (j =0 ; j < port->dev_info.reta_size /RTE_ETH_RETA_GROUP_SIZE ; j++) port->reta_conf[j].mask = ~0LL ; TEST_ASSERT_SUCCESS(rte_eth_dev_rss_reta_query(port->port_id,
app/test/test_pmd_perf.c +6 -6
@@ -62,11 +62,11 @@ static struct rte_ether_addr ports_eth_addr[RTE_MAX_ETHPORTS];static struct rte_eth_conf port_conf = { .rxmode = { - .mq_mode =ETH_MQ_RX_NONE , + .mq_mode =RTE_ETH_MQ_RX_NONE , .split_hdr_size =0 , }, .txmode = { - .mq_mode =ETH_MQ_TX_NONE , + .mq_mode =RTE_ETH_MQ_TX_NONE , }, .lpbk_mode =1 ,/* enable loopback */ };
@@ -155,7 +155,7 @@ check_all_ports_link_status(uint16_t port_num, uint32_t port_mask)continue ; }/* clear all_ports_up flag if any link down */ -if (link.link_status ==ETH_LINK_DOWN ) { +if (link.link_status ==RTE_ETH_LINK_DOWN ) { all_ports_up =0 ;break ; }
@@ -822,7 +822,7 @@ test_set_rxtx_conf(cmdline_fixed_string_t mode)/* bulk alloc rx, full-featured tx */ tx_conf.tx_rs_thresh =32 ; tx_conf.tx_free_thresh =32 ; - port_conf.rxmode.offloads |=DEV_RX_OFFLOAD_CHECKSUM ; + port_conf.rxmode.offloads |=RTE_ETH_RX_OFFLOAD_CHECKSUM ;return 0 ; }else if (!strcmp (mode,"hybrid" )) {/* bulk alloc rx, vector tx
@@ -831,13 +831,13 @@ test_set_rxtx_conf(cmdline_fixed_string_t mode)*/ tx_conf.tx_rs_thresh =32 ; tx_conf.tx_free_thresh =32 ; - port_conf.rxmode.offloads |=DEV_RX_OFFLOAD_CHECKSUM ; + port_conf.rxmode.offloads |=RTE_ETH_RX_OFFLOAD_CHECKSUM ;return 0 ; }else if (!strcmp (mode,"full" )) {/* full feature rx,tx pair */ tx_conf.tx_rs_thresh =32 ; tx_conf.tx_free_thresh =32 ; - port_conf.rxmode.offloads |=DEV_RX_OFFLOAD_SCATTER ; + port_conf.rxmode.offloads |=RTE_ETH_RX_OFFLOAD_SCATTER ;return 0 ; }
app/test/virtual_pmd.c +5 -5
@@ -53,7 +53,7 @@ static int virtual_ethdev_stop(struct rte_eth_dev *eth_dev __rte_unused)void *pkt =NULL ;struct virtual_ethdev_private *prv = eth_dev->data->dev_private; - eth_dev->data->dev_link.link_status =ETH_LINK_DOWN ; + eth_dev->data->dev_link.link_status =RTE_ETH_LINK_DOWN ; eth_dev->data->dev_started =0 ;while (rte_ring_dequeue (prv->rx_queue, &pkt) != -ENOENT )rte_pktmbuf_free (pkt);
@@ -168,7 +168,7 @@ virtual_ethdev_link_update_success(struct rte_eth_dev *bonded_eth_dev, int wait_to_complete __rte_unused) {if (!bonded_eth_dev->data->dev_started) - bonded_eth_dev->data->dev_link.link_status =ETH_LINK_DOWN ; + bonded_eth_dev->data->dev_link.link_status =RTE_ETH_LINK_DOWN ;return 0 ; }
@@ -562,9 +562,9 @@ virtual_ethdev_create(const char *name, struct rte_ether_addr *mac_addr, eth_dev->data->nb_rx_queues = (uint16_t )1 ; eth_dev->data->nb_tx_queues = (uint16_t )1 ; - eth_dev->data->dev_link.link_status =ETH_LINK_DOWN ; - eth_dev->data->dev_link.link_speed =ETH_SPEED_NUM_10G ; - eth_dev->data->dev_link.link_duplex =ETH_LINK_FULL_DUPLEX ; + eth_dev->data->dev_link.link_status =RTE_ETH_LINK_DOWN ; + eth_dev->data->dev_link.link_speed =RTE_ETH_SPEED_NUM_10G ; + eth_dev->data->dev_link.link_duplex =RTE_ETH_LINK_FULL_DUPLEX ; eth_dev->data->mac_addrs =rte_zmalloc (name,RTE_ETHER_ADDR_LEN ,0 );if (eth_dev->data->mac_addrs ==NULL )
doc/guides/eventdevs/cnxk.rst +1 -1
@@ -42,7 +42,7 @@ Features of the OCTEON cnxk SSO PMD are: - HW managed packets enqueued from ethdev to eventdev exposed through event eth RX adapter. - N:1 ethernet device Rx queue to Event queue mapping. -- Lockfree Tx from event eth Tx adapter using ``DEV_TX_OFFLOAD_MT_LOCKFREE`` +- Lockfree Tx from event eth Tx adapter using ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capability while maintaining receive packet order. - Full Rx/Tx offload support defined through ethdev queue configuration. - HW managed event vectorization on CN10K for packets enqueued from ethdev to
doc/guides/eventdevs/octeontx2.rst +1 -1
@@ -35,7 +35,7 @@ Features of the OCTEON TX2 SSO PMD are: - HW managed packets enqueued from ethdev to eventdev exposed through event eth RX adapter. - N:1 ethernet device Rx queue to Event queue mapping. -- Lockfree Tx from event eth Tx adapter using ``DEV_TX_OFFLOAD_MT_LOCKFREE`` +- Lockfree Tx from event eth Tx adapter using ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capability while maintaining receive packet order. - Full Rx/Tx offload support defined through ethdev queue config.
doc/guides/nics/af_packet.rst +1 -1
@@ -70,5 +70,5 @@ Features and Limitations ------------------------ The PMD will re-insert the VLAN tag transparently to the packet if the kernel -strips it, as long as the ``DEV_RX_OFFLOAD_VLAN_STRIP`` is not enabled by the +strips it, as long as the ``RTE_ETH_RX_OFFLOAD_VLAN_STRIP`` is not enabled by the application.
doc/guides/nics/bnxt.rst +12 -12
@@ -877,21 +877,21 @@ processing. This improved performance is derived from a number of optimizations: * TX: only the following reduced set of transmit offloads is supported in vector mode:: - DEV_TX_OFFLOAD_MBUF_FAST_FREE + RTE_ETH_TX_OFFLOAD_MBUF_FAST_FREE * RX: only the following reduced set of receive offloads is supported in vector mode (note that jumbo MTU is allowed only when the MTU setting - does not require `DEV_RX_OFFLOAD_SCATTER` to be enabled):: - - DEV_RX_OFFLOAD_VLAN_STRIP - DEV_RX_OFFLOAD_KEEP_CRC - DEV_RX_OFFLOAD_IPV4_CKSUM - DEV_RX_OFFLOAD_UDP_CKSUM - DEV_RX_OFFLOAD_TCP_CKSUM - DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM - DEV_RX_OFFLOAD_OUTER_UDP_CKSUM - DEV_RX_OFFLOAD_RSS_HASH - DEV_RX_OFFLOAD_VLAN_FILTER + does not require `RTE_ETH_RX_OFFLOAD_SCATTER` to be enabled):: + + RTE_ETH_RX_OFFLOAD_VLAN_STRIP + RTE_ETH_RX_OFFLOAD_KEEP_CRC + RTE_ETH_RX_OFFLOAD_IPV4_CKSUM + RTE_ETH_RX_OFFLOAD_UDP_CKSUM + RTE_ETH_RX_OFFLOAD_TCP_CKSUM + RTE_ETH_RX_OFFLOAD_OUTER_IPV4_CKSUM + RTE_ETH_RX_OFFLOAD_OUTER_UDP_CKSUM + RTE_ETH_RX_OFFLOAD_RSS_HASH + RTE_ETH_RX_OFFLOAD_VLAN_FILTER The BNXT Vector PMD is enabled in DPDK builds by default. The decision to enable vector processing is made at run-time when the port is started; if no transmit
doc/guides/nics/enic.rst +1 -1
@@ -432,7 +432,7 @@ Limitations .. code-block:: console vlan_offload = rte_eth_dev_get_vlan_offload(port); - vlan_offload |= ETH_VLAN_STRIP_OFFLOAD; + vlan_offload |= RTE_ETH_VLAN_STRIP_OFFLOAD; rte_eth_dev_set_vlan_offload(port, vlan_offload); Another alternative is modify the adapter's ingress VLAN rewrite mode so that
doc/guides/nics/features.rst +57 -57
303 lines not on this page · raw message
doc/guides/nics/fm10k.rst +3 -3
@@ -78,11 +78,11 @@ To enable via ``RX_OLFLAGS`` use ``RTE_LIBRTE_FM10K_RX_OLFLAGS_ENABLE=y``. To guarantee the constraint, the following capabilities in ``dev_conf.rxmode.offloads`` will be checked: -* ``DEV_RX_OFFLOAD_VLAN_EXTEND`` +* ``RTE_ETH_RX_OFFLOAD_VLAN_EXTEND`` -* ``DEV_RX_OFFLOAD_CHECKSUM`` +* ``RTE_ETH_RX_OFFLOAD_CHECKSUM`` -* ``DEV_RX_OFFLOAD_HEADER_SPLIT`` +* ``RTE_ETH_RX_OFFLOAD_HEADER_SPLIT`` * ``fdir_conf->mode``
doc/guides/nics/intel_vf.rst +5 -5
@@ -216,21 +216,21 @@ For example, * If the max number of VFs (max_vfs) is set in the range of 1 to 32: If the number of Rx queues is specified as 4 (``--rxq=4`` in testpmd), then there are totally 32 - pools (ETH_32_POOLS), and each VF could have 4 Rx queues; + pools (RTE_ETH_32_POOLS), and each VF could have 4 Rx queues; If the number of Rx queues is specified as 2 (``--rxq=2`` in testpmd), then there are totally 32 - pools (ETH_32_POOLS), and each VF could have 2 Rx queues; + pools (RTE_ETH_32_POOLS), and each VF could have 2 Rx queues; * If the max number of VFs (max_vfs) is in the range of 33 to 64: If the number of Rx queues in specified as 4 (``--rxq=4`` in testpmd), then error message is expected as ``rxq`` is not correct at this case; - If the number of rxq is 2 (``--rxq=2`` in testpmd), then there is totally 64 pools (ETH_64_POOLS), + If the number of rxq is 2 (``--rxq=2`` in testpmd), then there is totally 64 pools (RTE_ETH_64_POOLS), and each VF have 2 Rx queues; - On host, to enable VF RSS functionality, rx mq mode should be set as ETH_MQ_RX_VMDQ_RSS - or ETH_MQ_RX_RSS mode, and SRIOV mode should be activated (max_vfs >= 1). + On host, to enable VF RSS functionality, rx mq mode should be set as RTE_ETH_MQ_RX_VMDQ_RSS + or RTE_ETH_MQ_RX_RSS mode, and SRIOV mode should be activated (max_vfs >= 1). It also needs config VF RSS information like hash function, RSS key, RSS key length. .. note::
doc/guides/nics/ixgbe.rst +6 -6
@@ -89,13 +89,13 @@ Other features are supported using optional MACRO configuration. They include: To guarantee the constraint, capabilities in dev_conf.rxmode.offloads will be checked: -* DEV_RX_OFFLOAD_VLAN_STRIP +* RTE_ETH_RX_OFFLOAD_VLAN_STRIP -* DEV_RX_OFFLOAD_VLAN_EXTEND +* RTE_ETH_RX_OFFLOAD_VLAN_EXTEND -* DEV_RX_OFFLOAD_CHECKSUM +* RTE_ETH_RX_OFFLOAD_CHECKSUM -* DEV_RX_OFFLOAD_HEADER_SPLIT +* RTE_ETH_RX_OFFLOAD_HEADER_SPLIT * dev_conf
@@ -163,13 +163,13 @@ l3fwd ~~~~~ When running l3fwd with vPMD, there is one thing to note. -In the configuration, ensure that DEV_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads is NOT set. +In the configuration, ensure that RTE_ETH_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads is NOT set. Otherwise, by default, RX vPMD is disabled. load_balancer ~~~~~~~~~~~~~ -As in the case of l3fwd, to enable vPMD, do NOT set DEV_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads. +As in the case of l3fwd, to enable vPMD, do NOT set RTE_ETH_RX_OFFLOAD_CHECKSUM in port_conf.rxmode.offloads. In addition, for improved performance, use -bsz "(32,32),(64,64),(32,32)" in load_balancer to avoid using the default burst size of 144.
doc/guides/nics/mlx5.rst +2 -2
@@ -371,7 +371,7 @@ Limitations - CRC: - - ``DEV_RX_OFFLOAD_KEEP_CRC`` cannot be supported with decapsulation + - ``RTE_ETH_RX_OFFLOAD_KEEP_CRC`` cannot be supported with decapsulation for some NICs (such as ConnectX-6 Dx, ConnectX-6 Lx, and BlueField-2). The capability bit ``scatter_fcs_w_decap_disable`` shows NIC support.
@@ -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
@@ -275,7 +275,7 @@ An example utility for eBPF instruction generation in the format of C arrays wil be added in next releases TAP reports on supported RSS functions as part of dev_infos_get callback: -``ETH_RSS_IP``, ``ETH_RSS_UDP`` and ``ETH_RSS_TCP``. +``RTE_ETH_RSS_IP``, ``RTE_ETH_RSS_UDP`` and ``RTE_ETH_RSS_TCP``. **Known limitation:** TAP supports all of the above hash functions together and not in partial combinations.
doc/guides/prog_guide/generic_segmentation_offload_lib.rst +4 -4
@@ -194,11 +194,11 @@ To segment an outgoing packet, an application must: - the bit mask of required GSO types. The GSO library uses the same macros as those that describe a physical device's TX offloading capabilities (i.e. - ``DEV_TX_OFFLOAD_*_TSO``) for gso_types. For example, if an application + ``RTE_ETH_TX_OFFLOAD_*_TSO``) for gso_types. For example, if an application wants to segment TCP/IPv4 packets, it should set gso_types to - ``DEV_TX_OFFLOAD_TCP_TSO``. The only other supported values currently - supported for gso_types are ``DEV_TX_OFFLOAD_VXLAN_TNL_TSO``, and - ``DEV_TX_OFFLOAD_GRE_TNL_TSO``; a combination of these macros is also + ``RTE_ETH_TX_OFFLOAD_TCP_TSO``. The only other supported values currently + supported for gso_types are ``RTE_ETH_TX_OFFLOAD_VXLAN_TNL_TSO``, and + ``RTE_ETH_TX_OFFLOAD_GRE_TNL_TSO``; a combination of these macros is also allowed. - a flag, that indicates whether the IPv4 headers of output segments should
doc/guides/prog_guide/mbuf_lib.rst +9 -9
@@ -137,7 +137,7 @@ a vxlan-encapsulated tcp packet: mb->ol_flags |= PKT_TX_IPV4 | PKT_TX_IP_CSUM set out_ip checksum to 0 in the packet - This is supported on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM. + This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM. - calculate checksum of out_ip and out_udp::
@@ -147,8 +147,8 @@ a vxlan-encapsulated tcp packet: set out_ip checksum to 0 in the packet set out_udp checksum to pseudo header using rte_ipv4_phdr_cksum() - This is supported on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM - and DEV_TX_OFFLOAD_UDP_CKSUM. + This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM + and RTE_ETH_TX_OFFLOAD_UDP_CKSUM. - calculate checksum of in_ip::
@@ -158,7 +158,7 @@ a vxlan-encapsulated tcp packet: set in_ip checksum to 0 in the packet This is similar to case 1), but l2_len is different. It is supported - on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM. + on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM. Note that it can only work if outer L4 checksum is 0. - calculate checksum of in_ip and in_tcp::
@@ -170,8 +170,8 @@ a vxlan-encapsulated tcp packet: set in_tcp checksum to pseudo header using rte_ipv4_phdr_cksum() This is similar to case 2), but l2_len is different. It is supported - on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM and - DEV_TX_OFFLOAD_TCP_CKSUM. + on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM and + RTE_ETH_TX_OFFLOAD_TCP_CKSUM. Note that it can only work if outer L4 checksum is 0. - segment inner TCP::
@@ -185,7 +185,7 @@ a vxlan-encapsulated tcp packet: set in_tcp checksum to pseudo header without including the IP payload length using rte_ipv4_phdr_cksum() - This is supported on hardware advertising DEV_TX_OFFLOAD_TCP_TSO. + This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_TCP_TSO. Note that it can only work if outer L4 checksum is 0. - calculate checksum of out_ip, in_ip, in_tcp::
@@ -200,8 +200,8 @@ a vxlan-encapsulated tcp packet: set in_ip checksum to 0 in the packet set in_tcp checksum to pseudo header using rte_ipv4_phdr_cksum() - This is supported on hardware advertising DEV_TX_OFFLOAD_IPV4_CKSUM, - DEV_TX_OFFLOAD_UDP_CKSUM and DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM. + This is supported on hardware advertising RTE_ETH_TX_OFFLOAD_IPV4_CKSUM, + RTE_ETH_TX_OFFLOAD_UDP_CKSUM and RTE_ETH_TX_OFFLOAD_OUTER_IPV4_CKSUM. The list of flags and their precise meaning is described in the mbuf API documentation (rte_mbuf.h). Also refer to the testpmd source code
doc/guides/prog_guide/poll_mode_drv.rst +4 -4
@@ -57,7 +57,7 @@ Whenever needed and appropriate, asynchronous communication should be introduced Avoiding lock contention is a key issue in a multi-core environment. To address this issue, PMDs are designed to work with per-core private resources as much as possible. -For example, a PMD maintains a separate transmit queue per-core, per-port, if the PMD is not ``DEV_TX_OFFLOAD_MT_LOCKFREE`` capable. +For example, a PMD maintains a separate transmit queue per-core, per-port, if the PMD is not ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capable. In the same way, every receive queue of a port is assigned to and polled by a single logical core (lcore). To comply with Non-Uniform Memory Access (NUMA), memory management is designed to assign to each logical core
@@ -119,7 +119,7 @@ This is also true for the pipe-line model provided all logical cores used are lo Multiple logical cores should never share receive or transmit queues for interfaces since this would require global locks and hinder performance. -If the PMD is ``DEV_TX_OFFLOAD_MT_LOCKFREE`` capable, multiple threads can invoke ``rte_eth_tx_burst()`` +If the PMD is ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capable, multiple threads can invoke ``rte_eth_tx_burst()`` concurrently on the same tx queue without SW lock. This PMD feature found in some NICs and useful in the following use cases: * Remove explicit spinlock in some applications where lcores are not mapped to Tx queues with 1:1 relation.
@@ -127,7 +127,7 @@ concurrently on the same tx queue without SW lock. This PMD feature found in som * In the eventdev use case, avoid dedicating a separate TX core for transmitting and thus enables more scaling as all workers can send the packets. -See `Hardware Offload`_ for ``DEV_TX_OFFLOAD_MT_LOCKFREE`` capability probing details. +See `Hardware Offload`_ for ``RTE_ETH_TX_OFFLOAD_MT_LOCKFREE`` capability probing details. Device Identification, Ownership and Configuration --------------------------------------------------
@@ -311,7 +311,7 @@ The ``dev_info->[rt]x_queue_offload_capa`` returned from ``rte_eth_dev_info_get( The ``dev_info->[rt]x_offload_capa`` returned from ``rte_eth_dev_info_get()`` includes all pure per-port and per-queue offloading capabilities. Supported offloads can be either per-port or per-queue. -Offloads are enabled using the existing ``DEV_TX_OFFLOAD_*`` or ``DEV_RX_OFFLOAD_*`` flags. +Offloads are enabled using the existing ``RTE_ETH_TX_OFFLOAD_*`` or ``RTE_ETH_RX_OFFLOAD_*`` flags. Any requested offloading by an application must be within the device capabilities. Any offloading is disabled by default if it is not set in the parameter ``dev_conf->[rt]xmode.offloads`` to ``rte_eth_dev_configure()`` and
doc/guides/prog_guide/rte_flow.rst +17 -17
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -93,10 +93,10 @@ static const char *valid_arguments[] = { };static struct rte_eth_link pmd_link = { - .link_speed =ETH_SPEED_NUM_10G , - .link_duplex =ETH_LINK_FULL_DUPLEX , - .link_status =ETH_LINK_DOWN , - .link_autoneg =ETH_LINK_FIXED , + .link_speed =RTE_ETH_SPEED_NUM_10G , + .link_duplex =RTE_ETH_LINK_FULL_DUPLEX , + .link_status =RTE_ETH_LINK_DOWN , + .link_autoneg =RTE_ETH_LINK_FIXED , };RTE_LOG_REGISTER_DEFAULT (af_packet_logtype,NOTICE );
@@ -290,7 +290,7 @@ eth_af_packet_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)static int eth_dev_start (struct rte_eth_dev *dev) { - dev->data->dev_link.link_status =ETH_LINK_UP ; + dev->data->dev_link.link_status =RTE_ETH_LINK_UP ;return 0 ; }
@@ -320,7 +320,7 @@ eth_dev_stop(struct rte_eth_dev *dev) internals->tx_queue[i].sockfd =-1 ; } - dev->data->dev_link.link_status =ETH_LINK_DOWN ; + dev->data->dev_link.link_status =RTE_ETH_LINK_DOWN ;return 0 ; }
@@ -331,7 +331,7 @@ eth_dev_configure(struct rte_eth_dev *dev __rte_unused)const struct rte_eth_rxmode *rxmode = &dev_conf->rxmode;struct pmd_internals *internals = dev->data->dev_private; - internals->vlan_strip = !!(rxmode->offloads &DEV_RX_OFFLOAD_VLAN_STRIP ); + internals->vlan_strip = !!(rxmode->offloads &RTE_ETH_RX_OFFLOAD_VLAN_STRIP );return 0 ; }
@@ -346,9 +346,9 @@ eth_dev_info(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info) dev_info->max_rx_queues = (uint16_t )internals->nb_queues; dev_info->max_tx_queues = (uint16_t )internals->nb_queues; dev_info->min_rx_bufsize =0 ; - dev_info->tx_offload_capa =DEV_TX_OFFLOAD_MULTI_SEGS | -DEV_TX_OFFLOAD_VLAN_INSERT ; - dev_info->rx_offload_capa =DEV_RX_OFFLOAD_VLAN_STRIP ; + dev_info->tx_offload_capa =RTE_ETH_TX_OFFLOAD_MULTI_SEGS | +RTE_ETH_TX_OFFLOAD_VLAN_INSERT ; + dev_info->rx_offload_capa =RTE_ETH_RX_OFFLOAD_VLAN_STRIP ;return 0 ; }
drivers/net/af_xdp/rte_eth_af_xdp.c +6 -6
@@ -163,10 +163,10 @@ static const char * const valid_arguments[] = { };static const struct rte_eth_link pmd_link = { - .link_speed =ETH_SPEED_NUM_10G , - .link_duplex =ETH_LINK_FULL_DUPLEX , - .link_status =ETH_LINK_DOWN , - .link_autoneg =ETH_LINK_AUTONEG + .link_speed =RTE_ETH_SPEED_NUM_10G , + .link_duplex =RTE_ETH_LINK_FULL_DUPLEX , + .link_status =RTE_ETH_LINK_DOWN , + .link_autoneg =RTE_ETH_LINK_AUTONEG };/* List which tracks PMDs to facilitate sharing UMEMs across them. */
@@ -652,7 +652,7 @@ eth_af_xdp_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts)static int eth_dev_start (struct rte_eth_dev *dev) { - dev->data->dev_link.link_status =ETH_LINK_UP ; + dev->data->dev_link.link_status =RTE_ETH_LINK_UP ;return 0 ; }
@@ -661,7 +661,7 @@ eth_dev_start(struct rte_eth_dev *dev)static int eth_dev_stop (struct rte_eth_dev *dev) { - dev->data->dev_link.link_status =ETH_LINK_DOWN ; + dev->data->dev_link.link_status =RTE_ETH_LINK_DOWN ;return 0 ; }
drivers/net/ark/ark_ethdev.c +8 -8
@@ -736,14 +736,14 @@ eth_ark_dev_info_get(struct rte_eth_dev *dev, .nb_align = ARK_TX_MIN_QUEUE}; /* power of 2 *//* ARK PMD supports all line rates, how do we indicate that here ?? */ - dev_info->speed_capa = (ETH_LINK_SPEED_1G | -ETH_LINK_SPEED_10G | -ETH_LINK_SPEED_25G | -ETH_LINK_SPEED_40G | -ETH_LINK_SPEED_50G | -ETH_LINK_SPEED_100G ); - - dev_info->rx_offload_capa =DEV_RX_OFFLOAD_TIMESTAMP ; + dev_info->speed_capa = (RTE_ETH_LINK_SPEED_1G | +RTE_ETH_LINK_SPEED_10G | +RTE_ETH_LINK_SPEED_25G | +RTE_ETH_LINK_SPEED_40G | +RTE_ETH_LINK_SPEED_50G | +RTE_ETH_LINK_SPEED_100G ); + + dev_info->rx_offload_capa =RTE_ETH_RX_OFFLOAD_TIMESTAMP ;return 0 ; }
drivers/net/atlantic/atl_ethdev.c +44 -44
174 lines not on this page · raw message
drivers/net/atlantic/atl_ethdev.h +9 -9
@@ -11,15 +11,15 @@#include "hw_atl/hw_atl_utils.h" #define ATL_RSS_OFFLOAD_ALL ( \ - ETH_RSS_IPV4 | \ - ETH_RSS_NONFRAG_IPV4_TCP | \ - ETH_RSS_NONFRAG_IPV4_UDP | \ - ETH_RSS_IPV6 | \ - ETH_RSS_NONFRAG_IPV6_TCP | \ - ETH_RSS_NONFRAG_IPV6_UDP | \ - ETH_RSS_IPV6_EX | \ - ETH_RSS_IPV6_TCP_EX | \ - ETH_RSS_IPV6_UDP_EX) + RTE_ETH_RSS_IPV4 | \ + RTE_ETH_RSS_NONFRAG_IPV4_TCP | \ + RTE_ETH_RSS_NONFRAG_IPV4_UDP | \ + RTE_ETH_RSS_IPV6 | \ + RTE_ETH_RSS_NONFRAG_IPV6_TCP | \ + RTE_ETH_RSS_NONFRAG_IPV6_UDP | \ + RTE_ETH_RSS_IPV6_EX | \ + RTE_ETH_RSS_IPV6_TCP_EX | \ + RTE_ETH_RSS_IPV6_UDP_EX)#define ATL_DEV_PRIVATE_TO_HW (adapter) \ (&((struct atl_adapter *)adapter)->hw)
drivers/net/atlantic/atl_rxtx.c +3 -3
@@ -145,10 +145,10 @@ atl_rx_queue_setup(struct rte_eth_dev *dev, uint16_t rx_queue_id, rxq->rx_free_thresh = rx_conf->rx_free_thresh; rxq->l3_csum_enabled = dev->data->dev_conf.rxmode.offloads & -DEV_RX_OFFLOAD_IPV4_CKSUM ; +RTE_ETH_RX_OFFLOAD_IPV4_CKSUM ; rxq->l4_csum_enabled = dev->data->dev_conf.rxmode.offloads & - (DEV_RX_OFFLOAD_UDP_CKSUM |DEV_RX_OFFLOAD_TCP_CKSUM ); -if (dev->data->dev_conf.rxmode.offloads &DEV_RX_OFFLOAD_KEEP_CRC ) + (RTE_ETH_RX_OFFLOAD_UDP_CKSUM |RTE_ETH_RX_OFFLOAD_TCP_CKSUM ); +if (dev->data->dev_conf.rxmode.offloads &RTE_ETH_RX_OFFLOAD_KEEP_CRC )PMD_DRV_LOG (ERR ,"PMD does not support KEEP_CRC offload" );/* allocate memory for the software ring */
drivers/net/avp/avp_ethdev.c +13 -13
@@ -1998,9 +1998,9 @@ avp_dev_configure(struct rte_eth_dev *eth_dev)/* Setup required number of queues */ _avp_set_queue_counts (eth_dev); - mask = (ETH_VLAN_STRIP_MASK | -ETH_VLAN_FILTER_MASK | -ETH_VLAN_EXTEND_MASK ); + mask = (RTE_ETH_VLAN_STRIP_MASK | +RTE_ETH_VLAN_FILTER_MASK | +RTE_ETH_VLAN_EXTEND_MASK ); ret =avp_vlan_offload_set (eth_dev, mask);if (ret <0 ) { PMD_DRV_LOG(ERR, "VLAN offload set failed by host, ret=%d\n",
@@ -2140,8 +2140,8 @@ avp_dev_link_update(struct rte_eth_dev *eth_dev,struct avp_dev *avp =AVP_DEV_PRIVATE_TO_HW (eth_dev->data->dev_private);struct rte_eth_link *link = ð_dev->data->dev_link; - link->link_speed =ETH_SPEED_NUM_10G ; - link->link_duplex =ETH_LINK_FULL_DUPLEX ; + link->link_speed =RTE_ETH_SPEED_NUM_10G ; + link->link_duplex =RTE_ETH_LINK_FULL_DUPLEX ; link->link_status = !!(avp->flags &AVP_F_LINKUP );return -1 ;
@@ -2191,8 +2191,8 @@ avp_dev_info_get(struct rte_eth_dev *eth_dev, dev_info->max_rx_pktlen = avp->max_rx_pkt_len; dev_info->max_mac_addrs =AVP_MAX_MAC_ADDRS ;if (avp->host_features &RTE_AVP_FEATURE_VLAN_OFFLOAD ) { - dev_info->rx_offload_capa =DEV_RX_OFFLOAD_VLAN_STRIP ; - dev_info->tx_offload_capa =DEV_TX_OFFLOAD_VLAN_INSERT ; + dev_info->rx_offload_capa =RTE_ETH_RX_OFFLOAD_VLAN_STRIP ; + dev_info->tx_offload_capa =RTE_ETH_TX_OFFLOAD_VLAN_INSERT ; }return 0 ;
@@ -2205,9 +2205,9 @@ avp_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask)struct rte_eth_conf *dev_conf = ð_dev->data->dev_conf;uint64_t offloads = dev_conf->rxmode.offloads; -if (mask Ð_VLAN_STRIP_MASK ) { +if (mask &RTE_ETH_VLAN_STRIP_MASK ) {if (avp->host_features &RTE_AVP_FEATURE_VLAN_OFFLOAD ) { -if (offloads &DEV_RX_OFFLOAD_VLAN_STRIP ) +if (offloads &RTE_ETH_RX_OFFLOAD_VLAN_STRIP ) avp->features |=RTE_AVP_FEATURE_VLAN_OFFLOAD ;else avp->features &= ~RTE_AVP_FEATURE_VLAN_OFFLOAD ;
@@ -2216,13 +2216,13 @@ avp_vlan_offload_set(struct rte_eth_dev *eth_dev, int mask) } } -if (mask Ð_VLAN_FILTER_MASK ) { -if (offloads &DEV_RX_OFFLOAD_VLAN_FILTER ) +if (mask &RTE_ETH_VLAN_FILTER_MASK ) { +if (offloads &RTE_ETH_RX_OFFLOAD_VLAN_FILTER )PMD_DRV_LOG (ERR ,"VLAN filter offload not supported\n" ); } -if (mask Ð_VLAN_EXTEND_MASK ) { -if (offloads &DEV_RX_OFFLOAD_VLAN_EXTEND ) +if (mask &RTE_ETH_VLAN_EXTEND_MASK ) { +if (offloads &RTE_ETH_RX_OFFLOAD_VLAN_EXTEND )PMD_DRV_LOG (ERR ,"VLAN extend offload not supported\n" ); }
drivers/net/axgbe/axgbe_dev.c +3 -3
@@ -840,11 +840,11 @@ static void axgbe_rss_options(struct axgbe_port *pdata) pdata->rss_hf = rss_conf->rss_hf; rss_hf = rss_conf->rss_hf; -if (rss_hf & (ETH_RSS_IPV4 |ETH_RSS_IPV6 )) +if (rss_hf & (RTE_ETH_RSS_IPV4 |RTE_ETH_RSS_IPV6 ))AXGMAC_SET_BITS (pdata->rss_options,MAC_RSSCR ,IP2TE ,1 ); -if (rss_hf & (ETH_RSS_NONFRAG_IPV4_TCP |ETH_RSS_NONFRAG_IPV6_TCP )) +if (rss_hf & (RTE_ETH_RSS_NONFRAG_IPV4_TCP |RTE_ETH_RSS_NONFRAG_IPV6_TCP ))AXGMAC_SET_BITS (pdata->rss_options,MAC_RSSCR ,TCP4TE ,1 ); -if (rss_hf & (ETH_RSS_NONFRAG_IPV4_UDP |ETH_RSS_NONFRAG_IPV6_UDP )) +if (rss_hf & (RTE_ETH_RSS_NONFRAG_IPV4_UDP |RTE_ETH_RSS_NONFRAG_IPV6_UDP ))AXGMAC_SET_BITS (pdata->rss_options,MAC_RSSCR ,UDP4TE ,1 ); }
drivers/net/axgbe/axgbe_ethdev.c +52 -52
86 lines not on this page · raw message
drivers/net/bnxt/bnxt.h +31 -31
62 lines not on this page · raw message
drivers/net/bnxt/bnxt_ethdev.c +86 -86
172 lines not on this page · raw message
drivers/net/bnxt/bnxt_hwrm.c +56 -56
112 lines not on this page · raw message
drivers/net/bnxt/bnxt_rxtx_vec_common.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/bonding/rte_eth_bond_8023ad.c +8 -8
Lines of this file are not shown. View the raw message.
drivers/net/bonding/rte_eth_bond_pmd.c +25 -25
50 lines not on this page · raw message
drivers/net/cnxk/cn10k_ethdev.c +21 -21
42 lines not on this page · raw message
drivers/net/cnxk/cn9k_ethdev.c +30 -30
60 lines not on this page · raw message
drivers/net/cnxk/cnxk_ethdev.c +56 -56
112 lines not on this page · raw message
drivers/net/cnxk/cnxk_ethdev.h +26 -23
49 lines not on this page · raw message
drivers/net/cnxk/cnxk_ethdev_ops.c +53 -53
106 lines not on this page · raw message
drivers/net/cxgbe/cxgbe.h +23 -23
46 lines not on this page · raw message
drivers/net/cxgbe/cxgbe_ethdev.c +21 -21
42 lines not on this page · raw message
drivers/net/dpaa/dpaa_ethdev.c +90 -90
180 lines not on this page · raw message
drivers/net/dpaa2/base/dpaa2_hw_dpni.c +23 -24
47 lines not on this page · raw message
drivers/net/dpaa2/dpaa2_ethdev.c +69 -69
138 lines not on this page · raw message
drivers/net/e1000/em_ethdev.c +32 -32
64 lines not on this page · raw message
drivers/net/e1000/igb_ethdev.c +79 -79
158 lines not on this page · raw message
drivers/net/e1000/igb_rxtx.c +58 -58
116 lines not on this page · raw message
drivers/net/ena/ena_ethdev.c +35 -35
70 lines not on this page · raw message
drivers/net/ena/ena_rss.c +37 -37
74 lines not on this page · raw message
drivers/net/enic/enic_ethdev.c +44 -44
88 lines not on this page · raw message
drivers/net/enic/enic_res.c +25 -25
50 lines not on this page · raw message
drivers/net/failsafe/failsafe_ops.c +39 -39
78 lines not on this page · raw message
drivers/net/fm10k/fm10k_ethdev.c +73 -73
146 lines not on this page · raw message
drivers/net/hinic/base/hinic_pmd_hwdev.c +11 -11
Lines of this file are not shown. View the raw message.
drivers/net/hinic/hinic_pmd_ethdev.c +68 -68
136 lines not on this page · raw message
drivers/net/hns3/hns3_ethdev.c +176 -176
352 lines not on this page · raw message
drivers/net/hns3/hns3_ethdev_vf.c +50 -50
100 lines not on this page · raw message
drivers/net/hns3/hns3_rss.c +54 -54
108 lines not on this page · raw message
drivers/net/i40e/i40e_ethdev.c +136 -136
272 lines not on this page · raw message
drivers/net/i40e/i40e_hash.c +79 -79
158 lines not on this page · raw message
drivers/net/i40e/i40e_rxtx_vec_avx512.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/i40e/i40e_rxtx_vec_common.h +4 -4
Lines of this file are not shown. View the raw message.
drivers/net/i40e/i40e_vf_representor.c +24 -24
48 lines not on this page · raw message
drivers/net/iavf/iavf_ethdev.c +89 -89
178 lines not on this page · raw message
drivers/net/iavf/iavf_hash.c +160 -160
320 lines not on this page · raw message
drivers/net/iavf/iavf_rxtx_vec_avx512.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/ice/ice_dcf_ethdev.c +43 -43
86 lines not on this page · raw message
drivers/net/ice/ice_dcf_vf_representor.c +28 -28
56 lines not on this page · raw message
drivers/net/ice/ice_ethdev.c +90 -90
180 lines not on this page · raw message
drivers/net/ice/ice_hash.c +145 -145
290 lines not on this page · raw message
drivers/net/ice/ice_rxtx_vec_common.h +14 -14
Lines of this file are not shown. View the raw message.
drivers/net/igc/igc_ethdev.c +69 -69
138 lines not on this page · raw message
drivers/net/igc/igc_ethdev.h +27 -27
54 lines not on this page · raw message
drivers/net/igc/igc_txrx.c +24 -24
48 lines not on this page · raw message
drivers/net/ionic/ionic_ethdev.c +69 -69
138 lines not on this page · raw message
drivers/net/ipn3ke/ipn3ke_representor.c +32 -32
64 lines not on this page · raw message
drivers/net/ixgbe/ixgbe_ethdev.c +142 -143
285 lines not on this page · raw message
drivers/net/ixgbe/ixgbe_rxtx.c +124 -125
249 lines not on this page · raw message
drivers/net/ixgbe/ixgbe_rxtx_vec_common.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ixgbe/ixgbe_vf_representor.c +8 -8
Lines of this file are not shown. View the raw message.
drivers/net/liquidio/lio_ethdev.c +57 -57
114 lines not on this page · raw message
drivers/net/mlx5/linux/mlx5_ethdev_os.c +27 -27
54 lines not on this page · raw message
drivers/net/mlx5/mlx5_flow.c +27 -27
54 lines not on this page · raw message
drivers/net/mlx5/mlx5_flow_dv.c +22 -22
44 lines not on this page · raw message
drivers/net/mlx5/mlx5_txq.c +29 -29
58 lines not on this page · raw message
drivers/net/mvpp2/mrvl_ethdev.c +56 -56
112 lines not on this page · raw message
drivers/net/netvsc/hn_ethdev.c +35 -35
70 lines not on this page · raw message
drivers/net/netvsc/hn_rndis.c +25 -25
50 lines not on this page · raw message
drivers/net/nfp/nfp_common.c +61 -61
122 lines not on this page · raw message
drivers/net/ngbe/ngbe_ethdev.c +25 -25
50 lines not on this page · raw message
drivers/net/octeontx/octeontx_ethdev.c +37 -37
74 lines not on this page · raw message
drivers/net/octeontx/octeontx_ethdev.h +15 -15
Lines of this file are not shown. View the raw message.
drivers/net/octeontx/octeontx_ethdev_ops.c +13 -13
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_ethdev.c +48 -48
96 lines not on this page · raw message
drivers/net/octeontx2/otx2_ethdev.h +32 -32
64 lines not on this page · raw message
drivers/net/octeontx2/otx2_ethdev_devargs.c +6 -6
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_ethdev_ops.c +7 -7
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_ethdev_sec.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_flow_ctrl.c +18 -18
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_flow_parse.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/octeontx2/otx2_rss.c +35 -35
70 lines not on this page · raw message
drivers/net/octeontx2/otx2_vlan.c +21 -21
42 lines not on this page · raw message
drivers/net/octeontx_ep/otx_ep_ethdev.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/qede/qede_ethdev.c +78 -78
156 lines not on this page · raw message
drivers/net/qede/qede_filter.c +21 -21
42 lines not on this page · raw message
drivers/net/sfc/sfc_ethdev.c +25 -25
50 lines not on this page · raw message
drivers/net/sfc/sfc_port.c +26 -26
52 lines not on this page · raw message
drivers/net/sfc/sfc_rx.c +25 -25
50 lines not on this page · raw message
drivers/net/sfc/sfc_tx.c +25 -25
50 lines not on this page · raw message
drivers/net/szedata2/rte_eth_szedata2.c +7 -7
Lines of this file are not shown. View the raw message.
drivers/net/tap/rte_eth_tap.c +52 -52
104 lines not on this page · raw message
drivers/net/thunderx/nicvf_ethdev.c +51 -51
102 lines not on this page · raw message
drivers/net/txgbe/txgbe_ethdev.c +121 -121
242 lines not on this page · raw message
drivers/net/txgbe/txgbe_rxtx.c +154 -154
308 lines not on this page · raw message
drivers/net/virtio/virtio_ethdev.c +62 -62
124 lines not on this page · raw message
drivers/net/vmxnet3/vmxnet3_ethdev.c +36 -36
72 lines not on this page · raw message
examples/eventdev_pipeline/pipeline_worker_generic.c +8 -8
Lines of this file are not shown. View the raw message.
examples/eventdev_pipeline/pipeline_worker_tx.c +6 -6
Lines of this file are not shown. View the raw message.
examples/multi_process/client_server_mp/mp_server/init.c +2 -2
Lines of this file are not shown. View the raw message.
examples/multi_process/symmetric_mp/main.c +7 -7
Lines of this file are not shown. View the raw message.
examples/performance-thread/l3fwd-thread/main.c +8 -8
Lines of this file are not shown. View the raw message.
lib/ethdev/rte_ethdev.c +89 -92
181 lines not on this page · raw message
lib/ethdev/rte_ethdev.h +604 -382
986 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.31.1
Part of the diff is not shown here. View the raw message.
Quoted 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.
Signed-off-by Ferruh Yigit <[email protected]>Acked-by Tyler Retzlaff <[email protected]>Acked-by Andrew Rybchenko <[email protected]>Acked-by Ajit Khaparde <[email protected]>Acked-by Jerin Jacob <[email protected]>Acked-by Wisam Jaddo <[email protected]>Acked-by Rosen Xu <[email protected]>Acked-by Chenbo Xia <[email protected]>Acked-by Hemant Agrawal <[email protected]>
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 compatibleLGTM 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.
Signed-off-by Ferruh Yigit <[email protected]>Acked-by Tyler Retzlaff <[email protected]>Acked-by Andrew Rybchenko <[email protected]>Acked-by Ajit Khaparde <[email protected]>Acked-by Jerin Jacob <[email protected]>Acked-by Wisam Jaddo <[email protected]>Acked-by Rosen Xu <[email protected]>Acked-by Chenbo Xia <[email protected]>Acked-by Hemant Agrawal <[email protected]>
Acked-by: Somnath Kotur
[email protected]
Quoted 2 lines
Ferruh Yigit
AppliedQuoted 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 compatibleLGTM 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
Acked-by Somnath Kotur <[email protected]>
Applied to dpdk-next-net/main, thanks.
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 compatibleLGTM 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.
Signed-off-by Ferruh Yigit <[email protected]>Acked-by Tyler Retzlaff <[email protected]>Acked-by Andrew Rybchenko <[email protected]>Acked-by Ajit Khaparde <[email protected]>Acked-by Jerin Jacob <[email protected]>Acked-by Wisam Jaddo <[email protected]>Acked-by Rosen Xu <[email protected]>Acked-by Chenbo Xia <[email protected]>Acked-by Hemant Agrawal <[email protected]>
Quoted 11 lines · Ferruh Yigit
drivers/net/txgbe/txgbe_ethdev.c +0
-0@@ -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
-0hw->mac.get_link_status = true;
Quoted 11 lines · Jiawen Wu
Quoted 10 lines · Ferruh Yigit
drivers/net/txgbe/txgbe_ethdev.c +0
-0@@ -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
-4memset (&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.
Quoted 29 lines · Ferruh Yigit
Quoted 11 lines · Jiawen Wu
Quoted 10 lines · Ferruh Yigit
drivers/net/txgbe/txgbe_ethdev.c +0
-0@@ -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
-3memset(&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);
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@@ -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
-3memset(&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]
Commit196f0e123bcb("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]/