Home
last modified time | relevance | path

Searched refs:sh (Results 1 – 25 of 83) sorted by relevance

1234

/dpdk/drivers/net/mlx5/
H A Dmlx5_txpp.c632 if (!sh->txpp.clock_queue.sq_ci && !sh->txpp.ts_n) in mlx5_txpp_gather_timestamp()
635 __atomic_store_n(&sh->txpp.tsa[sh->txpp.ts_p].ts, in mlx5_txpp_gather_timestamp()
637 __atomic_store_n(&sh->txpp.tsa[sh->txpp.ts_p].ci_ts, in mlx5_txpp_gather_timestamp()
736 (sh, sh->txpp.rearm_queue.sq_ci - 1); in mlx5_txpp_interrupt_handler()
827 sh->txpp.skew = sh->config.tx_skew; in mlx5_txpp_create()
891 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_txpp_start() local
943 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_txpp_stop() local
952 if (!sh->txpp.refcnt || --sh->txpp.refcnt) { in mlx5_txpp_stop()
985 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_txpp_read_clock() local
1031 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_txpp_xstats_reset() local
[all …]
H A Dmlx5.c511 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_flow_counter_mode_config() local
550 memset(&sh->cmng, 0, sizeof(sh->cmng)); in mlx5_flow_counters_mng_init()
631 memset(&sh->cmng, 0, sizeof(sh->cmng)); in mlx5_flow_counters_mng_close()
1011 ret = mlx5_devx_uar_prepare(sh->cdev, &sh->tx_uar); in mlx5_rxtx_uars_prepare()
1078 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_dev_ctx_shared_mempool_subscribe() local
1468 sh->td = mlx5_devx_cmd_create_td(sh->cdev->ctx); in mlx5_alloc_shared_dev_ctx()
1615 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_free_table_hash_list() local
1617 &sh->groups : &sh->flow_tbls; in mlx5_free_table_hash_list()
1635 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_alloc_hw_group_hash_list() local
1674 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_alloc_table_hash_list() local
[all …]
H A Dmlx5_flow_aso.c272 sh->tx_uar.obj)) { in mlx5_aso_queue_init()
280 sh->tx_uar.obj)) in mlx5_aso_queue_init()
319 mlx5_aso_dereg_mr(sh->cdev, &sh->aso_age_mng->aso_sq.mr); in mlx5_aso_queue_uninit()
326 mlx5_aso_dereg_mr(sh->cdev, &sh->ct_mng->aso_sq.mr); in mlx5_aso_queue_uninit()
327 sq = &sh->ct_mng->aso_sq; in mlx5_aso_queue_uninit()
391 !sh->tx_uar.dbnc); in mlx5_aso_sq_enqueue_burst()
512 mlx5_age_event_prepare(sh); in mlx5_aso_age_action_update()
584 n = sh->aso_age_mng->next; in mlx5_flow_aso_alarm()
725 !sh->tx_uar.dbnc); in mlx5_aso_mtr_sq_enqueue_single()
988 !sh->tx_uar.dbnc); in mlx5_aso_ct_sq_enqueue_single()
[all …]
H A Dmlx5_rxmode.c39 if (priv->sh->dev_cap.vf || priv->sh->dev_cap.sf) { in mlx5_promiscuous_enable()
72 if (priv->sh->dev_cap.vf || priv->sh->dev_cap.sf) { in mlx5_promiscuous_disable()
112 if (priv->sh->dev_cap.vf || priv->sh->dev_cap.sf) { in mlx5_allmulticast_enable()
145 if (priv->sh->dev_cap.vf || priv->sh->dev_cap.sf) { in mlx5_allmulticast_disable()
H A Dmlx5_devx.c304 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_rxq_create_devx_cq_resources() local
487 (priv->sh->cdev->ctx, in mlx5_rxq_devx_obj_new()
957 rxq_ctrl->sh = priv->sh; in mlx5_rxq_devx_obj_drop_create()
1102 if (priv->sh->bond.n_port && priv->sh->lag.affinity_mode == in mlx5_get_txq_tis_num()
1105 priv->sh->bond.n_port; in mlx5_get_txq_tis_num()
1112 MLX5_ASSERT(priv->sh->tis[tis_idx]); in mlx5_get_txq_tis_num()
1113 return priv->sh->tis[tis_idx]->id; in mlx5_get_txq_tis_num()
1267 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_txq_devx_obj_new() local
1353 txq_data->db_nc = sh->tx_uar.dbnc; in mlx5_txq_devx_obj_new()
1371 if (!priv->sh->tdn) in mlx5_txq_devx_obj_new()
[all …]
H A Dmlx5_flow_meter.c159 if (!priv->sh->meter_aso_en) { in mlx5_flow_meter_profile_validate()
441 if (priv->sh->meter_aso_en) { in mlx5_flow_mtr_cap_get()
808 if (!priv->sh->meter_aso_en) in mlx5_flow_meter_policy_add()
1056 if (priv->sh->meter_aso_en) { in mlx5_flow_meter_action_modify()
1222 if (!priv->sh->meter_aso_en) in mlx5_flow_meter_create()
1249 if (priv->sh->meter_aso_en) { in mlx5_flow_meter_create()
1305 if (priv->sh->meter_aso_en) { in mlx5_flow_meter_create()
1331 if (priv->sh->meter_aso_en) in mlx5_flow_meter_create()
1378 if (priv->sh->meter_aso_en) { in mlx5_flow_meter_params_flush()
1811 if (priv->sh->meter_aso_en) { in mlx5_flow_meter_find()
[all …]
H A Dmlx5_flow_dv.c2730 struct mlx5_dev_ctx_shared *sh = priv->sh; in flow_dv_validate_action_pop_vlan() local
3704 struct mlx5_dev_ctx_shared *sh = priv->sh; in flow_dv_encap_decap_resource_register() local
5820 struct mlx5_dev_ctx_shared *sh = priv->sh; in flow_dv_modify_hdr_resource_register() local
9397 struct mlx5_dev_ctx_shared *sh = priv->sh; in flow_dev_geneve_tlv_option_resource_register() local
11405 struct mlx5_dev_ctx_shared *sh = priv->sh; in flow_dv_sample_create_cb() local
11491 struct mlx5_dev_ctx_shared *sh = priv->sh; in flow_dv_sample_clone_cb() local
11598 struct mlx5_dev_ctx_shared *sh = priv->sh; in flow_dv_dest_array_create_cb() local
11702 struct mlx5_dev_ctx_shared *sh = priv->sh; in flow_dv_dest_array_clone_cb() local
12843 struct mlx5_dev_ctx_shared *sh = priv->sh; in flow_dv_translate_create_conntrack() local
14680 struct mlx5_dev_ctx_shared *sh = priv->sh; in flow_dv_geneve_tlv_option_resource_release() local
[all …]
H A Dmlx5_ethdev.c49 if (priv->master && priv->sh->bond.ifindex > 0) in mlx5_ifindex()
50 ifindex = priv->sh->bond.ifindex; in mlx5_ifindex()
126 if (rxqs_n > priv->sh->dev_cap.ind_table_max_size) { in mlx5_dev_configure()
206 priv->sh->dev_cap.ind_table_max_size : in mlx5_dev_configure_rss_reta()
325 max = RTE_MIN(priv->sh->dev_cap.max_cq, priv->sh->dev_cap.max_qp); in mlx5_dev_infos_get()
348 if (priv->sh->cdev->config.hca_attr.mem_rq_rmp && in mlx5_dev_infos_get()
364 opriv->sh != priv->sh || in mlx5_dev_infos_get()
527 struct mlx5_dev_cap *attr = &priv->sh->dev_cap; in mlx5_fw_version_get()
683 if (!priv->sh->esw_mode) { in mlx5_port_to_eswitch_info()
710 if (!priv->sh->esw_mode) { in mlx5_dev_to_eswitch_info()
[all …]
H A Dmlx5_flow.c3316 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_flow_validate_item_geneve_opt() local
8828 ret = mlx5_os_wrapped_mkey_create(sh->cdev->ctx, sh->cdev->pd, in mlx5_flow_create_counter_stat_mem_mng()
9420 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_flow_dev_dump_sh_all() local
9441 h = sh->encaps_decaps; in mlx5_flow_dev_dump_sh_all()
9464 h = sh->modify_cmds; in mlx5_flow_dev_dump_sh_all()
9533 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_flow_dev_dump() local
9552 sh->rx_domain, in mlx5_flow_dev_dump()
10131 struct mlx5_dev_ctx_shared *sh = priv->sh; in tunnel_mark_decode() local
10371 priv->sh, in mlx5_flow_tunnel_allocate()
10480 false, true, sh, in mlx5_alloc_tunnel_hub()
[all …]
H A Dmlx5_txq.c104 struct mlx5_dev_cap *dev_cap = &priv->sh->dev_cap; in mlx5_get_tx_port_offloads()
112 if (priv->sh->config.tx_pp || in mlx5_get_tx_port_offloads()
113 priv->sh->cdev->config.hca_attr.wait_on_time) in mlx5_get_tx_port_offloads()
1100 priv->sh->dev_cap.max_qp_wr) { in mlx5_txq_new()
1105 priv->sh->dev_cap.max_qp_wr); in mlx5_txq_new()
1287 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_txq_dynf_timestamp_set() local
1294 if (sh->dev_cap.rt_timestamp || in mlx5_txq_dynf_timestamp_set()
1295 !sh->cdev->config.hca_attr.dev_freq_khz) in mlx5_txq_dynf_timestamp_set()
1299 sh->cdev->config.hca_attr.dev_freq_khz); in mlx5_txq_dynf_timestamp_set()
1306 (sh->txpp.refcnt || priv->sh->cdev->config.hca_attr.wait_on_time)) in mlx5_txq_dynf_timestamp_set()
[all …]
H A Dmlx5.h624 (&((priv)->sh->port[(priv)->dev_port - 1].age_info))
1578 mlx5_devx_obj_ops_en(struct mlx5_dev_ctx_shared *sh) in mlx5_devx_obj_ops_en() argument
1584 return (sh->cdev->config.devx && sh->config.dv_flow_en && in mlx5_devx_obj_ops_en()
1585 sh->dev_cap.dest_tir); in mlx5_devx_obj_ops_en()
1600 void mlx5_age_event_prepare(struct mlx5_dev_ctx_shared *sh);
1817 void mlx5_set_query_alarm(struct mlx5_dev_ctx_shared *sh);
1922 int mlx5_aso_queue_init(struct mlx5_dev_ctx_shared *sh,
1926 void mlx5_aso_queue_uninit(struct mlx5_dev_ctx_shared *sh,
1930 int mlx5_aso_mtr_wait(struct mlx5_dev_ctx_shared *sh,
1935 int mlx5_aso_ct_wait_ready(struct mlx5_dev_ctx_shared *sh,
[all …]
H A Dmlx5_trigger.c136 ret = mlx5_mr_mempool_register(rxq_ctrl->sh->cdev, mp, in mlx5_rxq_mempool_register()
219 dev->data->port_id, priv->sh->dev_cap.max_qp_wr); in mlx5_rxq_start()
221 dev->data->port_id, priv->sh->dev_cap.max_sge); in mlx5_rxq_start()
345 priv->sh->cdev->config.hca_attr.vhca_id; in mlx5_hairpin_auto_bind()
353 priv->sh->cdev->config.hca_attr.vhca_id; in mlx5_hairpin_auto_bind()
1107 if (mlx5_devx_obj_ops_en(priv->sh) && in mlx5_dev_start()
1120 if (!priv->sh->dev_cap.vf && !priv->sh->dev_cap.sf && in mlx5_dev_start()
1206 if (rte_intr_fd_get(priv->sh->intr_handle) >= 0) { in mlx5_dev_start()
1207 priv->sh->port[priv->dev_port - 1].ih_port_id = in mlx5_dev_start()
1339 if (priv->sh->config.dv_esw_en) { in mlx5_traffic_enable()
[all …]
H A Dmlx5_rxq.c369 if (priv->sh->config.hw_fcs_strip) in mlx5_get_rx_queue_offloads()
371 if (priv->sh->dev_cap.hw_csum) in mlx5_get_rx_queue_offloads()
375 if (priv->sh->dev_cap.hw_vlan_strip) in mlx5_get_rx_queue_offloads()
377 if (priv->sh->dev_cap.lro_supported) in mlx5_get_rx_queue_offloads()
846 !priv->sh->dev_cap.lro_supported) { in mlx5_rx_queue_setup()
1900 if (priv->sh->config.hw_fcs_strip) { in mlx5_rxq_new()
1931 tmpl->sh = priv->sh; in mlx5_rxq_new()
1990 tmpl->sh = priv->sh; in mlx5_rxq_hairpin_new()
3159 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_rxq_timestamp_set() local
3167 data->sh = sh; in mlx5_rxq_timestamp_set()
[all …]
/dpdk/drivers/net/mlx5/linux/
H A Dmlx5_os.c475 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_alloc_shared_dr() local
479 MLX5_ASSERT(sh && sh->refcnt); in mlx5_alloc_shared_dr()
583 if (!sh->tunnel_hub && sh->config.dv_miss_info) in mlx5_alloc_shared_dr()
682 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_os_free_shared_dr() local
684 MLX5_ASSERT(sh && sh->refcnt); in mlx5_os_free_shared_dr()
1118 if (!sh) in mlx5_dev_spawn()
1177 priv->sh = sh; in mlx5_dev_spawn()
1267 opriv->sh != priv->sh || in mlx5_dev_spawn()
1408 opriv->sh == priv->sh) { in mlx5_dev_spawn()
1472 if (sh->dev_cap.vf && sh->config.vf_nl_en) in mlx5_dev_spawn()
[all …]
H A Dmlx5_verbs.c572 (priv->sh->cdev->ctx, in mlx5_ibv_hrxq_new()
593 (priv->sh->cdev->ctx, in mlx5_ibv_hrxq_new()
773 (priv->sh->cdev->ctx, in mlx5_ibv_drop_action_create()
1000 if (priv->sh->cdev->config.devx && !priv->sh->tdn) in mlx5_txq_ibv_obj_new()
1048 if (priv->sh->cdev->config.devx && !priv->sh->tdn) { in mlx5_txq_ibv_obj_new()
1101 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_rxq_ibv_obj_dummy_lb_create() local
1120 MLX5_ASSERT(sh->self_lb.ibv_cq && sh->self_lb.qp); in mlx5_rxq_ibv_obj_dummy_lb_create()
1146 .pd = sh->cdev->pd, in mlx5_rxq_ibv_obj_dummy_lb_create()
1152 if (!sh->self_lb.qp) { in mlx5_rxq_ibv_obj_dummy_lb_create()
1184 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_rxq_ibv_obj_dummy_lb_release() local
[all …]
H A Dmlx5_ethdev_os.c164 MLX5_ASSERT(priv->sh); in mlx5_get_ifname()
367 opriv->sh == priv->sh) in mlx5_find_master_dev()
746 for (i = 0; i < sh->max_port; ++i) { in mlx5_dev_interrupt_device_fatal()
767 struct mlx5_dev_ctx_shared *sh = cb_arg; in mlx5_dev_interrupt_nl_cb() local
773 for (i = 0; i < sh->max_port; i++) { in mlx5_dev_interrupt_nl_cb()
804 struct mlx5_dev_ctx_shared *sh = arg; in mlx5_dev_interrupt_handler_nl() local
824 struct mlx5_dev_ctx_shared *sh = cb_arg; in mlx5_dev_interrupt_handler() local
843 mlx5_dev_interrupt_device_fatal(sh); in mlx5_dev_interrupt_handler()
855 if (tmp > sh->max_port) { in mlx5_dev_interrupt_handler()
874 tmp = sh->port[tmp - 1].ih_port_id; in mlx5_dev_interrupt_handler()
[all …]
/dpdk/drivers/net/mlx5/windows/
H A Dmlx5_os.c171 sh->dev_cap.vf = mlx5_dev_is_vf_pci(RTE_DEV_TO_PCI(sh->cdev->dev)); in mlx5_os_capabilities_prepare()
187 if (sh->dev_cap.tso) in mlx5_os_capabilities_prepare()
237 struct mlx5_dev_ctx_shared *sh = priv->sh; in mlx5_alloc_shared_dr() local
240 if (!sh->flow_tbls) in mlx5_alloc_shared_dr()
321 if (!sh) in mlx5_dev_spawn()
350 priv->sh = sh; in mlx5_dev_spawn()
374 opriv->sh != priv->sh || in mlx5_dev_spawn()
414 opriv->sh == priv->sh) { in mlx5_dev_spawn()
570 if (sh) in mlx5_dev_spawn()
587 (void)sh; in mlx5_os_dev_shared_handler_install()
[all …]
H A Dmlx5_ethdev_os.c41 context_obj = (mlx5_context_st *)priv->sh->cdev->ctx; in mlx5_get_mac()
69 context_obj = (mlx5_context_st *)priv->sh->cdev->ctx; in mlx5_get_ifname()
98 context_obj = (mlx5_context_st *)priv->sh->cdev->ctx; in mlx5_get_mtu()
133 context_obj = (mlx5_context_st *)priv->sh->cdev->ctx; in mlx5_set_mtu()
288 context_obj = (mlx5_context_st *)priv->sh->cdev->ctx; in mlx5_link_update()
394 mlx5_context_st *context_obj = (mlx5_context_st *)priv->sh->cdev->ctx; in mlx5_read_clock()
418 mlx5_context_st *context_obj = (mlx5_context_st *)priv->sh->cdev->ctx; in mlx5_is_removed()
/dpdk/doc/guides/howto/
H A Dlm_virtio_vhost_user.rst260 .. code-block:: sh
262 #!/bin/sh
278 .. code-block:: sh
280 #/bin/sh
325 .. code-block:: sh
327 #!/bin/sh
336 .. code-block:: sh
338 #!/bin/sh
356 #/bin/sh
409 #!/bin/sh
[all …]
H A Dlm_bond_virtio_sriov.rst380 .. code-block:: sh
382 #!/bin/sh
402 .. code-block:: sh
404 #!/bin/sh
440 #!/bin/sh
469 #!/bin/sh
482 #!/bin/sh
504 #!/bin/sh
543 #!/bin/sh
579 #!/bin/sh
[all …]
/dpdk/lib/bpf/
H A Dbpf_load_elf.c139 const Elf64_Shdr *sh; in find_elf_code() local
158 sh = elf64_getshdr(sc); in find_elf_code()
159 sn = elf_strptr(elf, eh->e_shstrndx, sh->sh_name); in find_elf_code()
161 sh->sh_type == SHT_PROGBITS && in find_elf_code()
162 sh->sh_flags == (SHF_ALLOC | SHF_EXECINSTR)) in find_elf_code()
239 const Elf64_Shdr *sh; in elf_reloc_code() local
249 sh = elf64_getshdr(sc); in elf_reloc_code()
252 if (sh->sh_type == SHT_REL && sh->sh_info == sidx) { in elf_reloc_code()
257 rc = process_reloc(elf, sh->sh_link, in elf_reloc_code()
/dpdk/examples/ipsec-secgw/test/
H A Drun_test.sh152 /bin/bash ${DIR}/pkttest.sh ${PKT_TESTS}
205 /bin/bash ${DIR}/load_env.sh ${options} ipv4-ipv4 ${i}
210 /bin/bash ${DIR}/load_env.sh ${options} \
221 /bin/bash ${DIR}/load_env.sh ${options} ipv6-ipv6 ${i}
226 /bin/bash ${DIR}/load_env.sh ${options} \
H A Dlinux_test.sh61 . ${DIR}/common_defs.sh
65 . ${DIR}/${MODE}_defs.sh
75 . ${DIR}/data_rxtx.sh
H A Dload_env.sh80 /bin/bash ${DIR}/linux_test.sh ${PROTO} ${MODE}
100 /bin/bash ${DIR}/linux_test.sh ${PROTO} ${MODE}
113 /bin/bash ${DIR}/linux_test.sh ${PROTO} ${MODE}
/dpdk/.ci/
H A Dlinux-build.sh121 devtools/test-null.sh || failed="true"
152 devtools/gen-abi.sh reference
160 devtools/gen-abi.sh install
161 devtools/check-abi.sh reference install ${ABI_CHECKS_WARN_ONLY:-}

1234