| /dpdk/drivers/net/thunderx/base/ |
| H A D | nicvf_mbox.c | 83 nic->pf_acked = false; in nicvf_mbox_send_msg_to_pf() 95 if (nic->pf_nacked) in nicvf_mbox_send_msg_to_pf() 97 if (nic->pf_acked) in nicvf_mbox_send_msg_to_pf() 140 nic->pf_acked = true; in nicvf_handle_mbx_intr() 143 nic->pf_acked = true; in nicvf_handle_mbx_intr() 146 nic->pf_nacked = true; in nicvf_handle_mbx_intr() 150 nic->pf_acked = true; in nicvf_handle_mbx_intr() 156 nic->pf_acked = true; in nicvf_handle_mbx_intr() 159 assert_primary(nic); in nicvf_handle_mbx_intr() 176 nic->pf_acked = true; in nicvf_handle_mbx_intr() [all …]
|
| H A D | nicvf_hw.c | 111 nic->hwcap = 0; in nicvf_base_init() 149 nicvf_reg_read(nic, in nicvf_reg_dump() 160 nicvf_queue_reg_read(nic, in nicvf_reg_dump() 171 nicvf_queue_reg_read(nic, in nicvf_reg_dump() 182 nicvf_queue_reg_read(nic, in nicvf_reg_dump() 193 nicvf_queue_reg_read(nic, in nicvf_reg_dump() 227 pf_qs_cfg.vnic = nic->vf_id; in nicvf_qset_config_internal() 276 nicvf_reg_dump(nic, NULL); in nicvf_handle_qset_err_intr() 494 phy = handler(dev, nic); in nicvf_qset_rbdr_precharge() 702 nic->vlan_strip = enable; in nicvf_vlan_hw_strip() [all …]
|
| H A D | nicvf_hw.h | 114 nicvf_addr_write(nic->reg_base + offset, val); in nicvf_reg_write() 143 nicvf_disable_all_interrupts(struct nicvf *nic) in nicvf_disable_all_interrupts() argument 150 nicvf_hw_version(struct nicvf *nic) in nicvf_hw_version() argument 152 return nic->subsystem_device_id; in nicvf_hw_version() 156 nicvf_hw_cap(struct nicvf *nic) in nicvf_hw_cap() argument 158 return nic->hwcap; in nicvf_hw_cap() 161 int nicvf_base_init(struct nicvf *nic); 167 int nicvf_qset_config(struct nicvf *nic); 168 int nicvf_qset_reclaim(struct nicvf *nic); 199 int nicvf_rss_term(struct nicvf *nic); [all …]
|
| H A D | nicvf_mbox.h | 203 int nicvf_handle_mbx_intr(struct nicvf *nic); 204 int nicvf_mbox_check_pf_ready(struct nicvf *nic); 206 int nicvf_mbox_request_sqs(struct nicvf *nic); 207 int nicvf_mbox_rq_config(struct nicvf *nic, uint16_t qidx, 209 int nicvf_mbox_sq_config(struct nicvf *nic, uint16_t qidx); 212 int nicvf_mbox_set_mac_addr(struct nicvf *nic, 215 int nicvf_mbox_get_rss_size(struct nicvf *nic); 216 int nicvf_mbox_config_rss(struct nicvf *nic); 218 int nicvf_mbox_rq_sync(struct nicvf *nic); 223 void nicvf_mbox_shutdown(struct nicvf *nic); [all …]
|
| /dpdk/drivers/net/octeontx/ |
| H A D | octeontx_ethdev.c | 219 dev = nic->dev; in octeontx_link_status_poll() 278 dev = nic->dev; in octeontx_port_promisc_set() 460 nic->base_ochan, nic->num_tx_queues); in octeontx_dev_configure() 503 nic->base_ochan, nic->port_id, nic->num_tx_queues, in octeontx_dev_close() 622 nic->port_id, nic->num_tx_queues, nic->base_ochan, in octeontx_dev_start() 647 nic->base_ochan, nic->num_tx_queues, nic->port_id); in octeontx_dev_start() 693 nic->base_ochan, nic->port_id, nic->num_tx_queues, in octeontx_dev_stop() 1405 octeontx_bgx_port_mac_add(nic->port_id, nic->mac_addr, 0); in octeontx_create() 1413 nic->port_id, nic->port_ena, in octeontx_create() 1414 nic->base_ochan, nic->num_ochans, in octeontx_create() [all …]
|
| H A D | octeontx_ethdev_ops.c | 14 struct octeontx_vlan_info *vlan = &nic->vlan_info; in octeontx_vlan_hw_filter() 27 nic->port_id); in octeontx_vlan_hw_filter() 48 rc = octeontx_vlan_hw_filter(nic, true); in octeontx_dev_vlan_offload_set() 53 nic->rx_offload_flags |= OCCTX_RX_VLAN_FLTR_F; in octeontx_dev_vlan_offload_set() 55 rc = octeontx_vlan_hw_filter(nic, false); in octeontx_dev_vlan_offload_set() 110 "for port %d", nic->port_id); in octeontx_dev_vlan_filter_set() 139 TAILQ_INIT(&nic->vlan_info.fltr_tbl); in octeontx_dev_vlan_offload_init() 167 "for port %d", nic->port_id); in octeontx_dev_vlan_offload_fini() 241 struct octeontx_fc_info *fc = &nic->fc; in octeontx_dev_flow_ctrl_set() 300 struct octeontx_fc_info *fc = &nic->fc; in octeontx_dev_flow_ctrl_init() [all …]
|
| H A D | octeontx_rxtx.c | 61 struct octeontx_nic *nic = octeontx_pmd_priv(dev); in octeontx_set_tx_function() local 72 [!!(nic->tx_offload_flags & OCCTX_TX_OFFLOAD_MBUF_NOFF_F)] in octeontx_set_tx_function() 73 [!!(nic->tx_offload_flags & OCCTX_TX_OFFLOAD_OL3_OL4_CSUM_F)] in octeontx_set_tx_function() 74 [!!(nic->tx_offload_flags & OCCTX_TX_OFFLOAD_L3_L4_CSUM_F)] in octeontx_set_tx_function() 75 [!!(nic->tx_offload_flags & OCCTX_TX_MULTI_SEG_F)]; in octeontx_set_tx_function()
|
| /dpdk/drivers/net/thunderx/ |
| H A D | nicvf_ethdev.c | 198 regs->version = nic->vendor_id << 16 | nic->device_id; in nicvf_dev_get_regs() 916 [nic->offload_cksum][nic->vlan_strip]; in nicvf_set_rx_function() 933 nic = nic->snicvf[qidx / MAX_SND_QUEUES_PER_QS - 1]; in nicvf_dev_tx_queue_setup() 987 txq->nic = nic; in nicvf_dev_tx_queue_setup() 1226 struct nicvf *nic = rxq->nic; in nicvf_rxq_mbuf_setup() local 1337 rxq->nic = nic; in nicvf_dev_rx_queue_setup() 1582 nic->rbdr->tail, nb_rbdr_desc, nic->vf_id); in nicvf_vf_start() 2185 nic->node, nic->vf_id, in nicvf_eth_dev_init() 2229 ret = nicvf_mbox_set_mac_addr(nic, nic->mac_addr); in nicvf_eth_dev_init() 2242 nic->mac_addr[0], nic->mac_addr[1], nic->mac_addr[2], in nicvf_eth_dev_init() [all …]
|
| H A D | nicvf_ethdev.h | 78 nicvf_netdev_qidx(struct nicvf *nic, uint8_t local_qidx) in nicvf_netdev_qidx() argument 82 if (nic->sqs_mode) in nicvf_netdev_qidx() 83 global_qidx += ((nic->sqs_id + 1) * MAX_CMP_QUEUES_PER_QS); in nicvf_netdev_qidx() 106 nicvf_tx_range(struct rte_eth_dev *dev, struct nicvf *nic, uint16_t *tx_start, in nicvf_tx_range() argument 111 *tx_start = RTE_ALIGN_FLOOR(nicvf_netdev_qidx(nic, 0), in nicvf_tx_range() 113 tmp = RTE_ALIGN_CEIL(nicvf_netdev_qidx(nic, 0) + 1, in nicvf_tx_range() 120 nicvf_rx_range(struct rte_eth_dev *dev, struct nicvf *nic, uint16_t *rx_start, in nicvf_rx_range() argument 125 *rx_start = RTE_ALIGN_FLOOR(nicvf_netdev_qidx(nic, 0), in nicvf_rx_range() 127 tmp = RTE_ALIGN_CEIL(nicvf_netdev_qidx(nic, 0) + 1, in nicvf_rx_range()
|
| /dpdk/drivers/vdpa/sfc/ |
| H A D | sfc_vdpa_filter.c | 29 sfc_vdpa_set_mac_filter(efx_nic_t *nic, efx_filter_spec_t *spec, in sfc_vdpa_set_mac_filter() argument 34 if (nic == NULL || spec == NULL) in sfc_vdpa_set_mac_filter() 50 rc = efx_filter_insert(nic, spec); in sfc_vdpa_set_mac_filter() 61 efx_nic_t *nic; in sfc_vdpa_filter_config() local 69 nic = sva->nic; in sfc_vdpa_filter_config() 94 rc = sfc_vdpa_set_mac_filter(nic, spec, qid, in sfc_vdpa_filter_config() 106 rc = sfc_vdpa_set_mac_filter(nic, spec, qid, in sfc_vdpa_filter_config() 117 rc = sfc_vdpa_set_mac_filter(nic, spec, qid, NULL); in sfc_vdpa_filter_config() 134 efx_nic_t *nic; in sfc_vdpa_filter_remove() local 136 nic = sva->nic; in sfc_vdpa_filter_remove() [all …]
|
| H A D | sfc_vdpa_hw.c | 217 efx_nic_t *enp = sva->nic; in sfc_vdpa_nic_probe() 259 efx_nic_set_drv_limits(sva->nic, &limits); in sfc_vdpa_estimate_resource_limits() 262 rc = efx_nic_init(sva->nic); in sfc_vdpa_estimate_resource_limits() 269 rc = efx_nic_get_vi_pool(sva->nic, &evq_allocated, &rxq_allocated, in sfc_vdpa_estimate_resource_limits() 293 efx_nic_fini(sva->nic); in sfc_vdpa_estimate_resource_limits() 331 sva->nic = enp; in sfc_vdpa_hw_init() 390 sva->nic = NULL; in sfc_vdpa_hw_init() 405 efx_nic_t *enp = sva->nic; in sfc_vdpa_hw_fini() 422 sva->nic = NULL; in sfc_vdpa_hw_fini()
|
| H A D | sfc_vdpa_ops.c | 48 efx_nic_t *nic; in sfc_vdpa_get_device_features() local 50 nic = sfc_vdpa_adapter_by_dev_handle(ops_data->dev_handle)->nic; in sfc_vdpa_get_device_features() 52 rc = efx_virtio_get_features(nic, EFX_VIRTIO_DEVICE_TYPE_NET, in sfc_vdpa_get_device_features() 325 efx_nic_t *nic; in sfc_vdpa_configure() local 329 nic = sfc_vdpa_adapter_by_dev_handle(dev)->nic; in sfc_vdpa_configure() 355 rc = efx_virtio_qcreate(nic, &vq); in sfc_vdpa_configure() 793 efx_nic_t *nic; in sfc_vdpa_get_notify_area() local 817 nic = sfc_vdpa_adapter_by_dev_handle(ops_data->dev_handle)->nic; in sfc_vdpa_get_notify_area() 818 encp = efx_nic_cfg_get(nic); in sfc_vdpa_get_notify_area()
|
| /dpdk/drivers/net/sfc/ |
| H A D | sfc_port.c | 113 rc = efx_mac_stats_clear(sa->nic); in sfc_port_reset_mac_stats() 128 rc = efx_port_poll(sa->nic, &link_mode); in sfc_port_init_dev_link() 196 rc = efx_filter_init(sa->nic); in sfc_port_start() 201 rc = efx_port_init(sa->nic); in sfc_port_start() 323 rc = efx_mac_drain(sa->nic, B_FALSE); in sfc_port_start() 336 (void)efx_mac_drain(sa->nic, B_TRUE); in sfc_port_start() 353 efx_port_fini(sa->nic); in sfc_port_start() 356 efx_filter_fini(sa->nic); in sfc_port_start() 368 efx_mac_drain(sa->nic, B_TRUE); in sfc_port_stop() 375 efx_port_fini(sa->nic); in sfc_port_stop() [all …]
|
| H A D | sfc.c | 356 efx_nic_fini(sa->nic); in sfc_estimate_resource_limits() 543 efx_nic_fini(sa->nic); in sfc_try_start() 636 efx_nic_fini(sa->nic); in sfc_stop() 846 efx_rx_fini(sa->nic); in sfc_rss_attach() 847 efx_ev_fini(sa->nic); in sfc_rss_attach() 860 efx_rx_fini(sa->nic); in sfc_rss_attach() 863 efx_ev_fini(sa->nic); in sfc_rss_attach() 1057 efx_nic_fini(sa->nic); in sfc_attach() 1305 sa->nic = enp; in sfc_probe() 1324 sa->nic = NULL; in sfc_probe() [all …]
|
| H A D | sfc_nic_dma.c | 69 rc = efx_nic_dma_config_add(sa->nic, memhdr->iova, memhdr->len, in sfc_nic_dma_register_mempool_chunk() 140 rc = efx_nic_dma_reconfigure(sa->nic); in sfc_nic_dma_register_mempool() 227 const efx_nic_cfg_t *encp = efx_nic_cfg_get(sa->nic); in sfc_nic_dma_attach() 252 const efx_nic_cfg_t *encp = efx_nic_cfg_get(sa->nic); in sfc_nic_dma_detach() 287 rc = efx_nic_dma_map(sa->nic, addr_type, mz->iova, mz->len, dma_addr); in sfc_nic_dma_mz_map() 299 rc = efx_nic_dma_config_add(sa->nic, mz->iova, mz->len, in sfc_nic_dma_mz_map() 319 rc = efx_nic_dma_reconfigure(sa->nic); in sfc_nic_dma_mz_map() 325 rc = efx_nic_dma_map(sa->nic, addr_type, mz->iova, mz->len, dma_addr); in sfc_nic_dma_mz_map()
|
| H A D | sfc_sriov.c | 123 rc = efx_evb_init(sa->nic); in sfc_sriov_vswitch_create() 134 rc = efx_evb_vswitch_create(sa->nic, sriov->num_vfs + 1, in sfc_sriov_vswitch_create() 146 efx_evb_fini(sa->nic); in sfc_sriov_vswitch_create() 163 rc = efx_evb_vswitch_destroy(sa->nic, sriov->vswitch); in sfc_sriov_vswitch_destroy() 169 efx_evb_fini(sa->nic); in sfc_sriov_vswitch_destroy()
|
| H A D | sfc_intr.c | 55 efx_nic_t *enp = sa->nic; in sfc_intr_line_handler() 102 efx_nic_t *enp = sa->nic; in sfc_intr_message_handler() 157 rc = efx_intr_init(sa->nic, intr->type, NULL); in sfc_intr_start() 213 efx_intr_enable(sa->nic); in sfc_intr_start() 232 efx_intr_fini(sa->nic); in sfc_intr_start() 251 efx_intr_disable(sa->nic); in sfc_intr_stop() 270 efx_intr_fini(sa->nic); in sfc_intr_stop()
|
| H A D | sfc_filter.c | 53 rc = efx_filter_supported_filters(sa->nic, buf, num, &num); in sfc_filter_cache_match_supported() 83 rc = efx_filter_init(sa->nic); in sfc_filter_attach() 91 efx_filter_fini(sa->nic); in sfc_filter_attach() 111 efx_filter_fini(sa->nic); in sfc_filter_attach()
|
| H A D | sfc_mae.c | 29 const efx_nic_cfg_t *encp = efx_nic_cfg_get(sa->nic); in sfc_mae_assign_ethdev_mport() 39 const efx_nic_cfg_t *encp = efx_nic_cfg_get(sa->nic); in sfc_mae_assign_entity_mport() 187 efx_mae_match_spec_fini(sa->nic, rule->spec); in sfc_mae_rule_add_mport_match_deliver() 205 efx_mae_match_spec_fini(sa->nic, rule->spec); in sfc_mae_rule_del() 232 rc = efx_mae_init(sa->nic); in sfc_mae_attach() 237 rc = efx_mae_get_limits(sa->nic, &limits); in sfc_mae_attach() 317 efx_mae_fini(sa->nic); in sfc_mae_attach() 342 efx_mae_fini(sa->nic); in sfc_mae_detach() 458 (void)efx_mae_outer_rule_remove(sa->nic, in sfc_mae_outer_rule_enable() 821 (void)efx_mae_encap_header_free(sa->nic, in sfc_mae_encap_header_enable() [all …]
|
| H A D | sfc_flow_rss.c | 24 const efx_nic_cfg_t *encp = efx_nic_cfg_get(sa->nic); in sfc_flow_rss_attach() 335 return efx_rx_scale_tbl_set(sa->nic, ctx->nic_handle, in sfc_flow_rss_ctx_program_tbl() 344 const efx_nic_cfg_t *encp = efx_nic_cfg_get(sa->nic); in sfc_flow_rss_ctx_program() 389 rc = efx_rx_scale_context_alloc_v2(sa->nic, ctx_type, in sfc_flow_rss_ctx_program() 410 rc = efx_rx_scale_mode_set(sa->nic, ctx->nic_handle, in sfc_flow_rss_ctx_program() 424 rc = efx_rx_scale_key_set(sa->nic, ctx->nic_handle, in sfc_flow_rss_ctx_program() 463 rc = efx_rx_scale_context_free(sa->nic, ctx->nic_handle); in sfc_flow_rss_ctx_terminate()
|
| H A D | sfc_ethdev.c | 57 rc = efx_nic_get_fw_version(sa->nic, &enfi); in sfc_fw_version_get() 858 efx_mac_stat_name(sa->nic, i), in sfc_xstats_get_names() 946 efx_mac_stat_name(sa->nic, in sfc_xstats_get_names_by_id() 1562 rc = efx_tunnel_config_udp_add(sa->nic, in sfc_dev_udp_tunnel_op() 1580 rc = efx_tunnel_reconfigure(sa->nic); in sfc_dev_udp_tunnel_op() 1719 rc = efx_rx_scale_key_set(sa->nic, in sfc_dev_rss_hash_update() 2282 nic_cfg = efx_nic_cfg_get(sa->nic); in sfc_representor_info_get() 2442 encp = efx_nic_cfg_get(sa->nic); in sfc_eth_dev_set_ops() 2832 encp = efx_nic_cfg_get(sa->nic); in sfc_eth_dev_init() 3061 encp = efx_nic_cfg_get(sa->nic); in sfc_eth_dev_create_repr_controller() [all …]
|
| H A D | sfc_rx.c | 921 efx_mac_filter_default_rxq_clear(sa->nic); in sfc_rx_qstop() 935 const efx_nic_cfg_t *encp = efx_nic_cfg_get(sa->nic); in sfc_rx_get_offload_mask() 1008 const efx_nic_cfg_t *encp = efx_nic_cfg_get(sa->nic); in sfc_rx_mb_pool_buf_size() 1095 const efx_nic_cfg_t *encp = efx_nic_cfg_get(sa->nic); in sfc_rx_qinit() 1227 efx_rxq_size(sa->nic, rxq_info->entries), in sfc_rx_qinit() 1377 const efx_nic_cfg_t *encp = efx_nic_cfg_get(sa->nic); in sfc_rx_hash_init() 1395 rc = efx_rx_scale_hash_flags_get(sa->nic, alg, flags_supp, in sfc_rx_hash_init() 1577 rc = efx_rx_init(sa->nic); in sfc_rx_start() 1602 efx_rx_fini(sa->nic); in sfc_rx_start() 1624 efx_rx_fini(sa->nic); in sfc_rx_stop() [all …]
|
| H A D | sfc_mae_counter.c | 70 const efx_nic_cfg_t *encp = efx_nic_cfg_get(sa->nic); in sfc_mae_counter_rxq_required() 94 rc = efx_mae_counters_alloc(sa->nic, 1, &unused, &mae_counter, in sfc_mae_counter_enable() 142 (void)efx_mae_counters_free(sa->nic, 1, &unused, &mae_counter, NULL); in sfc_mae_counter_enable() 171 rc = efx_mae_counters_free(sa->nic, 1, &unused, &counter->mae_id, NULL); in sfc_mae_counter_disable() 411 rc = efx_mae_counters_stream_give_credits(sa->nic, pushed_diff); in sfc_mae_counter_poll_packets() 888 efx_mae_counters_stream_stop(sa->nic, sa->counter_rxq.sw_index, NULL); in sfc_mae_counter_stop() 909 rc = efx_mae_counters_stream_start(sa->nic, sa->counter_rxq.sw_index, in sfc_mae_counter_start() 936 efx_mae_counters_stream_stop(sa->nic, sa->counter_rxq.sw_index, NULL); in sfc_mae_counter_start()
|
| /dpdk/drivers/common/sfc_efx/ |
| H A D | sfc_efx_mcdi.c | 83 enp = mcdi->nic; in sfc_efx_mcdi_poll() 133 efx_mcdi_request_start(mcdi->nic, emrp, B_FALSE); in sfc_efx_mcdi_execute() 136 if (efx_mcdi_get_proxy_handle(mcdi->nic, emrp, &proxy_handle) == 0) { in sfc_efx_mcdi_execute() 154 efx_mcdi_request_start(mcdi->nic, emrp, B_FALSE); in sfc_efx_mcdi_execute() 269 uint32_t logtype, const char *log_prefix, efx_nic_t *nic, in sfc_efx_mcdi_init() argument 286 mcdi->nic = nic; in sfc_efx_mcdi_init() 308 rc = efx_mcdi_init(mcdi->nic, emtp); in sfc_efx_mcdi_init() 337 efx_mcdi_fini(mcdi->nic); in sfc_efx_mcdi_fini()
|
| H A D | sfc_efx_mcdi.h | 55 efx_nic_t *nic; member 68 efx_nic_t *nic,
|