| /dpdk/drivers/common/cnxk/ |
| H A D | roc_npc_mcam.c | 8 npc_mcam_alloc_counter(struct npc *npc, uint16_t *ctr) in npc_mcam_alloc_counter() argument 27 npc_mcam_free_counter(struct npc *npc, uint16_t ctr_id) in npc_mcam_free_counter() argument 41 npc_mcam_read_counter(struct npc *npc, uint32_t ctr_id, uint64_t *count) in npc_mcam_read_counter() argument 60 npc_mcam_clear_counter(struct npc *npc, uint32_t ctr_id) in npc_mcam_clear_counter() argument 74 npc_mcam_free_entry(struct npc *npc, uint32_t entry) in npc_mcam_free_entry() argument 88 npc_mcam_free_all_entries(struct npc *npc) in npc_mcam_free_all_entries() argument 119 npc_lid_lt_in_kex(struct npc *npc, uint8_t lid, uint8_t lt) in npc_lid_lt_in_kex() argument 228 npc_get_kex_capability(struct npc *npc) in npc_get_kex_capability() argument 478 npc_mcam_fetch_kex_cfg(struct npc *npc) in npc_mcam_fetch_kex_cfg() argument 806 npc_flow_enable_all_entries(struct npc *npc, bool enable) in npc_flow_enable_all_entries() argument [all …]
|
| H A D | roc_npc.c | 11 struct npc *npc = roc_npc_to_npc_priv(roc_npc); in roc_npc_vtag_actions_get() local 19 struct npc *npc = roc_npc_to_npc_priv(roc_npc); in roc_npc_vtag_actions_sub_return() local 28 struct npc *npc = roc_npc_to_npc_priv(roc_npc); in roc_npc_mcam_free_counter() local 37 struct npc *npc = roc_npc_to_npc_priv(roc_npc); in roc_npc_mcam_read_counter() local 45 struct npc *npc = roc_npc_to_npc_priv(roc_npc); in roc_npc_mcam_clear_counter() local 53 struct npc *npc = roc_npc_to_npc_priv(roc_npc); in roc_npc_mcam_free_entry() local 61 struct npc *npc = roc_npc_to_npc_priv(roc_npc); in roc_npc_mcam_free_all_resources() local 71 struct npc *npc = roc_npc_to_npc_priv(roc_npc); in roc_npc_mcam_alloc_entries() local 80 struct npc *npc = roc_npc_to_npc_priv(roc_npc); in roc_npc_mcam_enable_all_entries() local 157 memset(npc, 0, sizeof(*npc)); in roc_npc_init() [all …]
|
| H A D | roc_npc_priv.h | 176 struct npc *npc; member 368 struct npc { struct 397 return (struct npc *)npc->reserved; in roc_npc_to_npc_priv() 400 int npc_mcam_free_counter(struct npc *npc, uint16_t ctr_id); 403 int npc_mcam_free_entry(struct npc *npc, uint32_t entry); 404 int npc_mcam_free_all_entries(struct npc *npc); 437 int npc_mcam_fetch_kex_cfg(struct npc *npc); 439 struct npc *npc); 441 int npc_flow_free_all_resources(struct npc *npc); 446 uint64_t npc_get_kex_capability(struct npc *npc); [all …]
|
| H A D | roc_npc_utils.c | 81 lf_cfg = pst->npc->prx_lfcfg[i].i; in npc_get_hw_supp_mask() 244 lf_cfg = pst->npc->prx_lfcfg[i].i; in npc_update_parse_state() 268 npc_initialise_mcam_entry(struct npc *npc, struct roc_npc_flow *flow, in npc_initialise_mcam_entry() argument 341 npc_slide_mcam_entries(struct mbox *mbox, struct npc *npc, int prio, in npc_slide_mcam_entries() argument 349 list = &npc->prio_flow_list[prio]; in npc_slide_mcam_entries() 478 struct npc *npc, in npc_sort_mcams_by_user_prio_level() argument 539 npc_insert_into_flow_list(struct npc *npc, struct npc_prio_flow_entry *entry) in npc_insert_into_flow_list() argument 594 npc_find_mcam_ref_entry(struct roc_npc_flow *flow, struct npc *npc, int *prio, in npc_find_mcam_ref_entry() argument 631 struct npc *npc, in npc_alloc_mcam_by_ref_entry() argument 656 struct npc *npc) in npc_get_free_mcam_entry() argument [all …]
|
| H A D | roc_npc_mcam_dump.c | 295 npc_flow_print_item(FILE *file, struct npc *npc, struct npc_xtract_info *xinfo, in npc_flow_print_item() argument 305 lf_cfg = npc->prx_lfcfg[ld].i; in npc_flow_print_item() 311 lflags_info = npc->prx_fxcfg[intf][ld][i].xtract; in npc_flow_print_item() 320 npc_flow_dump_patterns(FILE *file, struct npc *npc, struct roc_npc_flow *flow) in npc_flow_dump_patterns() argument 329 parse_nibbles = npc->keyx_supp_nmask[intf]; in npc_flow_dump_patterns() 335 lt_xinfo = &npc->prx_dxcfg[intf][lid][ltype]; in npc_flow_dump_patterns() 341 npc_flow_print_item(file, npc, xinfo, flow, intf, lid, in npc_flow_dump_patterns() 588 struct npc *npc = roc_npc_to_npc_priv(roc_npc); in roc_npc_flow_mcam_dump() local 603 npc_flow_dump_patterns(file, npc, flow); in roc_npc_flow_mcam_dump()
|
| H A D | roc_npc_parse.c | 75 if (pst->npc->switch_header_type != ROC_PRIV_FLAGS_PRE_L2) in npc_parse_pre_l2() 205 if (pst->npc->switch_header_type == ROC_PRIV_FLAGS_HIGIG) { in npc_parse_la() 210 if (pst->npc->switch_header_type == ROC_PRIV_FLAGS_HIGIG) { in npc_parse_la() 302 if (!(pst->npc->keyx_supp_nmask[pst->nix_intf] & in npc_parse_lb() 366 if (pst->npc->switch_header_type == ROC_PRIV_FLAGS_VLAN_EXDSA) { in npc_parse_lb() 368 } else if (pst->npc->switch_header_type == in npc_parse_lb()
|
| H A D | roc_platform.h | 243 #define plt_npc_dbg(fmt, ...) plt_dbg(npc, fmt, ##__VA_ARGS__)
|
| /dpdk/drivers/net/cnxk/ |
| H A D | cnxk_flow.c | 120 struct roc_npc *roc_npc_src = &dev->npc; in cnxk_map_actions() 181 roc_npc_dst = &hw_dst->npc; in cnxk_map_actions() 290 struct roc_npc *npc = &dev->npc; in cnxk_flow_validate() local 325 struct roc_npc *npc = &dev->npc; in cnxk_flow_create() local 333 &npc->flowkey_cfg_state); in cnxk_flow_create() 356 struct roc_npc *npc = &dev->npc; in cnxk_flow_destroy() local 359 rc = roc_npc_flow_destroy(npc, flow); in cnxk_flow_destroy() 370 struct roc_npc *npc = &dev->npc; in cnxk_flow_flush() local 390 struct roc_npc *npc = &dev->npc; in cnxk_flow_query() local 450 struct roc_npc *npc = &dev->npc; in cnxk_flow_dev_dump() local [all …]
|
| H A D | cn9k_flow.c | 16 struct roc_npc *npc = &dev->npc; in cn9k_flow_create() local 24 vtag_actions = roc_npc_vtag_actions_get(npc); in cn9k_flow_create() 40 struct roc_npc *npc = &dev->npc; in cn9k_flow_destroy() local 43 vtag_actions = roc_npc_vtag_actions_get(npc); in cn9k_flow_destroy() 46 vtag_actions = roc_npc_vtag_actions_sub_return(npc, 1); in cn9k_flow_destroy()
|
| H A D | cnxk_ethdev_devargs.c | 331 dev->npc.flow_prealloc_size = flow_prealloc_size; in cnxk_ethdev_parse_devargs() 332 dev->npc.flow_max_priority = flow_max_priority; in cnxk_ethdev_parse_devargs() 333 dev->npc.switch_header_type = switch_header_type; in cnxk_ethdev_parse_devargs() 334 dev->npc.sdp_channel = sdp_chan.channel; in cnxk_ethdev_parse_devargs() 335 dev->npc.sdp_channel_mask = sdp_chan.mask; in cnxk_ethdev_parse_devargs() 336 dev->npc.is_sdp_mask_set = sdp_chan.is_sdp_mask_set; in cnxk_ethdev_parse_devargs() 337 dev->npc.pre_l2_size_offset = pre_l2_info.pre_l2_size_off; in cnxk_ethdev_parse_devargs() 338 dev->npc.pre_l2_size_offset_mask = pre_l2_info.pre_l2_size_off_mask; in cnxk_ethdev_parse_devargs() 339 dev->npc.pre_l2_size_shift_dir = pre_l2_info.pre_l2_size_shift_dir; in cnxk_ethdev_parse_devargs()
|
| H A D | cn10k_flow.c | 134 struct roc_npc *npc = &dev->npc; in cn10k_flow_create() local 200 vtag_actions = roc_npc_vtag_actions_get(npc); in cn10k_flow_create() 216 struct roc_npc *npc = &dev->npc; in cn10k_flow_destroy() local 221 vtag_actions = roc_npc_vtag_actions_get(npc); in cn10k_flow_destroy() 224 vtag_actions = roc_npc_vtag_actions_sub_return(npc, 1); in cn10k_flow_destroy()
|
| H A D | cnxk_ethdev.c | 14 dev->npc.switch_header_type == ROC_PRIV_FLAGS_HIGIG) in nix_get_rx_offload_capa() 331 dev->npc.switch_header_type != ROC_PRIV_FLAGS_HIGIG) in nix_init_flow_ctrl_config() 1136 dev->npc.channel = roc_nix_get_base_chan(nix); in cnxk_nix_configure() 1179 dev->npc.pre_l2_size_offset, in cnxk_nix_configure() 1180 dev->npc.pre_l2_size_offset_mask, in cnxk_nix_configure() 1181 dev->npc.pre_l2_size_shift_dir); in cnxk_nix_configure() 1428 rc = roc_npc_mcam_enable_all_entries(&dev->npc, 0); in cnxk_nix_dev_stop() 1507 rc = roc_npc_mcam_enable_all_entries(&dev->npc, 1); in cnxk_nix_dev_start() 1741 dev->npc.roc_nix = nix; in cnxk_eth_dev_init() 1742 rc = roc_npc_init(&dev->npc); in cnxk_eth_dev_init() [all …]
|
| H A D | cnxk_ptp.c | 199 if (dev->npc.switch_header_type == ROC_PRIV_FLAGS_HIGIG) { in cnxk_nix_timesync_enable()
|
| H A D | cnxk_ethdev.h | 345 struct roc_npc npc; member
|
| H A D | cnxk_ethdev_ops.c | 704 const char *str = roc_npc_profile_name_get(&dev->npc); in cnxk_nix_fw_version_get()
|
| /dpdk/doc/guides/platform/ |
| H A D | cnxk.rst | 306 |-- npc 538 cat /sys/kernel/debug/cn10k/npc/mcam_info
|