| /dpdk/lib/eal/include/generic/ |
| H A D | rte_pflock.h | 91 rte_pflock_init(struct rte_pflock *pf) in rte_pflock_init() argument 93 pf->rd.in = 0; in rte_pflock_init() 94 pf->rd.out = 0; in rte_pflock_init() 95 pf->wr.in = 0; in rte_pflock_init() 96 pf->wr.out = 0; in rte_pflock_init() 110 rte_pflock_read_lock(rte_pflock_t *pf) in rte_pflock_read_lock() argument 124 RTE_WAIT_UNTIL_MASKED(&pf->rd.in, RTE_PFLOCK_WBITS, !=, w, in rte_pflock_read_lock() 139 rte_pflock_read_unlock(rte_pflock_t *pf) in rte_pflock_read_unlock() argument 155 rte_pflock_write_lock(rte_pflock_t *pf) in rte_pflock_write_lock() argument 191 rte_pflock_write_unlock(rte_pflock_t *pf) in rte_pflock_write_unlock() argument [all …]
|
| /dpdk/drivers/net/enic/ |
| H A D | enic_vf_representor.c | 59 pf = vf->pf; in enic_vf_dev_tx_queue_setup() 101 pf = vf->pf; in enic_vf_dev_rx_queue_setup() 171 pf = vf->pf; in enic_vf_dev_start() 239 enic_rxmbuf_queue_release(pf, &pf->rq[index]); in enic_vf_dev_start() 260 pf = vf->pf; in enic_vf_dev_stop() 410 pf = vf->pf; in enic_vf_link_update() 468 pf = vf->pf; in enic_vf_dev_infos_get() 580 pf = vf->pf; in get_vf_config() 623 vf->pf = params->pf; in enic_vf_representor_init() 626 pf = vf->pf; in enic_vf_representor_init() [all …]
|
| /dpdk/drivers/net/hns3/ |
| H A D | hns3_tm.c | 44 pf->tm_conf.root = NULL; in hns3_tm_conf_init() 47 pf->tm_conf.nb_tc_node = 0; in hns3_tm_conf_init() 77 pf->tm_conf.nb_tc_node = 0; in hns3_tm_conf_uninit() 81 rte_free(pf->tm_conf.root); in hns3_tm_conf_uninit() 82 pf->tm_conf.root = NULL; in hns3_tm_conf_uninit() 308 if (pf->tm_conf.root && pf->tm_conf.root->id == node_id) { in hns3_tm_node_search() 310 return pf->tm_conf.root; in hns3_tm_node_search() 479 if (pf->tm_conf.root) { in hns3_tm_port_node_add() 545 pf->tm_conf.nb_tc_node++; in hns3_tm_tc_node_add() 1252 if (pf->tm_conf.root && !pf->tm_conf.committed) in hns3_tm_dev_start_proc() [all …]
|
| H A D | hns3_ptp.c | 82 struct hns3_pf *pf = &hns->pf; in hns3_timesync_configure() local 110 pf->ptp_enable = en; in hns3_timesync_configure() 120 struct hns3_pf *pf = &hns->pf; in hns3_timesync_enable() local 126 if (pf->ptp_enable) in hns3_timesync_enable() 141 struct hns3_pf *pf = &hns->pf; in hns3_timesync_disable() local 147 if (!pf->ptp_enable) in hns3_timesync_disable() 165 struct hns3_pf *pf = &hns->pf; in hns3_timesync_read_rx_timestamp() local 171 ns = pf->rx_timestamp & TIME_RX_STAMP_NS_MASK; in hns3_timesync_read_rx_timestamp() 172 sec = upper_32_bits(pf->rx_timestamp); in hns3_timesync_read_rx_timestamp() 279 struct hns3_pf *pf = &hns->pf; in hns3_restore_ptp() local [all …]
|
| H A D | hns3_fdir.c | 278 struct hns3_pf *pf = &hns->pf; in hns3_set_fd_key_config() local 305 struct hns3_pf *pf = &hns->pf; in hns3_init_fd_config() local 314 switch (pf->fdir.fd_cfg.fd_mode) { in hns3_init_fd_config() 324 pf->fdir.fd_cfg.fd_mode); in hns3_init_fd_config() 373 pf->fdir.fd_cfg.cnt_num[HNS3_FD_STAGE_1], in hns3_init_fd_config() 718 struct hns3_pf *pf = &hns->pf; in hns3_config_key() local 825 struct hns3_pf *pf = &hns->pf; in hns3_fdir_filter_init() local 867 struct hns3_pf *pf = &hns->pf; in hns3_fdir_filter_uninit() local 959 struct hns3_pf *pf = &hns->pf; in hns3_fdir_filter_program() local 1024 struct hns3_pf *pf = &hns->pf; in hns3_clear_all_fdir_filter() local [all …]
|
| H A D | hns3_dcb.c | 186 struct hns3_pf *pf = &hns->pf; in hns3_pg_to_pri_map() local 762 struct hns3_pf *pf = &hns->pf; in hns3_dcb_info_init() local 808 struct hns3_pf *pf = &hns->pf; in hns3_dcb_lvl2_schd_mode_cfg() local 828 struct hns3_pf *pf = &hns->pf; in hns3_dcb_lvl34_schd_mode_cfg() local 900 struct hns3_pf *pf = &hns->pf; in hns3_dcb_pri_dwrr_cfg() local 937 struct hns3_pf *pf = &hns->pf; in hns3_dcb_pg_dwrr_cfg() local 1056 struct hns3_pf *pf = &hns->pf; in hns3_pri_q_qs_cfg() local 1345 struct hns3_pf *pf = &hns->pf; in hns3_dcb_pause_setup_hw() local 1415 struct hns3_pf *pf = &hns->pf; in hns3_dcb_info_cfg() local 1470 struct hns3_pf *pf = &hns->pf; in hns3_dcb_info_update() local [all …]
|
| H A D | hns3_ethdev.c | 367 struct hns3_pf *pf = &hns->pf; in hns3_rm_dev_vlan_table() local 386 struct hns3_pf *pf = &hns->pf; in hns3_add_dev_vlan_table() local 410 struct hns3_pf *pf = &hns->pf; in hns3_restore_vlan_table() local 829 struct hns3_pf *pf = &hns->pf; in hns3_rm_all_vlan_table() local 852 struct hns3_pf *pf = &hns->pf; in hns3_add_all_vlan_table() local 1130 struct hns3_pf *pf = &hns->pf; in hns3_restore_vlan_conf() local 1262 struct hns3_pf *pf = &hns->pf; in hns3_init_umv_space() local 1285 struct hns3_pf *pf = &hns->pf; in hns3_uninit_umv_space() local 1304 struct hns3_pf *pf = &hns->pf; in hns3_is_umv_space_full() local 1316 struct hns3_pf *pf = &hns->pf; in hns3_update_umv_space() local [all …]
|
| /dpdk/drivers/net/i40e/ |
| H A D | i40e_ethdev.c | 4770 pf->lan_qp_offset = pf->fdir_qp_offset + pf->fdir_nb_qps; in i40e_pf_parameter_init() 4777 pf->lan_nb_qps = pf->lan_nb_qp_max; in i40e_pf_parameter_init() 4783 pf->vf_qp_offset = pf->lan_qp_offset + pf->lan_nb_qps; in i40e_pf_parameter_init() 4786 pf->vf_nb_qps = pf->vf_nb_qp_max; in i40e_pf_parameter_init() 4790 pf->vf_num, pf->vf_nb_qps, pf->vf_nb_qps * pf->vf_num); in i40e_pf_parameter_init() 4795 qp_count += pf->vf_nb_qps * pf->vf_num; in i40e_pf_parameter_init() 4799 pf->vmdq_qp_offset = pf->vf_qp_offset + pf->vf_nb_qps * pf->vf_num; in i40e_pf_parameter_init() 4817 pf->vmdq_nb_qps = pf->vmdq_nb_qp_max; in i40e_pf_parameter_init() 4820 pf->max_nb_vmdq_vsi, pf->vmdq_nb_qps, in i40e_pf_parameter_init() 4821 pf->vmdq_nb_qps * pf->max_nb_vmdq_vsi); in i40e_pf_parameter_init() [all …]
|
| H A D | i40e_fdir.c | 176 vsi = pf->fdir.fdir_vsi; in i40e_fdir_setup() 183 vsi = i40e_vsi_setup(pf, I40E_VSI_FDIR, pf->main_vsi, 0); in i40e_fdir_setup() 188 pf->fdir.fdir_vsi = vsi; in i40e_fdir_setup() 268 pf->fdir.rxq = NULL; in i40e_fdir_setup() 271 pf->fdir.txq = NULL; in i40e_fdir_setup() 274 pf->fdir.fdir_vsi = NULL; in i40e_fdir_setup() 288 vsi = pf->fdir.fdir_vsi; in i40e_fdir_teardown() 304 pf->fdir.rxq = NULL; in i40e_fdir_teardown() 306 pf->fdir.txq = NULL; in i40e_fdir_teardown() 308 pf->fdir.fdir_vsi = NULL; in i40e_fdir_teardown() [all …]
|
| H A D | i40e_tm.c | 74 pf->tm_conf.root = NULL; in i40e_tm_conf_init() 77 pf->tm_conf.nb_tc_node = 0; in i40e_tm_conf_init() 99 pf->tm_conf.nb_tc_node = 0; in i40e_tm_conf_uninit() 100 if (pf->tm_conf.root) { in i40e_tm_conf_uninit() 101 rte_free(pf->tm_conf.root); in i40e_tm_conf_uninit() 102 pf->tm_conf.root = NULL; in i40e_tm_conf_uninit() 331 if (pf->tm_conf.root && pf->tm_conf.root->id == node_id) { in i40e_tm_node_search() 333 return pf->tm_conf.root; in i40e_tm_node_search() 511 if (pf->tm_conf.root) { in i40e_node_add() 887 if (!pf->tm_conf.root) in i40e_hierarchy_commit() [all …]
|
| H A D | rte_pmd_i40e.c | 31 if (vf >= pf->vf_num || !pf->vfs) { in rte_pmd_i40e_ping_vfs() 60 if (vf_id >= pf->vf_num || !pf->vfs) { in rte_pmd_i40e_set_vf_mac_anti_spoof() 164 if (vf_id >= pf->vf_num || !pf->vfs) { in rte_pmd_i40e_set_vf_vlan_anti_spoof() 466 if (vf_id >= pf->vf_num || !pf->vfs) { in rte_pmd_i40e_set_vf_unicast_promisc() 507 if (vf_id >= pf->vf_num || !pf->vfs) { in rte_pmd_i40e_set_vf_multicast_promisc() 553 if (vf_id >= pf->vf_num || !pf->vfs) in rte_pmd_i40e_set_vf_mac_addr() 598 if (vf_id >= pf->vf_num || !pf->vfs) in rte_pmd_i40e_remove_vf_mac_addr() 637 if (vf_id >= pf->vf_num || !pf->vfs) { in rte_pmd_i40e_set_vf_vlan_stripq() 689 if (vf_id >= pf->vf_num || !pf->vfs) { in rte_pmd_i40e_set_vf_vlan_insert() 748 if (vf_id >= pf->vf_num || !pf->vfs) { in rte_pmd_i40e_set_vf_broadcast() [all …]
|
| H A D | i40e_hash.c | 479 struct i40e_pf *pf; in i40e_hash_get_pctypes() local 615 struct i40e_pf *pf; in i40e_hash_config_func() local 636 pf = &((struct i40e_adapter *)hw->back)->pf; in i40e_hash_config_func() 657 struct i40e_pf *pf = &((struct i40e_adapter *)hw->back)->pf; in i40e_hash_config_pctype_symmetric() local 851 pf->hash_enabled_queues = 0; in i40e_hash_config() 870 i40e_pf_disable_rss(pf); in i40e_hash_config() 929 struct i40e_pf *pf; in i40e_hash_parse_queues() local 977 struct i40e_pf *pf; in i40e_hash_parse_queue_region() local 1221 i40e_pf_disable_rss(pf); in i40e_hash_filter_restore() 1264 if (i40e_pf_config_rss(pf)) in i40e_hash_filter_create() [all …]
|
| H A D | i40e_vf_representor.c | 33 representor->adapter->pf.dev_data; in i40e_vf_representor_dev_infos_get() 183 struct i40e_pf *pf; in rte_pmd_i40e_get_vf_native_stats() local 195 if (vf_id >= pf->vf_num || !pf->vfs) { in rte_pmd_i40e_get_vf_native_stats() 200 vsi = pf->vfs[vf_id].vsi; in rte_pmd_i40e_get_vf_native_stats() 365 struct i40e_pf *pf; in i40e_vf_representor_vlan_offload_set() local 378 if (vfid >= pf->vf_num || !pf->vfs) { in i40e_vf_representor_vlan_offload_set() 383 vf = &pf->vfs[vfid]; in i40e_vf_representor_vlan_offload_set() 483 struct i40e_pf *pf; in i40e_vf_representor_init() local 494 pf = I40E_DEV_PRIVATE_TO_PF( in i40e_vf_representor_init() 497 if (representor->vf_id >= pf->vf_num) in i40e_vf_representor_init() [all …]
|
| H A D | i40e_pf.c | 120 struct i40e_pf *pf; in i40e_pf_host_vf_reset() local 128 pf = vf->pf; in i40e_pf_host_vf_reset() 222 if (pf->floating_veb && pf->floating_veb_list[vf_id]) { in i40e_pf_host_vf_reset() 670 struct i40e_pf *pf = vf->pf; in i40e_pf_host_process_cmd_config_irq_map() local 1277 pf = vf->pf; in i40e_pf_host_process_cmd_request_queues() 1317 struct i40e_pf *pf = vf->pf; in i40e_pf_host_process_cmd_get_rss_hena() local 1361 if (vf_id > pf->vf_num - 1 || !pf->vfs) { in i40e_pf_host_handle_vf_msg() 1584 pf->vfs = rte_zmalloc("i40e_pf_vf",sizeof(*pf->vfs) * pf->vf_num, 0); in i40e_pf_host_init() 1601 pf->vfs[i].pf = pf; in i40e_pf_host_init() 1629 rte_free(pf->vfs); in i40e_pf_host_init() [all …]
|
| H A D | i40e_ethdev.h | 458 struct i40e_pf *pf; member 502 struct i40e_pf *pf; member 1229 struct i40e_pf pf; member 1321 int i40e_fdir_setup(struct i40e_pf *pf); 1426 int i40e_pf_config_rss(struct i40e_pf *pf); 1437 (&((struct i40e_adapter *)adapter)->pf) 1451 return pf->main_vsi; in i40e_get_vsi_from_adapter() 1469 #define I40E_PF_TO_HW(pf) \ argument 1470 (&(((struct i40e_pf *)pf)->adapter->hw)) 1471 #define I40E_PF_TO_ADAPTER(pf) \ argument [all …]
|
| H A D | i40e_hash.h | 22 int i40e_hash_filter_create(struct i40e_pf *pf, 25 int i40e_hash_filter_restore(struct i40e_pf *pf); 26 int i40e_hash_filter_destroy(struct i40e_pf *pf, 28 int i40e_hash_filter_flush(struct i40e_pf *pf);
|
| /dpdk/drivers/net/ice/ |
| H A D | ice_fdir_filter.c | 524 pf->fdir.mz = mz; in ice_fdir_setup() 540 pf->fdir.mz = NULL; in ice_fdir_setup() 660 if (pf->fdir.mz) { in ice_fdir_teardown() 1118 ret = ice_fdir_hw_tbl_conf(pf, pf->main_vsi, pf->fdir.fdir_vsi, in ice_fdir_input_set_conf() 1149 struct ice_pf *pf = &ad->pf; in ice_fdir_init() local 1169 struct ice_pf *pf = &ad->pf; in ice_fdir_uninit() local 1316 struct ice_pf *pf = &ad->pf; in ice_fdir_create_filter() local 1475 struct ice_pf *pf = &ad->pf; in ice_fdir_destroy_filter() local 1572 struct ice_pf *pf = &ad->pf; in ice_fdir_query_count() local 1680 struct ice_pf *pf = &ad->pf; in ice_fdir_parse_action() local [all …]
|
| H A D | ice_ethdev.c | 1393 pf->proto_xtr = rte_zmalloc(NULL, pf->lan_nb_qps, 0); in ice_init_proto_xtr() 1472 pf->lan_nb_qps = pf->lan_nb_qp_max; in ice_pf_sw_init() 1480 pf->lan_nb_qps = pf->lan_nb_qp_max - pf->fdir_nb_qps; in ice_pf_sw_init() 2149 memset(&pf->hash_ctx, 0, sizeof(pf->hash_ctx)); in ice_rss_ctx_init() 2851 return ice_add_rss_cfg_pre_gtpu(pf, &pf->hash_ctx.gtpu4, in ice_add_rss_cfg_pre() 2854 return ice_add_rss_cfg_pre_gtpu(pf, &pf->hash_ctx.gtpu6, in ice_add_rss_cfg_pre() 2951 return ice_add_rss_cfg_post_gtpu(pf, &pf->hash_ctx.gtpu4, in ice_add_rss_cfg_post() 2954 return ice_add_rss_cfg_post_gtpu(pf, &pf->hash_ctx.gtpu6, in ice_add_rss_cfg_post() 4654 pf->rss_hf = 0; in ice_rss_hash_update() 5433 if (pf->main_vsi) in ice_read_stats_registers() [all …]
|
| H A D | ice_acl_filter.c | 149 if (pf->acl.slots) { in ice_deinit_acl() 150 rte_free(pf->acl.slots); in ice_deinit_acl() 151 pf->acl.slots = NULL; in ice_deinit_acl() 488 struct ice_pf *pf = &ad->pf; in ice_acl_create_filter() local 576 struct ice_pf *pf = &ad->pf; in ice_acl_destroy_filter() local 922 struct ice_pf *pf = &ad->pf; in ice_acl_parse() local 982 pf->acl.slots = slots; in ice_acl_bitmap_init() 994 struct ice_pf *pf = &ad->pf; in ice_acl_init() local 1008 ret = ice_acl_setup(pf); in ice_acl_init() 1041 struct ice_pf *pf = &ad->pf; in ice_acl_uninit() local [all …]
|
| H A D | ice_generic_flow.c | 1824 struct ice_pf *pf = &ad->pf; in ice_flow_init() local 1828 TAILQ_INIT(&pf->flow_list); in ice_flow_init() 1829 TAILQ_INIT(&pf->rss_parser_list); in ice_flow_init() 1830 TAILQ_INIT(&pf->perm_parser_list); in ice_flow_init() 1857 struct ice_pf *pf = &ad->pf; in ice_flow_uninit() local 1903 struct ice_pf *pf = &ad->pf; in ice_get_parser_list() local 1907 list = &pf->rss_parser_list; in ice_get_parser_list() 1910 list = &pf->perm_parser_list; in ice_get_parser_list() 1913 list = &pf->dist_parser_list; in ice_get_parser_list() 2552 struct ice_pf *pf = &ad->pf; in ice_flow_query() local [all …]
|
| /dpdk/drivers/net/bnxt/ |
| H A D | rte_pmd_bnxt.c | 67 bp->pf->evb_mode = BNXT_EVB_MODE_VEB; in rte_pmd_bnxt_set_tx_loopback() 69 bp->pf->evb_mode = BNXT_EVB_MODE_VEPA; in rte_pmd_bnxt_set_tx_loopback() 200 if (!bp->pf->active_vfs) in rte_pmd_bnxt_set_vf_rate_limit() 203 if (vf >= bp->pf->max_vfs) in rte_pmd_bnxt_set_vf_rate_limit() 331 bp->pf->first_vf_id + vf, in rte_pmd_bnxt_set_vf_vlan_anti_spoof() 332 bp->pf->vf_info[vf].vlan_count, in rte_pmd_bnxt_set_vf_vlan_anti_spoof() 418 if (!bp->pf->vf_info) in rte_pmd_bnxt_set_vf_rxmode() 445 &bp->pf->vf_info[vf].l2_rx_mask, in rte_pmd_bnxt_set_vf_rxmode() 480 bp->pf->vf_info[vf].vlan_count, in bnxt_set_vf_table() 509 if (!bp->pf->vf_info) in rte_pmd_bnxt_set_vf_vlan_filter() [all …]
|
| H A D | bnxt_cpr.c | 279 if (bp->pf->active_vfs <= 0) { in bnxt_handle_fwd_req() 286 vf_id = fw_vf_id - bp->pf->first_vf_id; in bnxt_handle_fwd_req() 295 fwd_cmd = (struct input *)bp->pf->vf_info[vf_id].req_buf; in bnxt_handle_fwd_req() 297 if (fw_vf_id < bp->pf->first_vf_id || in bnxt_handle_fwd_req() 298 fw_vf_id >= bp->pf->first_vf_id + bp->pf->active_vfs) { in bnxt_handle_fwd_req() 301 fw_vf_id, bp->pf->first_vf_id, in bnxt_handle_fwd_req() 302 (bp->pf->first_vf_id) + bp->pf->active_vfs - 1, in bnxt_handle_fwd_req() 303 bp->pf->first_vf_id, bp->pf->active_vfs); in bnxt_handle_fwd_req() 340 fw_vf_id - bp->pf->first_vf_id, in bnxt_handle_fwd_req() 351 fw_vf_id - bp->pf->first_vf_id, in bnxt_handle_fwd_req()
|
| /dpdk/lib/ipsec/ |
| H A D | sa.c | 692 struct rte_ipsec_sa_pkt_func *pf) in lksd_none_pkt_func_select() argument 704 pf->process = esp_inb_tun_pkt_process; in lksd_none_pkt_func_select() 708 pf->process = esp_inb_trs_pkt_process; in lksd_none_pkt_func_select() 713 pf->process = (sa->sqh_len != 0) ? in lksd_none_pkt_func_select() 718 pf->process = (sa->sqh_len != 0) ? in lksd_none_pkt_func_select() 730 struct rte_ipsec_sa_pkt_func *pf) in cpu_crypto_pkt_func_select() argument 751 pf->process = (sa->sqh_len != 0) ? in cpu_crypto_pkt_func_select() 756 pf->process = (sa->sqh_len != 0) ? in cpu_crypto_pkt_func_select() 772 struct rte_ipsec_sa_pkt_func *pf) in inline_crypto_pkt_func_select() argument 825 pf->process = pkt_flag_process; in ipsec_sa_pkt_func_select() [all …]
|
| /dpdk/drivers/net/mlx5/ |
| H A D | mlx5_ethdev.c | 435 int i = 0, pf; in mlx5_representor_info_get() local 446 info->pf = priv->pf_bond >= 0 ? priv->pf_bond : 0; in mlx5_representor_info_get() 447 for (pf = 0; pf < n_pf; ++pf) { in mlx5_representor_info_get() 451 info->ranges[i].pf = pf; in mlx5_representor_info_get() 458 sizeof(info->ranges[i].name), "pf%dvf", pf); in mlx5_representor_info_get() 465 info->ranges[i].pf = pf; in mlx5_representor_info_get() 472 sizeof(info->ranges[i].name), "pf%dvf", pf); in mlx5_representor_info_get() 479 info->ranges[i].pf = pf; in mlx5_representor_info_get() 486 sizeof(info->ranges[i].name), "pf%dsf", pf); in mlx5_representor_info_get() 493 info->ranges[i].pf = pf; in mlx5_representor_info_get() [all …]
|
| /dpdk/drivers/common/sfc_efx/base/ |
| H A D | ef10_tlv_layout.h | 216 #define TLV_TAG_PF_STATIC_VPD(pf) (0x00030000 + (pf)) argument 241 #define TLV_TAG_PF_DYNAMIC_VPD(pf) (0x10030000 + (pf)) argument 266 #define TLV_TAG_PF_DBI(pf) (0x00040000 + (pf)) argument 351 #define TLV_TAG_PF_PCIE_CONFIG(pf) (0x10080000 + (pf)) argument 668 #define TLV_TAG_VPORT_VLAN_TAG(pf) (0x10130000 + (pf)) argument 732 #define TLV_TAG_PRIVILEGE_MASK_ADD_SINGLE_PF(pf) (0x101A0000 + (pf)) argument 785 #define TLV_TAG_RATE_LIMIT(pf) (0x101b0000 + (pf)) argument
|