Home
last modified time | relevance | path

Searched refs:port_conf (Results 1 – 25 of 79) sorted by relevance

1234

/dpdk/lib/eventdev/
H A Deventdev_trace.h57 const struct rte_event_port_conf *port_conf, int rc),
61 rte_trace_point_emit_u16(port_conf->dequeue_depth);
62 rte_trace_point_emit_u16(port_conf->enqueue_depth);
63 rte_trace_point_emit_u32(port_conf->event_port_cfg);
163 struct rte_event_port_conf *port_conf, int rc),
167 rte_trace_point_emit_u16(port_conf->dequeue_depth);
168 rte_trace_point_emit_u16(port_conf->enqueue_depth);
169 rte_trace_point_emit_u32(port_conf->event_port_cfg);
259 rte_trace_point_emit_u16(port_conf->dequeue_depth);
260 rte_trace_point_emit_u16(port_conf->enqueue_depth);
[all …]
H A Drte_eventdev.c623 struct rte_event_port_conf *port_conf) in rte_event_port_default_conf_get() argument
630 if (port_conf == NULL) in rte_event_port_default_conf_get()
661 if ((port_conf && !port_conf->new_event_threshold) || in rte_event_port_setup()
662 (port_conf && port_conf->new_event_threshold > in rte_event_port_setup()
672 if ((port_conf && !port_conf->dequeue_depth) || in rte_event_port_setup()
673 (port_conf && port_conf->dequeue_depth > in rte_event_port_setup()
683 if ((port_conf && !port_conf->enqueue_depth) || in rte_event_port_setup()
684 (port_conf && port_conf->enqueue_depth > in rte_event_port_setup()
693 if (port_conf && in rte_event_port_setup()
711 if (port_conf == NULL) { in rte_event_port_setup()
[all …]
/dpdk/drivers/event/dlb2/
H A Ddlb2_selftest.c286 struct rte_event_port_conf port_conf; in test_single_link() local
331 port_conf.event_port_cfg = 0; in test_single_link()
495 struct rte_event_port_conf port_conf; in test_reconfiguration_link() local
727 port_conf.event_port_cfg = 0; in test_reconfiguration_link()
792 port_conf.event_port_cfg = 0; in test_reconfiguration_link()
796 &port_conf) < 0) { in test_reconfiguration_link()
822 struct rte_event_port_conf port_conf; in test_load_balanced_traffic() local
946 struct rte_event_port_conf port_conf; in test_directed_traffic() local
1079 struct rte_event_port_conf port_conf; in test_deferred_sched() local
1126 port_conf.dequeue_depth = 1; in test_deferred_sched()
[all …]
/dpdk/examples/multi_process/symmetric_mp/
H A Dmain.c176 struct rte_eth_conf port_conf = { in smp_port_init() local
221 port_conf.txmode.offloads |= in smp_port_init()
224 rss_hf_tmp = port_conf.rx_adv_conf.rss_conf.rss_hf; in smp_port_init()
225 port_conf.rx_adv_conf.rss_conf.rss_hf &= info.flow_type_rss_offloads; in smp_port_init()
226 if (port_conf.rx_adv_conf.rss_conf.rss_hf != rss_hf_tmp) { in smp_port_init()
231 port_conf.rx_adv_conf.rss_conf.rss_hf); in smp_port_init()
234 retval = rte_eth_dev_configure(port, rx_rings, tx_rings, &port_conf); in smp_port_init()
238 port_conf.rxmode.offloads &= ~(RTE_ETH_RX_OFFLOAD_CHECKSUM); in smp_port_init()
245 port_conf.rxmode.mq_mode &= ~(RTE_ETH_MQ_RX_RSS); in smp_port_init()
257 rxq_conf.offloads = port_conf.rxmode.offloads; in smp_port_init()
[all …]
/dpdk/examples/l2fwd-event/
H A Dl2fwd_common.c12 struct rte_eth_conf port_conf = { in l2fwd_event_init_ports() local
25 port_conf.rxmode.mq_mode = RTE_ETH_MQ_RX_RSS; in l2fwd_event_init_ports()
26 port_conf.rx_adv_conf.rss_conf.rss_key = NULL; in l2fwd_event_init_ports()
27 port_conf.rx_adv_conf.rss_conf.rss_hf = RTE_ETH_RSS_IP; in l2fwd_event_init_ports()
32 struct rte_eth_conf local_port_conf = port_conf; in l2fwd_event_init_ports()
55 port_conf.rx_adv_conf.rss_conf.rss_hf) { in l2fwd_event_init_ports()
59 port_conf.rx_adv_conf.rss_conf.rss_hf, in l2fwd_event_init_ports()
/dpdk/examples/skeleton/
H A Dbasicfwd.c31 struct rte_eth_conf port_conf; in port_init() local
43 memset(&port_conf, 0, sizeof(struct rte_eth_conf)); in port_init()
53 port_conf.txmode.offloads |= in port_init()
57 retval = rte_eth_dev_configure(port, rx_rings, tx_rings, &port_conf); in port_init()
74 txconf.offloads = port_conf.txmode.offloads; in port_init()
/dpdk/examples/ip_pipeline/
H A Dlink.c103 struct rte_eth_conf port_conf; in link_create() local
158 memcpy(&port_conf, &port_conf_default, sizeof(port_conf)); in link_create()
160 port_conf.rxmode.mq_mode = RTE_ETH_MQ_RX_RSS; in link_create()
161 port_conf.rx_adv_conf.rss_conf.rss_hf = in link_create()
174 &port_conf); in link_create()
/dpdk/examples/flow_filtering/
H A Dmain.c135 struct rte_eth_conf port_conf = { in init_port() local
159 port_conf.txmode.offloads &= dev_info.tx_offload_capa; in init_port()
162 nr_queues, nr_queues, &port_conf); in init_port()
170 rxq_conf.offloads = port_conf.rxmode.offloads; in init_port()
187 txq_conf.offloads = port_conf.txmode.offloads; in init_port()
/dpdk/examples/vmdq/
H A Dmain.c178 struct rte_eth_conf port_conf; in port_init() local
209 retval = get_eth_conf(&port_conf, max_nb_pools); in port_init()
232 rss_hf_tmp = port_conf.rx_adv_conf.rss_conf.rss_hf; in port_init()
233 port_conf.rx_adv_conf.rss_conf.rss_hf &= in port_init()
235 if (port_conf.rx_adv_conf.rss_conf.rss_hf != rss_hf_tmp) { in port_init()
240 port_conf.rx_adv_conf.rss_conf.rss_hf); in port_init()
262 port_conf.txmode.offloads |= in port_init()
264 retval = rte_eth_dev_configure(port, rxRings, txRings, &port_conf); in port_init()
282 txconf->offloads = port_conf.txmode.offloads; in port_init()
/dpdk/examples/rxtx_callbacks/
H A Dmain.c121 struct rte_eth_conf port_conf; in port_init() local
134 memset(&port_conf, 0, sizeof(struct rte_eth_conf)); in port_init()
145 port_conf.txmode.offloads |= in port_init()
154 port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_TIMESTAMP; in port_init()
162 retval = rte_eth_dev_configure(port, rx_rings, tx_rings, &port_conf); in port_init()
180 txconf.offloads = port_conf.txmode.offloads; in port_init()
/dpdk/examples/l3fwd/
H A Dl3fwd_event.c42 l3fwd_eth_dev_port_setup(struct rte_eth_conf *port_conf) in l3fwd_eth_dev_port_setup() argument
58 local_port_conf = *port_conf; in l3fwd_eth_dev_port_setup()
83 port_conf->rx_adv_conf.rss_conf.rss_hf) { in l3fwd_eth_dev_port_setup()
88 port_conf->rx_adv_conf.rss_conf.rss_hf, in l3fwd_eth_dev_port_setup()
213 l3fwd_event_resource_setup(struct rte_eth_conf *port_conf) in l3fwd_event_resource_setup() argument
259 l3fwd_eth_dev_port_setup(port_conf); in l3fwd_event_resource_setup()
/dpdk/drivers/event/skeleton/
H A Dskeleton_eventdev.c202 struct rte_event_port_conf *port_conf) in skeleton_eventdev_port_def_conf() argument
211 port_conf->new_event_threshold = 32 * 1024; in skeleton_eventdev_port_def_conf()
212 port_conf->dequeue_depth = 16; in skeleton_eventdev_port_def_conf()
213 port_conf->enqueue_depth = 16; in skeleton_eventdev_port_def_conf()
214 port_conf->event_port_cfg = 0; in skeleton_eventdev_port_def_conf()
228 const struct rte_event_port_conf *port_conf) in skeleton_eventdev_port_setup() argument
236 RTE_SET_USED(port_conf); in skeleton_eventdev_port_setup()
/dpdk/examples/qos_meter/
H A Dmain.c52 static struct rte_eth_conf port_conf = { variable
327 conf = port_conf; in main()
340 port_conf.rx_adv_conf.rss_conf.rss_hf) { in main()
344 port_conf.rx_adv_conf.rss_conf.rss_hf, in main()
373 conf = port_conf; in main()
386 port_conf.rx_adv_conf.rss_conf.rss_hf) { in main()
390 port_conf.rx_adv_conf.rss_conf.rss_hf, in main()
/dpdk/examples/vmdq_dcb/
H A Dmain.c193 struct rte_eth_conf port_conf = {0}; in port_init() local
261 retval = get_eth_conf(&port_conf); in port_init()
274 port_conf.txmode.offloads |= in port_init()
277 rss_hf_tmp = port_conf.rx_adv_conf.rss_conf.rss_hf; in port_init()
278 port_conf.rx_adv_conf.rss_conf.rss_hf &= in port_init()
280 if (port_conf.rx_adv_conf.rss_conf.rss_hf != rss_hf_tmp) { in port_init()
285 port_conf.rx_adv_conf.rss_conf.rss_hf); in port_init()
294 retval = rte_eth_dev_configure(port, num_queues, num_queues, &port_conf); in port_init()
321 txq_conf.offloads = port_conf.txmode.offloads; in port_init()
/dpdk/examples/eventdev_pipeline/
H A Dpipeline_worker_generic.c302 struct rte_eth_conf port_conf = port_conf_default; in port_init() local
319 port_conf.txmode.offloads |= in port_init()
323 port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_RSS_HASH; in port_init()
326 rx_conf.offloads = port_conf.rxmode.offloads; in port_init()
328 port_conf.rx_adv_conf.rss_conf.rss_hf &= in port_init()
330 if (port_conf.rx_adv_conf.rss_conf.rss_hf != in port_init()
336 port_conf.rx_adv_conf.rss_conf.rss_hf); in port_init()
340 retval = rte_eth_dev_configure(port, rx_rings, tx_rings, &port_conf); in port_init()
/dpdk/examples/l2fwd-cat/
H A Dl2fwd-cat.c31 struct rte_eth_conf port_conf; in port_init() local
41 memset(&port_conf, 0, sizeof(struct rte_eth_conf)); in port_init()
44 retval = rte_eth_dev_configure(port, rx_rings, tx_rings, &port_conf); in port_init()
/dpdk/examples/vm_power_manager/
H A Dmain.c57 struct rte_eth_conf port_conf; in port_init() local
67 memset(&port_conf, 0, sizeof(struct rte_eth_conf)); in port_init()
77 port_conf.txmode.offloads |= in port_init()
81 retval = rte_eth_dev_configure(port, rx_rings, tx_rings, &port_conf); in port_init()
94 txq_conf.offloads = port_conf.txmode.offloads; in port_init()
/dpdk/examples/server_node_efd/server/
H A Dinit.c96 struct rte_eth_conf port_conf = { in init_port() local
118 port_conf.txmode.offloads |= in init_port()
125 retval = rte_eth_dev_configure(port_num, rx_rings, tx_rings, &port_conf); in init_port()
143 txconf.offloads = port_conf.txmode.offloads; in init_port()
/dpdk/app/test-eventdev/
H A Dtest_pipeline_common.c177 struct rte_eth_conf port_conf = { in pipeline_ethdev_setup() local
200 port_conf.rxmode.mtu = opt->max_pkt_sz - RTE_ETHER_HDR_LEN - in pipeline_ethdev_setup()
206 struct rte_eth_conf local_port_conf = port_conf; in pipeline_ethdev_setup()
241 rx_conf.offloads = port_conf.rxmode.offloads; in pipeline_ethdev_setup()
246 port_conf.rx_adv_conf.rss_conf.rss_hf) { in pipeline_ethdev_setup()
250 port_conf.rx_adv_conf.rss_conf.rss_hf, in pipeline_ethdev_setup()
446 struct rte_event_port_conf port_conf) in pipeline_event_tx_adapter_setup() argument
471 &port_conf); in pipeline_event_tx_adapter_setup()
/dpdk/examples/ptpclient/
H A Dptpclient.c175 struct rte_eth_conf port_conf; in port_init() local
186 memset(&port_conf, 0, sizeof(struct rte_eth_conf)); in port_init()
197 port_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_TIMESTAMP; in port_init()
200 port_conf.txmode.offloads |= in port_init()
203 port_conf.txmode.offloads |= RTE_ETH_TX_OFFLOAD_MULTI_SEGS; in port_init()
206 retval = rte_eth_dev_configure(port, rx_rings, tx_rings, &port_conf); in port_init()
219 rxconf->offloads = port_conf.rxmode.offloads; in port_init()
233 txconf->offloads = port_conf.txmode.offloads; in port_init()
/dpdk/examples/pipeline/
H A Dobj.c185 struct rte_eth_conf port_conf; in link_create() local
240 memcpy(&port_conf, &port_conf_default, sizeof(port_conf)); in link_create()
242 port_conf.rxmode.mq_mode = RTE_ETH_MQ_RX_RSS; in link_create()
243 port_conf.rx_adv_conf.rss_conf.rss_hf = in link_create()
256 &port_conf); in link_create()
/dpdk/examples/distributor/
H A Dmain.c110 struct rte_eth_conf port_conf = port_conf_default; in port_init() local
130 port_conf.txmode.offloads |= in port_init()
133 port_conf.rx_adv_conf.rss_conf.rss_hf &= in port_init()
135 if (port_conf.rx_adv_conf.rss_conf.rss_hf != in port_init()
141 port_conf.rx_adv_conf.rss_conf.rss_hf); in port_init()
144 retval = rte_eth_dev_configure(port, rxRings, txRings, &port_conf); in port_init()
161 txconf.offloads = port_conf.txmode.offloads; in port_init()
/dpdk/examples/ipsec-secgw/
H A Devent_helper.c790 struct rte_event_port_conf port_conf = {0}; in eh_rx_adapter_configure() local
835 port_conf.new_event_threshold = 1200; in eh_rx_adapter_configure()
836 port_conf.dequeue_depth = in eh_rx_adapter_configure()
838 port_conf.enqueue_depth = in eh_rx_adapter_configure()
843 adapter->eventdev_id, &port_conf); in eh_rx_adapter_configure()
1187 struct rte_event_port_conf port_conf = {0}; in eh_tx_adapter_configure() local
1211 port_conf.new_event_threshold = in eh_tx_adapter_configure()
1213 port_conf.dequeue_depth = in eh_tx_adapter_configure()
1215 port_conf.enqueue_depth = in eh_tx_adapter_configure()
1220 adapter->eventdev_id, &port_conf); in eh_tx_adapter_configure()
/dpdk/app/test-pipeline/
H A Dinit.c69 static struct rte_eth_conf port_conf = { variable
206 &port_conf); in app_init_ports()
/dpdk/drivers/event/dpaa2/
H A Ddpaa2_eventdev.c529 struct rte_event_port_conf *port_conf) in dpaa2_eventdev_port_def_conf() argument
536 port_conf->new_event_threshold = in dpaa2_eventdev_port_def_conf()
538 port_conf->dequeue_depth = in dpaa2_eventdev_port_def_conf()
540 port_conf->enqueue_depth = in dpaa2_eventdev_port_def_conf()
542 port_conf->event_port_cfg = 0; in dpaa2_eventdev_port_def_conf()
547 const struct rte_event_port_conf *port_conf) in dpaa2_eventdev_port_setup() argument
554 RTE_SET_USED(port_conf); in dpaa2_eventdev_port_setup()

1234