Home
last modified time | relevance | path

Searched refs:lif (Results 1 – 13 of 13) sorted by relevance

/f-stack/dpdk/drivers/net/ionic/
H A Dionic_lif.c22 struct ionic_lif *lif = q->lif; in ionic_qcq_enable() local
47 struct ionic_lif *lif = q->lif; in ionic_qcq_disable() local
624 new->lif = lif; in ionic_qcq_alloc()
780 lif->kern_pid, &lif->adminqcq); in ionic_admin_qcq_alloc()
801 lif->kern_pid, &lif->notifyqcq); in ionic_notify_qcq_alloc()
827 snprintf(lif->name, sizeof(lif->name), "lif%u", lif->index); in ionic_lif_alloc()
890 lif->info = lif->info_z->addr; in ionic_lif_alloc()
891 lif->info_pa = lif->info_z->iova; in ionic_lif_alloc()
1312 struct ionic_lif *lif = qcq->lif; in ionic_lif_txq_init() local
1360 struct ionic_lif *lif = qcq->lif; in ionic_lif_rxq_init() local
[all …]
H A Dionic_ethdev.c566 if (!lif->rss_ind_tbl) { in ionic_dev_rss_reta_update()
580 num = lif->adapter->ident.lif.eth.rss_ind_tbl_sz / RTE_RETA_GROUP_SIZE; in ionic_dev_rss_reta_update()
591 return ionic_lif_rss_config(lif, lif->rss_types, NULL, NULL); in ionic_dev_rss_reta_update()
687 if (lif->rss_ind_tbl) in ionic_dev_rss_hash_update()
691 if (!lif->rss_ind_tbl) in ionic_dev_rss_hash_update()
1009 lif->eth_dev = eth_dev; in eth_ionic_dev_init()
1010 lif->adapter = adapter; in eth_ionic_dev_init()
1050 ionic_lif_free(lif); in eth_ionic_dev_init()
1068 ionic_lif_deinit(lif); in eth_ionic_dev_uninit()
1069 ionic_lif_free(lif); in eth_ionic_dev_uninit()
[all …]
H A Dionic_rx_filter.c32 return ionic_adminq_post(lif, &ctx); in ionic_rx_filter_del()
36 ionic_rx_filters_init(struct ionic_lif *lif) in ionic_rx_filters_init() argument
40 rte_spinlock_init(&lif->rx_filters.lock); in ionic_rx_filters_init()
43 LIST_INIT(&lif->rx_filters.by_hash[i]); in ionic_rx_filters_init()
44 LIST_INIT(&lif->rx_filters.by_id[i]); in ionic_rx_filters_init()
51 ionic_rx_filters_deinit(struct ionic_lif *lif) in ionic_rx_filters_deinit() argument
57 while (!LIST_EMPTY(&lif->rx_filters.by_id[i])) { in ionic_rx_filters_deinit()
58 f = LIST_FIRST(&lif->rx_filters.by_id[i]); in ionic_rx_filters_deinit()
96 rte_spinlock_lock(&lif->rx_filters.lock); in ionic_rx_filter_save()
102 LIST_INSERT_HEAD(&lif->rx_filters.by_id[key], f, by_id); in ionic_rx_filter_save()
[all …]
H A Dionic_lif.h59 struct ionic_lif *lif; /**< LIF */ member
124 int ionic_lif_alloc(struct ionic_lif *lif);
125 void ionic_lif_free(struct ionic_lif *lif);
127 int ionic_lif_init(struct ionic_lif *lif);
128 void ionic_lif_deinit(struct ionic_lif *lif);
130 int ionic_lif_start(struct ionic_lif *lif);
131 int ionic_lif_stop(struct ionic_lif *lif);
133 int ionic_lif_configure(struct ionic_lif *lif);
134 void ionic_lif_reset(struct ionic_lif *lif);
178 int ionic_lif_set_features(struct ionic_lif *lif);
[all …]
H A Dionic_rx_filter.h37 int ionic_rx_filter_del(struct ionic_lif *lif, struct ionic_rx_filter *f);
38 int ionic_rx_filters_init(struct ionic_lif *lif);
39 void ionic_rx_filters_deinit(struct ionic_lif *lif);
40 int ionic_rx_filter_save(struct ionic_lif *lif, uint32_t flow_id,
42 struct ionic_rx_filter *ionic_rx_filter_by_vlan(struct ionic_lif *lif,
44 struct ionic_rx_filter *ionic_rx_filter_by_addr(struct ionic_lif *lif,
H A Dionic_dev.c313 ionic_db_map(struct ionic_lif *lif, struct ionic_queue *q) in ionic_db_map() argument
315 return lif->kern_dbpage + q->hw_type; in ionic_db_map()
319 ionic_db_page_num(struct ionic_lif *lif, int pid) in ionic_db_page_num() argument
321 return (lif->index * 0) + pid; in ionic_db_page_num()
357 ionic_cq_init(struct ionic_lif *lif, struct ionic_cq *cq, in ionic_cq_init() argument
374 cq->lif = lif; in ionic_cq_init()
420 ionic_q_init(struct ionic_lif *lif, struct ionic_dev *idev, in ionic_q_init() argument
434 q->lif = lif; in ionic_q_init()
557 struct ionic_queue *adminq = &lif->adminqcq->q; in ionic_adminq_post()
562 rte_spinlock_lock(&lif->adminq_lock); in ionic_adminq_post()
[all …]
H A Dionic_dev.h148 struct ionic_lif *lif; member
182 struct ionic_lif *lif; member
242 struct ionic_doorbell __iomem *ionic_db_map(struct ionic_lif *lif,
244 int ionic_db_page_num(struct ionic_lif *lif, int pid);
246 int ionic_cq_init(struct ionic_lif *lif, struct ionic_cq *cq,
256 int ionic_q_init(struct ionic_lif *lif, struct ionic_dev *idev,
269 int ionic_adminq_post(struct ionic_lif *lif, struct ionic_admin_ctx *ctx);
H A Dionic_main.c144 ionic_wait_ctx_for_completion(struct ionic_lif *lif, struct ionic_qcq *qcq, in ionic_wait_ctx_for_completion() argument
157 rte_spinlock_lock(&lif->adminq_service_lock); in ionic_wait_ctx_for_completion()
161 rte_spinlock_unlock(&lif->adminq_service_lock); in ionic_wait_ctx_for_completion()
171 ionic_adminq_post_wait(struct ionic_lif *lif, struct ionic_admin_ctx *ctx) in ionic_adminq_post_wait() argument
173 struct ionic_qcq *qcq = lif->adminqcq; in ionic_adminq_post_wait()
180 err = ionic_adminq_post(lif, ctx); in ionic_adminq_post_wait()
188 done = ionic_wait_ctx_for_completion(lif, qcq, ctx, in ionic_adminq_post_wait()
H A Dionic_rxtx.c162 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_tx_queue_setup() local
172 if (tx_queue_id >= lif->ntxqcqs) { in ionic_dev_tx_queue_setup()
175 tx_queue_id, lif->ntxqcqs); in ionic_dev_tx_queue_setup()
192 err = ionic_tx_qcq_alloc(lif, tx_queue_id, nb_desc, &txq); in ionic_dev_tx_queue_setup()
648 struct ionic_lif *lif = IONIC_ETH_DEV_TO_LIF(eth_dev); in ionic_dev_rx_queue_setup() local
658 if (rx_queue_id >= lif->nrxqcqs) { in ionic_dev_rx_queue_setup()
661 rx_queue_id, lif->nrxqcqs); in ionic_dev_rx_queue_setup()
687 err = ionic_rx_qcq_alloc(lif, rx_queue_id, nb_desc, &rxq); in ionic_dev_rx_queue_setup()
726 rxq->lif->eth_dev->data->dev_conf.rxmode.max_rx_pkt_len; in ionic_rx_clean()
771 rxm->port = rxq->lif->port_id; in ionic_rx_clean()
[all …]
H A Dionic.h70 int ionic_adminq_post_wait(struct ionic_lif *lif, struct ionic_admin_ctx *ctx);
H A Dionic_if.h2484 union ionic_lif_identity lif; member
/f-stack/dpdk/drivers/net/enic/base/
H A Dvnic_resource.h54 uint16_t lif; /* loopback lif for mgmt frames */ member
H A Dcq_enet_desc.h53 uint16_t lif; member