Lines Matching refs:qconf
538 const struct lcore_conf *qconf) in prepare_tx_pkt() argument
549 pkt->ol_flags |= qconf->outbound.ipv4_offloads; in prepare_tx_pkt()
561 pkt->ol_flags |= qconf->outbound.ipv6_offloads; in prepare_tx_pkt()
576 const struct lcore_conf *qconf) in prepare_tx_burst() argument
583 prepare_tx_pkt(pkts[i], port, qconf); in prepare_tx_burst()
587 prepare_tx_pkt(pkts[i], port, qconf); in prepare_tx_burst()
592 send_burst(struct lcore_conf *qconf, uint16_t n, uint16_t port) in send_burst() argument
598 queueid = qconf->tx_queue_id[port]; in send_burst()
599 m_table = (struct rte_mbuf **)qconf->tx_mbufs[port].m_table; in send_burst()
601 prepare_tx_burst(m_table, n, port, qconf); in send_burst()
620 send_fragment_packet(struct lcore_conf *qconf, struct rte_mbuf *m, in send_fragment_packet() argument
627 tbl = qconf->tx_mbufs + port; in send_fragment_packet()
632 send_burst(qconf, len, port); in send_fragment_packet()
640 n, mtu_size, m->pool, qconf->frag.pool_indir); in send_fragment_packet()
643 n, mtu_size, m->pool, qconf->frag.pool_indir); in send_fragment_packet()
663 struct lcore_conf *qconf; in send_single_packet() local
667 qconf = &lcore_conf[lcore_id]; in send_single_packet()
668 len = qconf->tx_mbufs[port].len; in send_single_packet()
671 qconf->tx_mbufs[port].m_table[len] = m; in send_single_packet()
676 len = send_fragment_packet(qconf, m, port, proto); in send_single_packet()
682 send_burst(qconf, MAX_PKT_BURST, port); in send_single_packet()
686 qconf->tx_mbufs[port].len = len; in send_single_packet()
1100 process_pkts(struct lcore_conf *qconf, struct rte_mbuf **pkts, in process_pkts() argument
1109 process_pkts_inbound_nosp(&qconf->inbound, &traffic); in process_pkts()
1111 process_pkts_outbound_nosp(&qconf->outbound, &traffic); in process_pkts()
1114 process_pkts_inbound(&qconf->inbound, &traffic); in process_pkts()
1116 process_pkts_outbound(&qconf->outbound, &traffic); in process_pkts()
1119 route4_pkts(qconf->rt4_ctx, traffic.ip4.pkts, traffic.ip4.num); in process_pkts()
1120 route6_pkts(qconf->rt6_ctx, traffic.ip6.pkts, traffic.ip6.num); in process_pkts()
1124 drain_tx_buffers(struct lcore_conf *qconf) in drain_tx_buffers() argument
1130 buf = &qconf->tx_mbufs[portid]; in drain_tx_buffers()
1133 send_burst(qconf, buf->len, portid); in drain_tx_buffers()
1139 drain_crypto_buffers(struct lcore_conf *qconf) in drain_crypto_buffers() argument
1145 ctx = &qconf->inbound; in drain_crypto_buffers()
1152 ctx = &qconf->outbound; in drain_crypto_buffers()
1160 drain_inbound_crypto_queues(const struct lcore_conf *qconf, in drain_inbound_crypto_queues() argument
1185 route4_pkts(qconf->rt4_ctx, trf.ip4.pkts, trf.ip4.num); in drain_inbound_crypto_queues()
1192 route6_pkts(qconf->rt6_ctx, trf.ip6.pkts, trf.ip6.num); in drain_inbound_crypto_queues()
1197 drain_outbound_crypto_queues(const struct lcore_conf *qconf, in drain_outbound_crypto_queues() argument
1219 route4_pkts(qconf->rt4_ctx, trf.ip4.pkts, trf.ip4.num); in drain_outbound_crypto_queues()
1223 route6_pkts(qconf->rt6_ctx, trf.ip6.pkts, trf.ip6.num); in drain_outbound_crypto_queues()
1236 struct lcore_conf *qconf; in ipsec_poll_mode_worker() local
1244 qconf = &lcore_conf[lcore_id]; in ipsec_poll_mode_worker()
1245 rxql = qconf->rx_queue_list; in ipsec_poll_mode_worker()
1248 qconf->rt4_ctx = socket_ctx[socket_id].rt_ip4; in ipsec_poll_mode_worker()
1249 qconf->rt6_ctx = socket_ctx[socket_id].rt_ip6; in ipsec_poll_mode_worker()
1250 qconf->inbound.sp4_ctx = socket_ctx[socket_id].sp_ip4_in; in ipsec_poll_mode_worker()
1251 qconf->inbound.sp6_ctx = socket_ctx[socket_id].sp_ip6_in; in ipsec_poll_mode_worker()
1252 qconf->inbound.sa_ctx = socket_ctx[socket_id].sa_in; in ipsec_poll_mode_worker()
1253 qconf->inbound.cdev_map = cdev_map_in; in ipsec_poll_mode_worker()
1254 qconf->inbound.session_pool = socket_ctx[socket_id].session_pool; in ipsec_poll_mode_worker()
1255 qconf->inbound.session_priv_pool = in ipsec_poll_mode_worker()
1257 qconf->outbound.sp4_ctx = socket_ctx[socket_id].sp_ip4_out; in ipsec_poll_mode_worker()
1258 qconf->outbound.sp6_ctx = socket_ctx[socket_id].sp_ip6_out; in ipsec_poll_mode_worker()
1259 qconf->outbound.sa_ctx = socket_ctx[socket_id].sa_out; in ipsec_poll_mode_worker()
1260 qconf->outbound.cdev_map = cdev_map_out; in ipsec_poll_mode_worker()
1261 qconf->outbound.session_pool = socket_ctx[socket_id].session_pool; in ipsec_poll_mode_worker()
1262 qconf->outbound.session_priv_pool = in ipsec_poll_mode_worker()
1264 qconf->frag.pool_indir = socket_ctx[socket_id].mbuf_pool_indir; in ipsec_poll_mode_worker()
1274 if (qconf->nb_rx_queue == 0) { in ipsec_poll_mode_worker()
1282 for (i = 0; i < qconf->nb_rx_queue; i++) { in ipsec_poll_mode_worker()
1297 drain_tx_buffers(qconf); in ipsec_poll_mode_worker()
1298 drain_crypto_buffers(qconf); in ipsec_poll_mode_worker()
1302 for (i = 0; i < qconf->nb_rx_queue; ++i) { in ipsec_poll_mode_worker()
1312 process_pkts(qconf, pkts, nb_rx, portid); in ipsec_poll_mode_worker()
1317 drain_inbound_crypto_queues(qconf, in ipsec_poll_mode_worker()
1318 &qconf->inbound); in ipsec_poll_mode_worker()
1320 drain_outbound_crypto_queues(qconf, in ipsec_poll_mode_worker()
1321 &qconf->outbound); in ipsec_poll_mode_worker()
2086 struct lcore_conf *qconf; in add_cdev_mapping() local
2090 qconf = &lcore_conf[params->lcore_id]; in add_cdev_mapping()
2094 ipsec_ctx = &qconf->outbound; in add_cdev_mapping()
2098 ipsec_ctx = &qconf->inbound; in add_cdev_mapping()
2260 struct lcore_conf *qconf; in port_init() local
2386 qconf = &lcore_conf[lcore_id]; in port_init()
2387 qconf->tx_queue_id[portid] = tx_queueid; in port_init()
2390 qconf->outbound.ipv4_offloads = RTE_MBUF_F_TX_IPV4; in port_init()
2391 qconf->outbound.ipv6_offloads = RTE_MBUF_F_TX_IPV6; in port_init()
2393 qconf->outbound.ipv4_offloads |= RTE_MBUF_F_TX_IP_CKSUM; in port_init()
2398 for (queue = 0; queue < qconf->nb_rx_queue; ++queue) { in port_init()
2402 if (portid != qconf->rx_queue_list[queue].port_id) in port_init()
2405 rx_queueid = qconf->rx_queue_list[queue].queue_id; in port_init()