| /dpdk/drivers/net/sfc/ |
| H A D | sfc_ev.c | 47 SFC_ASSERT(B_FALSE); in sfc_evq_type2str() 95 SFC_ASSERT(rxq != NULL); in sfc_ev_efx_rx() 96 SFC_ASSERT(rxq->evq == evq); in sfc_ev_efx_rx() 159 SFC_ASSERT(dp_rxq != NULL); in sfc_ev_dp_rx() 185 SFC_ASSERT(dp_rxq != NULL); in sfc_ev_dp_rx_packets() 212 SFC_ASSERT(dp_rxq != NULL); in sfc_ev_dp_rx_ps() 240 SFC_ASSERT(dp_txq != NULL); in sfc_ev_tx() 266 SFC_ASSERT(dp_txq != NULL); in sfc_ev_dp_tx() 343 SFC_ASSERT(rxq != NULL); in sfc_ev_rxq_flush_done() 374 SFC_ASSERT(rxq != NULL); in sfc_ev_rxq_flush_failed() [all …]
|
| H A D | sfc_ef10_rx_ev.h | 51 SFC_ASSERT(false); in sfc_ef10_rx_ev_to_offloads() 97 SFC_ASSERT(false); in sfc_ef10_rx_ev_to_offloads() 131 SFC_ASSERT(false); in sfc_ef10_rx_ev_to_offloads() 163 SFC_ASSERT(false); in sfc_ef10_rx_ev_to_offloads() 166 SFC_ASSERT(l2_ptype != 0); in sfc_ef10_rx_ev_to_offloads()
|
| H A D | sfc.c | 449 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_try_start() 560 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_start() 613 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_stop() 623 SFC_ASSERT(B_FALSE); in sfc_stop() 647 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_restart() 701 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_configure() 759 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_close() 887 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_attach() 1088 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_detach() 1279 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_probe() [all …]
|
| H A D | sfc_ef10_rx.c | 121 SFC_ASSERT(bulks > 0); in sfc_ef10_rx_qrefill() 172 SFC_ASSERT(rxq->added != added); in sfc_ef10_rx_qrefill() 291 SFC_ASSERT(ready == 1); in sfc_ef10_rx_process_event() 349 SFC_ASSERT(seg_len > 0); in sfc_ef10_rx_process_event() 353 SFC_ASSERT(m->next == NULL); in sfc_ef10_rx_process_event() 360 SFC_ASSERT(ready == 1); in sfc_ef10_rx_process_event() 399 SFC_ASSERT(seg_len > 0); in sfc_ef10_rx_process_event() 403 SFC_ASSERT(m->next == NULL); in sfc_ef10_rx_process_event() 725 SFC_ASSERT(rxq->completed == 0); in sfc_ef10_rx_qstart() 726 SFC_ASSERT(rxq->pending == 0); in sfc_ef10_rx_qstart() [all …]
|
| H A D | sfc_rx.c | 61 SFC_ASSERT(sa->priv.dp_rx->get_pushed != NULL); in sfc_rx_get_pushed() 100 SFC_ASSERT(bulks > 0); in sfc_efx_rx_qrefill() 139 SFC_ASSERT(added != rxq->added); in sfc_efx_rx_qrefill() 273 SFC_ASSERT(rc == 0); in sfc_efx_recv_pkts() 328 SFC_ASSERT(scatter_pkt == NULL); in sfc_efx_recv_pkts() 441 SFC_ASSERT(dpq->queue_id < sas->rxq_count); in sfc_rxq_info_by_dp_rxq() 686 SFC_ASSERT(rxq_info->state & SFC_RXQ_STARTED); in sfc_rx_qflush() 910 SFC_ASSERT(rxq_info->state & SFC_RXQ_STARTED); in sfc_rx_qstop() 1018 SFC_ASSERT(rte_is_power_of_2(nic_align_end)); in sfc_rx_mb_pool_buf_size() 1124 SFC_ASSERT(rxq_max_fill_level <= nb_rx_desc); in sfc_rx_qinit() [all …]
|
| H A D | sfc_tx.c | 44 SFC_ASSERT(ethdev_qid != SFC_ETHDEV_QID_INVALID); in sfc_txq_info_by_ethdev_qid() 165 SFC_ASSERT(txq_entries >= sa->txq_min_entries); in sfc_tx_qinit() 166 SFC_ASSERT(txq_entries <= sa->txq_max_entries); in sfc_tx_qinit() 167 SFC_ASSERT(txq_entries >= nb_tx_desc); in sfc_tx_qinit() 168 SFC_ASSERT(txq_max_fill_level <= nb_tx_desc); in sfc_tx_qinit() 363 SFC_ASSERT(nb_tx_queues <= sas->ethdev_txq_count); in sfc_tx_fini_queues() 530 SFC_ASSERT(sw_index < sas->txq_count); in sfc_tx_qstart() 620 SFC_ASSERT(sw_index < sas->txq_count); in sfc_tx_qstop() 626 SFC_ASSERT(txq_info->state & SFC_TXQ_STARTED); in sfc_tx_qstop() 1005 SFC_ASSERT(rc == 0); in sfc_efx_xmit_pkts() [all …]
|
| H A D | sfc_flow_rss.c | 207 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_flow_rss_ctx_reuse() 246 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_flow_rss_ctx_add() 287 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_flow_rss_ctx_del() 292 SFC_ASSERT(ctx->refcnt != 0); in sfc_flow_rss_ctx_del() 320 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_flow_rss_ctx_program_tbl() 326 SFC_ASSERT(ctx->qid_offsets != NULL); in sfc_flow_rss_ctx_program_tbl() 358 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_flow_rss_ctx_program() 455 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_flow_rss_ctx_terminate() 457 SFC_ASSERT(ctx->nic_handle_refcnt != 0); in sfc_flow_rss_ctx_terminate()
|
| H A D | sfc_flow_tunnel.c | 21 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_flow_tunnel_is_supported() 30 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_flow_tunnel_is_active() 41 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_flow_tunnel_pick() 67 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_flow_tunnel_detect_jump_rule() 164 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_flow_tunnel_attach() 235 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_flow_tunnel_detach() 471 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_flow_tunnel_reset_hit_counters() 472 SFC_ASSERT(sa->state != SFC_ETHDEV_STARTED); in sfc_flow_tunnel_reset_hit_counters()
|
| H A D | sfc_switch.c | 146 SFC_ASSERT(rte_spinlock_is_locked(&sfc_mae_switch.lock)); in sfc_mae_find_switch_domain_by_id() 190 SFC_ASSERT(rte_spinlock_is_locked(&sfc_mae_switch.lock)); in sfc_mae_find_switch_domain_by_hw_switch_id() 385 SFC_ASSERT(rte_spinlock_is_locked(&sfc_mae_switch.lock)); in sfc_mae_find_switch_port_by_entity() 406 SFC_ASSERT(rte_spinlock_is_locked(&sfc_mae_switch.lock)); in sfc_mae_find_switch_port_id_by_entity() 465 SFC_ASSERT(domain->mae_admin_port == NULL); in sfc_mae_assign_switch_port() 472 SFC_ASSERT(B_FALSE); in sfc_mae_assign_switch_port() 520 SFC_ASSERT(rte_spinlock_is_locked(&sfc_mae_switch.lock)); in sfc_mae_find_switch_port_by_ethdev() 622 SFC_ASSERT(rte_spinlock_is_locked(&sfc_mae_switch.lock)); in sfc_mae_get_switch_domain_admin_locked()
|
| H A D | sfc_mae.c | 406 SFC_ASSERT(rule->refcnt != 0); in sfc_mae_outer_rule_del() 568 SFC_ASSERT(mac_addr->refcnt != 0); in sfc_mae_mac_addr_del() 893 SFC_ASSERT(n_counters == 1); in sfc_mae_counters_enable() 929 SFC_ASSERT(n_counters == 1); in sfc_mae_counters_disable() 2751 SFC_ASSERT(B_FALSE); in sfc_mae_rule_process_outer() 2911 SFC_ASSERT(B_FALSE); in sfc_mae_rule_encap_parse_init() 2967 SFC_ASSERT(B_FALSE); in sfc_mae_rule_encap_parse_init() 3039 SFC_ASSERT(B_FALSE); in sfc_mae_rule_parse_pattern() 3208 SFC_ASSERT(B_FALSE); in sfc_mae_actions_bundle_submit() 4138 SFC_ASSERT(B_FALSE); in sfc_mae_rule_parse_actions() [all …]
|
| H A D | sfc_ethdev.c | 230 SFC_ASSERT(rc >= 0); in sfc_dev_configure() 247 SFC_ASSERT(rc >= 0); in sfc_dev_start() 310 SFC_ASSERT(rc >= 0); in sfc_dev_set_link_up() 441 SFC_ASSERT(rc >= 0); in sfc_dev_promisc_enable() 450 SFC_ASSERT(rc >= 0); in sfc_dev_promisc_disable() 459 SFC_ASSERT(rc >= 0); in sfc_dev_allmulti_enable() 468 SFC_ASSERT(rc >= 0); in sfc_dev_allmulti_disable() 505 SFC_ASSERT(rc > 0); in sfc_rx_queue_setup() 562 SFC_ASSERT(rc > 0); in sfc_tx_queue_setup() 1064 SFC_ASSERT(rc > 0); in sfc_flow_ctrl_set() [all …]
|
| H A D | sfc_repr.c | 251 SFC_ASSERT(sfc_repr_lock_is_locked(sr)); in sfc_repr_start() 269 SFC_ASSERT(ret > 0); in sfc_repr_start() 322 SFC_ASSERT(sfc_repr_lock_is_locked(sr)); in sfc_repr_stop() 332 SFC_ASSERT(B_FALSE); in sfc_repr_stop() 340 SFC_ASSERT(ret > 0); in sfc_repr_stop() 480 SFC_ASSERT(sfc_repr_lock_is_locked(sr)); in sfc_repr_configure() 657 SFC_ASSERT(ret > 0); in sfc_repr_rx_queue_setup() 789 SFC_ASSERT(sfc_repr_lock_is_locked(sr)); in sfc_repr_close() 791 SFC_ASSERT(sr->state == SFC_ETHDEV_CONFIGURED); in sfc_repr_close() 918 SFC_ASSERT(rc >= 0); in sfc_repr_assign_mae_switch_port() [all …]
|
| H A D | sfc_debug.h | 19 #define SFC_ASSERT(exp) RTE_VERIFY(exp) macro 22 #define SFC_ASSERT(exp) RTE_ASSERT(exp) macro
|
| H A D | sfc_port.c | 49 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_port_update_mac_stats() 111 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_port_reset_mac_stats() 229 SFC_ASSERT((port->phy_adv_cap & phy_pause_caps) == 0); in sfc_port_start() 573 SFC_ASSERT(link_mode < EFX_LINK_NMODES); in sfc_port_link_mode_to_info() 627 SFC_ASSERT(B_FALSE); in sfc_port_link_mode_to_info() 653 SFC_ASSERT(ret > 0); in sfc_port_get_mac_stats() 692 SFC_ASSERT(rc > 0); in sfc_port_get_mac_stats_by_id() 699 SFC_ASSERT(port->mac_stats_nb_supported <= in sfc_port_get_mac_stats_by_id()
|
| H A D | sfc_ef10_essb_rx.c | 176 SFC_ASSERT(bulks > 0); in sfc_ef10_essb_rx_qrefill() 205 SFC_ASSERT((id & ~rxq_ptr_mask) == 0); in sfc_ef10_essb_rx_qrefill() 221 SFC_ASSERT(rxq->added != added); in sfc_ef10_essb_rx_qrefill() 264 SFC_ASSERT(ready > 0); in sfc_ef10_essb_rx_process_ev() 289 SFC_ASSERT(todo_bufs > 0); in sfc_ef10_essb_rx_process_ev() 347 SFC_ASSERT(todo_bufs > 0); in sfc_ef10_essb_rx_get_pending() 500 SFC_ASSERT(pool != NULL); in sfc_ef10_essb_rx_pool_ops_supported() 711 SFC_ASSERT(rxq->flags & SFC_EF10_ESSB_RXQ_NOT_RUNNING); in sfc_ef10_essb_rx_qrx_ev()
|
| H A D | sfc_sw_stats.c | 51 SFC_ASSERT(values_count == SFX_SW_STATS_GROUP_BASIC_MAX); in sfc_sw_stat_get_rx_good_pkts_bytes() 74 SFC_ASSERT(values_count == SFX_SW_STATS_GROUP_BASIC_MAX); in sfc_sw_stat_get_tx_good_pkts_bytes() 95 SFC_ASSERT(values_count == 1); in sfc_get_sw_stat_val_rx_dbells() 110 SFC_ASSERT(values_count == 1); in sfc_get_sw_stat_val_tx_dbells() 361 SFC_ASSERT(group_size <= SFC_SW_STATS_GROUP_SIZE_MAX); in sfc_sw_stat_get_val() 486 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_sw_xstats_get_nb_supported() 607 SFC_ASSERT(ret < 0); in sfc_sw_xstats_get_names_by_id() 627 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_sw_xstat_reset() 657 SFC_ASSERT(sfc_adapter_is_locked(sa)); in sfc_sw_xstats_reset()
|
| H A D | sfc_ef100_rx.c | 154 SFC_ASSERT(bulks > 0); in sfc_ef100_rx_qrefill() 212 SFC_ASSERT(rxq->added != added); in sfc_ef100_rx_qrefill() 555 SFC_ASSERT(pkt_len > 0); in sfc_ef100_rx_process_ready_pkts() 794 SFC_ASSERT(info->user_mark_mask != 0); in sfc_ef100_rx_qcreate() 844 SFC_ASSERT(rxq->completed == 0); in sfc_ef100_rx_qstart() 845 SFC_ASSERT(rxq->added == 0); in sfc_ef100_rx_qstart() 919 SFC_ASSERT(rxq->flags & SFC_EF100_RXQ_NOT_RUNNING); in sfc_ef100_rx_qrx_ev()
|
| H A D | sfc_ef10_tx.c | 96 SFC_ASSERT((txq->flags & SFC_EF10_TXQ_EXCEPTION) == 0); in sfc_ef10_tx_get_event() 699 SFC_ASSERT(seg_len <= SFC_EF10_TX_DMA_DESC_LEN_MAX); in sfc_ef10_xmit_pkts() 801 SFC_ASSERT(ret < 0); in sfc_ef10_simple_prepare_pkts() 870 SFC_ASSERT(rte_pktmbuf_data_len(pkt) <= in sfc_ef10_simple_xmit_pkts() 1051 SFC_ASSERT(txq->flags & SFC_EF10_TXQ_NOT_RUNNING); in sfc_ef10_tx_qtx_ev()
|
| H A D | sfc_service.c | 37 SFC_ASSERT(rte_spinlock_is_locked(&sfc_service_lcore_lock)); in sfc_find_service_lcore()
|
| H A D | sfc.h | 167 SFC_ASSERT(sap != NULL); in sfc_adapter_priv_by_eth_dev() 320 SFC_ASSERT(rte_eal_process_type() == RTE_PROC_PRIMARY); in sfc_adapter_by_eth_dev()
|
| H A D | sfc_ef10.h | 108 SFC_ASSERT(RTE_ALIGN(added, SFC_EF10_RX_WPTR_ALIGN) == added); in sfc_ef10_rx_qpush()
|
| H A D | sfc_mae_counter.c | 162 SFC_ASSERT(counter->mae_id.id < counters->n_mae_counters); in sfc_mae_counter_disable() 879 SFC_ASSERT(mae->counter_registry.polling_mode != in sfc_mae_counter_stop() 902 SFC_ASSERT(sa->counter_rxq.state & SFC_COUNTER_RXQ_ATTACHED); in sfc_mae_counter_start() 954 SFC_ASSERT(counter->mae_id.id < counters->n_mae_counters); in sfc_mae_counter_get()
|
| H A D | sfc_filter.c | 64 SFC_ASSERT(rc == ENOSPC); in sfc_filter_cache_match_supported()
|
| H A D | sfc_tso.c | 75 SFC_ASSERT(m != NULL); in sfc_tso_prepare_header()
|
| H A D | sfc_repr_proxy.c | 49 SFC_ASSERT(pf_port_id < RTE_MAX_ETHPORTS); in sfc_get_adapter_by_pf_port_id() 149 SFC_ASSERT(0); in sfc_repr_proxy_mbox_handle() 329 SFC_ASSERT(repr_queue_id < sfc_repr_nb_txq(sas)); in sfc_repr_proxy_txq_info_get() 534 SFC_ASSERT(repr_queue_id < sfc_repr_nb_rxq(sas)); in sfc_repr_proxy_rxq_info_get() 875 SFC_ASSERT(!sfc_adapter_is_locked(sa)); in sfc_repr_proxy_pre_detach()
|