2 // Copyright (c) 2017 Intel Corporation
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
19 #include <rte_common.h>
20 #include <rte_malloc.h>
21 #include <rte_byteorder.h>
22 #include <rte_table_stub.h>
23 #include <rte_table_hash.h>
24 #include <rte_pipeline.h>
26 #include "pipeline_passthrough_be.h"
27 #include "pipeline_actions_common.h"
29 #include "hash_func.h"
31 struct pipeline_passthrough {
33 struct pipeline_passthrough_params params;
34 rte_table_hash_op_hash f_hash;
35 } __rte_cache_aligned;
37 static pipeline_msg_req_handler handlers[] = {
38 [PIPELINE_MSG_REQ_PING] =
39 pipeline_msg_req_ping_handler,
40 [PIPELINE_MSG_REQ_STATS_PORT_IN] =
41 pipeline_msg_req_stats_port_in_handler,
42 [PIPELINE_MSG_REQ_STATS_PORT_OUT] =
43 pipeline_msg_req_stats_port_out_handler,
44 [PIPELINE_MSG_REQ_STATS_TABLE] =
45 pipeline_msg_req_stats_table_handler,
46 [PIPELINE_MSG_REQ_PORT_IN_ENABLE] =
47 pipeline_msg_req_port_in_enable_handler,
48 [PIPELINE_MSG_REQ_PORT_IN_DISABLE] =
49 pipeline_msg_req_port_in_disable_handler,
50 [PIPELINE_MSG_REQ_CUSTOM] =
51 pipeline_msg_req_invalid_handler,
54 static inline __attribute__((always_inline)) void
59 uint32_t hash_enabled,
61 uint32_t port_out_pow2)
63 struct pipeline_passthrough *p = arg;
65 uint64_t *dma_dst = RTE_MBUF_METADATA_UINT64_PTR(pkt,
66 p->params.dma_dst_offset);
67 uint64_t *dma_src = RTE_MBUF_METADATA_UINT64_PTR(pkt,
68 p->params.dma_src_offset);
69 uint64_t *dma_mask = (uint64_t *) p->params.dma_src_mask;
70 uint32_t *dma_hash = RTE_MBUF_METADATA_UINT32_PTR(pkt,
71 p->params.dma_hash_offset);
74 /* Read (dma_src), compute (dma_dst), write (dma_dst) */
75 for (i = 0; i < (dma_size / 8); i++)
76 dma_dst[i] = dma_src[i] & dma_mask[i];
78 /* Read (dma_dst), compute (hash), write (hash) */
80 uint32_t hash = p->f_hash(dma_dst, dma_size, 0);
88 = hash & (p->p.n_ports_out - 1);
91 = hash % p->p.n_ports_out;
93 rte_pipeline_port_out_packet_insert(p->p.p,
99 static inline __attribute__((always_inline)) void
101 struct rte_mbuf **pkts,
104 uint32_t hash_enabled,
106 uint32_t port_out_pow2)
108 struct pipeline_passthrough *p = arg;
110 uint64_t *dma_dst0 = RTE_MBUF_METADATA_UINT64_PTR(pkts[0],
111 p->params.dma_dst_offset);
112 uint64_t *dma_dst1 = RTE_MBUF_METADATA_UINT64_PTR(pkts[1],
113 p->params.dma_dst_offset);
114 uint64_t *dma_dst2 = RTE_MBUF_METADATA_UINT64_PTR(pkts[2],
115 p->params.dma_dst_offset);
116 uint64_t *dma_dst3 = RTE_MBUF_METADATA_UINT64_PTR(pkts[3],
117 p->params.dma_dst_offset);
119 uint64_t *dma_src0 = RTE_MBUF_METADATA_UINT64_PTR(pkts[0],
120 p->params.dma_src_offset);
121 uint64_t *dma_src1 = RTE_MBUF_METADATA_UINT64_PTR(pkts[1],
122 p->params.dma_src_offset);
123 uint64_t *dma_src2 = RTE_MBUF_METADATA_UINT64_PTR(pkts[2],
124 p->params.dma_src_offset);
125 uint64_t *dma_src3 = RTE_MBUF_METADATA_UINT64_PTR(pkts[3],
126 p->params.dma_src_offset);
128 uint64_t *dma_mask = (uint64_t *) p->params.dma_src_mask;
130 uint32_t *dma_hash0 = RTE_MBUF_METADATA_UINT32_PTR(pkts[0],
131 p->params.dma_hash_offset);
132 uint32_t *dma_hash1 = RTE_MBUF_METADATA_UINT32_PTR(pkts[1],
133 p->params.dma_hash_offset);
134 uint32_t *dma_hash2 = RTE_MBUF_METADATA_UINT32_PTR(pkts[2],
135 p->params.dma_hash_offset);
136 uint32_t *dma_hash3 = RTE_MBUF_METADATA_UINT32_PTR(pkts[3],
137 p->params.dma_hash_offset);
141 /* Read (dma_src), compute (dma_dst), write (dma_dst) */
142 for (i = 0; i < (dma_size / 8); i++) {
143 dma_dst0[i] = dma_src0[i] & dma_mask[i];
144 dma_dst1[i] = dma_src1[i] & dma_mask[i];
145 dma_dst2[i] = dma_src2[i] & dma_mask[i];
146 dma_dst3[i] = dma_src3[i] & dma_mask[i];
149 /* Read (dma_dst), compute (hash), write (hash) */
151 uint32_t hash0 = p->f_hash(dma_dst0, dma_size, 0);
152 uint32_t hash1 = p->f_hash(dma_dst1, dma_size, 0);
153 uint32_t hash2 = p->f_hash(dma_dst2, dma_size, 0);
154 uint32_t hash3 = p->f_hash(dma_dst3, dma_size, 0);
162 uint32_t port_out0, port_out1, port_out2, port_out3;
166 = hash0 & (p->p.n_ports_out - 1);
168 = hash1 & (p->p.n_ports_out - 1);
170 = hash2 & (p->p.n_ports_out - 1);
172 = hash3 & (p->p.n_ports_out - 1);
175 = hash0 % p->p.n_ports_out;
177 = hash1 % p->p.n_ports_out;
179 = hash2 % p->p.n_ports_out;
181 = hash3 % p->p.n_ports_out;
183 rte_pipeline_port_out_packet_insert(p->p.p,
185 rte_pipeline_port_out_packet_insert(p->p.p,
187 rte_pipeline_port_out_packet_insert(p->p.p,
189 rte_pipeline_port_out_packet_insert(p->p.p,
195 #define PKT_WORK(dma_size, hash_enabled, lb_hash, port_pow2) \
197 pkt_work_size##dma_size##_hash##hash_enabled \
198 ##_lb##lb_hash##_pw##port_pow2( \
199 struct rte_mbuf *pkt, \
202 pkt_work(pkt, arg, dma_size, hash_enabled, lb_hash, port_pow2); \
205 #define PKT4_WORK(dma_size, hash_enabled, lb_hash, port_pow2) \
207 pkt4_work_size##dma_size##_hash##hash_enabled \
208 ##_lb##lb_hash##_pw##port_pow2( \
209 struct rte_mbuf **pkts, \
212 pkt4_work(pkts, arg, dma_size, hash_enabled, lb_hash, port_pow2); \
215 #define port_in_ah(dma_size, hash_enabled, lb_hash, port_pow2) \
216 PKT_WORK(dma_size, hash_enabled, lb_hash, port_pow2) \
217 PKT4_WORK(dma_size, hash_enabled, lb_hash, port_pow2) \
218 PIPELINE_PORT_IN_AH(port_in_ah_size##dma_size##_hash \
219 ##hash_enabled##_lb##lb_hash##_pw##port_pow2, \
220 pkt_work_size##dma_size##_hash##hash_enabled \
221 ##_lb##lb_hash##_pw##port_pow2, \
222 pkt4_work_size##dma_size##_hash##hash_enabled \
223 ##_lb##lb_hash##_pw##port_pow2)
226 #define port_in_ah_lb(dma_size, hash_enabled, lb_hash, port_pow2) \
227 PKT_WORK(dma_size, hash_enabled, lb_hash, port_pow2) \
228 PKT4_WORK(dma_size, hash_enabled, lb_hash, port_pow2) \
229 PIPELINE_PORT_IN_AH_HIJACK_ALL( \
230 port_in_ah_size##dma_size##_hash##hash_enabled \
231 ##_lb##lb_hash##_pw##port_pow2, \
232 pkt_work_size##dma_size##_hash##hash_enabled \
233 ##_lb##lb_hash##_pw##port_pow2, \
234 pkt4_work_size##dma_size##_hash##hash_enabled \
235 ##_lb##lb_hash##_pw##port_pow2)
237 /* Port in AH (dma_size, hash_enabled, lb_hash, port_pow2) */
239 port_in_ah(8, 0, 0, 0)
240 port_in_ah(8, 1, 0, 0)
241 port_in_ah_lb(8, 1, 1, 0)
242 port_in_ah_lb(8, 1, 1, 1)
244 port_in_ah(16, 0, 0, 0)
245 port_in_ah(16, 1, 0, 0)
246 port_in_ah_lb(16, 1, 1, 0)
247 port_in_ah_lb(16, 1, 1, 1)
249 port_in_ah(24, 0, 0, 0)
250 port_in_ah(24, 1, 0, 0)
251 port_in_ah_lb(24, 1, 1, 0)
252 port_in_ah_lb(24, 1, 1, 1)
254 port_in_ah(32, 0, 0, 0)
255 port_in_ah(32, 1, 0, 0)
256 port_in_ah_lb(32, 1, 1, 0)
257 port_in_ah_lb(32, 1, 1, 1)
259 port_in_ah(40, 0, 0, 0)
260 port_in_ah(40, 1, 0, 0)
261 port_in_ah_lb(40, 1, 1, 0)
262 port_in_ah_lb(40, 1, 1, 1)
264 port_in_ah(48, 0, 0, 0)
265 port_in_ah(48, 1, 0, 0)
266 port_in_ah_lb(48, 1, 1, 0)
267 port_in_ah_lb(48, 1, 1, 1)
269 port_in_ah(56, 0, 0, 0)
270 port_in_ah(56, 1, 0, 0)
271 port_in_ah_lb(56, 1, 1, 0)
272 port_in_ah_lb(56, 1, 1, 1)
274 port_in_ah(64, 0, 0, 0)
275 port_in_ah(64, 1, 0, 0)
276 port_in_ah_lb(64, 1, 1, 0)
277 port_in_ah_lb(64, 1, 1, 1)
279 static rte_pipeline_port_in_action_handler
280 get_port_in_ah(struct pipeline_passthrough *p)
282 if (p->params.dma_enabled == 0)
285 if (p->params.dma_hash_enabled) {
286 if (p->params.lb_hash_enabled) {
287 if (rte_is_power_of_2(p->p.n_ports_out))
288 switch (p->params.dma_size) {
290 case 8: return port_in_ah_size8_hash1_lb1_pw1;
291 case 16: return port_in_ah_size16_hash1_lb1_pw1;
292 case 24: return port_in_ah_size24_hash1_lb1_pw1;
293 case 32: return port_in_ah_size32_hash1_lb1_pw1;
294 case 40: return port_in_ah_size40_hash1_lb1_pw1;
295 case 48: return port_in_ah_size48_hash1_lb1_pw1;
296 case 56: return port_in_ah_size56_hash1_lb1_pw1;
297 case 64: return port_in_ah_size64_hash1_lb1_pw1;
298 default: return NULL;
301 switch (p->params.dma_size) {
303 case 8: return port_in_ah_size8_hash1_lb1_pw0;
304 case 16: return port_in_ah_size16_hash1_lb1_pw0;
305 case 24: return port_in_ah_size24_hash1_lb1_pw0;
306 case 32: return port_in_ah_size32_hash1_lb1_pw0;
307 case 40: return port_in_ah_size40_hash1_lb1_pw0;
308 case 48: return port_in_ah_size48_hash1_lb1_pw0;
309 case 56: return port_in_ah_size56_hash1_lb1_pw0;
310 case 64: return port_in_ah_size64_hash1_lb1_pw0;
311 default: return NULL;
314 switch (p->params.dma_size) {
316 case 8: return port_in_ah_size8_hash1_lb0_pw0;
317 case 16: return port_in_ah_size16_hash1_lb0_pw0;
318 case 24: return port_in_ah_size24_hash1_lb0_pw0;
319 case 32: return port_in_ah_size32_hash1_lb0_pw0;
320 case 40: return port_in_ah_size40_hash1_lb0_pw0;
321 case 48: return port_in_ah_size48_hash1_lb0_pw0;
322 case 56: return port_in_ah_size56_hash1_lb0_pw0;
323 case 64: return port_in_ah_size64_hash1_lb0_pw0;
324 default: return NULL;
327 switch (p->params.dma_size) {
329 case 8: return port_in_ah_size8_hash0_lb0_pw0;
330 case 16: return port_in_ah_size16_hash0_lb0_pw0;
331 case 24: return port_in_ah_size24_hash0_lb0_pw0;
332 case 32: return port_in_ah_size32_hash0_lb0_pw0;
333 case 40: return port_in_ah_size40_hash0_lb0_pw0;
334 case 48: return port_in_ah_size48_hash0_lb0_pw0;
335 case 56: return port_in_ah_size56_hash0_lb0_pw0;
336 case 64: return port_in_ah_size64_hash0_lb0_pw0;
337 default: return NULL;
342 pipeline_passthrough_parse_args(struct pipeline_passthrough_params *p,
343 struct pipeline_params *params)
345 uint32_t dma_dst_offset_present = 0;
346 uint32_t dma_src_offset_present = 0;
347 uint32_t dma_src_mask_present = 0;
348 uint32_t dma_size_present = 0;
349 uint32_t dma_hash_offset_present = 0;
350 uint32_t lb_present = 0;
352 char dma_mask_str[PIPELINE_PASSTHROUGH_DMA_SIZE_MAX * 2];
356 p->dma_hash_enabled = 0;
357 p->lb_hash_enabled = 0;
358 memset(p->dma_src_mask, 0xFF, sizeof(p->dma_src_mask));
360 for (i = 0; i < params->n_args; i++) {
361 char *arg_name = params->args_name[i];
362 char *arg_value = params->args_value[i];
365 if (strcmp(arg_name, "dma_dst_offset") == 0) {
368 PIPELINE_PARSE_ERR_DUPLICATE(
369 dma_dst_offset_present == 0, params->name,
371 dma_dst_offset_present = 1;
373 status = parser_read_uint32(&p->dma_dst_offset,
375 PIPELINE_PARSE_ERR_INV_VAL((status != -EINVAL),
376 params->name, arg_name, arg_value);
377 PIPELINE_PARSE_ERR_OUT_RNG((status != -ERANGE),
378 params->name, arg_name, arg_value);
386 if (strcmp(arg_name, "dma_src_offset") == 0) {
389 PIPELINE_PARSE_ERR_DUPLICATE(
390 dma_src_offset_present == 0, params->name,
392 dma_src_offset_present = 1;
394 status = parser_read_uint32(&p->dma_src_offset,
396 PIPELINE_PARSE_ERR_INV_VAL((status != -EINVAL),
397 params->name, arg_name, arg_value);
398 PIPELINE_PARSE_ERR_OUT_RNG((status != -ERANGE),
399 params->name, arg_name, arg_value);
407 if (strcmp(arg_name, "dma_size") == 0) {
410 PIPELINE_PARSE_ERR_DUPLICATE(
411 dma_size_present == 0, params->name,
413 dma_size_present = 1;
415 status = parser_read_uint32(&p->dma_size,
417 PIPELINE_PARSE_ERR_INV_VAL(((status != -EINVAL) &&
418 (p->dma_size != 0) &&
419 ((p->dma_size % 8) == 0)),
420 params->name, arg_name, arg_value);
421 PIPELINE_PARSE_ERR_OUT_RNG(((status != -ERANGE) &&
423 PIPELINE_PASSTHROUGH_DMA_SIZE_MAX)),
424 params->name, arg_name, arg_value);
432 if (strcmp(arg_name, "dma_src_mask") == 0) {
433 int mask_str_len = strlen(arg_value);
435 PIPELINE_PARSE_ERR_DUPLICATE(
436 dma_src_mask_present == 0,
437 params->name, arg_name);
438 dma_src_mask_present = 1;
440 PIPELINE_ARG_CHECK((mask_str_len <
441 (PIPELINE_PASSTHROUGH_DMA_SIZE_MAX * 2)),
442 "Parse error in section \"%s\": entry "
443 "\"%s\" too long", params->name,
446 snprintf(dma_mask_str, mask_str_len + 1,
454 /* dma_hash_offset */
455 if (strcmp(arg_name, "dma_hash_offset") == 0) {
458 PIPELINE_PARSE_ERR_DUPLICATE(
459 dma_hash_offset_present == 0,
460 params->name, arg_name);
461 dma_hash_offset_present = 1;
463 status = parser_read_uint32(&p->dma_hash_offset,
465 PIPELINE_PARSE_ERR_INV_VAL((status != -EINVAL),
466 params->name, arg_name, arg_value);
467 PIPELINE_PARSE_ERR_OUT_RNG((status != -ERANGE),
468 params->name, arg_name, arg_value);
470 p->dma_hash_enabled = 1;
476 /* load_balance mode */
477 if (strcmp(arg_name, "lb") == 0) {
478 PIPELINE_PARSE_ERR_DUPLICATE(
480 params->name, arg_name);
483 if ((strcmp(arg_value, "hash") == 0) ||
484 (strcmp(arg_value, "HASH") == 0))
485 p->lb_hash_enabled = 1;
487 PIPELINE_PARSE_ERR_INV_VAL(0,
496 PIPELINE_PARSE_ERR_INV_ENT(0, params->name, arg_name);
499 /* Check correlations between arguments */
500 PIPELINE_ARG_CHECK((dma_dst_offset_present == p->dma_enabled),
501 "Parse error in section \"%s\": missing entry "
502 "\"dma_dst_offset\"", params->name);
503 PIPELINE_ARG_CHECK((dma_src_offset_present == p->dma_enabled),
504 "Parse error in section \"%s\": missing entry "
505 "\"dma_src_offset\"", params->name);
506 PIPELINE_ARG_CHECK((dma_size_present == p->dma_enabled),
507 "Parse error in section \"%s\": missing entry "
508 "\"dma_size\"", params->name);
509 PIPELINE_ARG_CHECK((dma_hash_offset_present == p->dma_enabled),
510 "Parse error in section \"%s\": missing entry "
511 "\"dma_hash_offset\"", params->name);
512 PIPELINE_ARG_CHECK((p->lb_hash_enabled <= p->dma_hash_enabled),
513 "Parse error in section \"%s\": missing entry "
514 "\"dma_hash_offset\"", params->name);
516 if (dma_src_mask_present) {
517 uint32_t dma_size = p->dma_size;
520 PIPELINE_ARG_CHECK((strlen(dma_mask_str) ==
521 (dma_size * 2)), "Parse error in section "
522 "\"%s\": dma_src_mask should have exactly %u hex "
523 "digits", params->name, (dma_size * 2));
525 status = parse_hex_string(dma_mask_str, p->dma_src_mask,
528 PIPELINE_PARSE_ERR_INV_VAL(((status == 0) &&
529 (dma_size == p->dma_size)), params->name,
530 "dma_src_mask", dma_mask_str);
537 static rte_table_hash_op_hash
538 get_hash_function(struct pipeline_passthrough *p)
540 switch (p->params.dma_size) {
542 case 8: return hash_default_key8;
543 case 16: return hash_default_key16;
544 case 24: return hash_default_key24;
545 case 32: return hash_default_key32;
546 case 40: return hash_default_key40;
547 case 48: return hash_default_key48;
548 case 56: return hash_default_key56;
549 case 64: return hash_default_key64;
550 default: return NULL;
555 pipeline_passthrough_init(struct pipeline_params *params,
556 __rte_unused void *arg)
559 struct pipeline_passthrough *p_pt;
562 /* Check input arguments */
563 if ((params == NULL) ||
564 (params->n_ports_in == 0) ||
565 (params->n_ports_out == 0) ||
566 (params->n_ports_in < params->n_ports_out) ||
567 (params->n_ports_in % params->n_ports_out))
570 /* Memory allocation */
571 size = RTE_CACHE_LINE_ROUNDUP(sizeof(struct pipeline_passthrough));
572 p = rte_zmalloc(NULL, size, RTE_CACHE_LINE_SIZE);
573 p_pt = (struct pipeline_passthrough *) p;
577 strcpy(p->name, params->name);
578 p->log_level = params->log_level;
580 PLOG(p, HIGH, "Pass-through");
582 /* Parse arguments */
583 if (pipeline_passthrough_parse_args(&p_pt->params, params))
585 p_pt->f_hash = get_hash_function(p_pt);
589 struct rte_pipeline_params pipeline_params = {
590 .name = "PASS-THROUGH",
591 .socket_id = params->socket_id,
595 p->p = rte_pipeline_create(&pipeline_params);
602 p->n_ports_in = params->n_ports_in;
603 p->n_ports_out = params->n_ports_out;
604 p->n_tables = p->n_ports_in;
607 for (i = 0; i < p->n_ports_in; i++) {
608 struct rte_pipeline_port_in_params port_params = {
609 .ops = pipeline_port_in_params_get_ops(
610 ¶ms->port_in[i]),
611 .arg_create = pipeline_port_in_params_convert(
612 ¶ms->port_in[i]),
613 .f_action = get_port_in_ah(p_pt),
615 .burst_size = params->port_in[i].burst_size,
618 int status = rte_pipeline_port_in_create(p->p,
623 rte_pipeline_free(p->p);
630 for (i = 0; i < p->n_ports_out; i++) {
631 struct rte_pipeline_port_out_params port_params = {
632 .ops = pipeline_port_out_params_get_ops(
633 ¶ms->port_out[i]),
634 .arg_create = pipeline_port_out_params_convert(
635 ¶ms->port_out[i]),
640 int status = rte_pipeline_port_out_create(p->p,
645 rte_pipeline_free(p->p);
652 for (i = 0; i < p->n_ports_in; i++) {
653 struct rte_pipeline_table_params table_params = {
654 .ops = &rte_table_stub_ops,
656 .f_action_hit = NULL,
657 .f_action_miss = NULL,
659 .action_data_size = 0,
662 int status = rte_pipeline_table_create(p->p,
667 rte_pipeline_free(p->p);
673 /* Connecting input ports to tables */
674 for (i = 0; i < p->n_ports_in; i++) {
675 int status = rte_pipeline_port_in_connect_to_table(p->p,
680 rte_pipeline_free(p->p);
686 /* Add entries to tables */
687 for (i = 0; i < p->n_ports_in; i++) {
688 struct rte_pipeline_table_entry default_entry = {
689 .action = RTE_PIPELINE_ACTION_PORT,
690 {.port_id = p->port_out_id[
691 i / (p->n_ports_in / p->n_ports_out)]},
694 struct rte_pipeline_table_entry *default_entry_ptr;
696 int status = rte_pipeline_table_default_entry_add(p->p,
702 rte_pipeline_free(p->p);
708 /* Enable input ports */
709 for (i = 0; i < p->n_ports_in; i++) {
710 int status = rte_pipeline_port_in_enable(p->p,
714 rte_pipeline_free(p->p);
720 /* Check pipeline consistency */
721 if (rte_pipeline_check(p->p) < 0) {
722 rte_pipeline_free(p->p);
728 p->n_msgq = params->n_msgq;
729 for (i = 0; i < p->n_msgq; i++)
730 p->msgq_in[i] = params->msgq_in[i];
731 for (i = 0; i < p->n_msgq; i++)
732 p->msgq_out[i] = params->msgq_out[i];
734 /* Message handlers */
735 memcpy(p->handlers, handlers, sizeof(p->handlers));
741 pipeline_passthrough_free(void *pipeline)
743 struct pipeline *p = (struct pipeline *) pipeline;
745 /* Check input arguments */
750 rte_pipeline_free(p->p);
756 pipeline_passthrough_timer(void *pipeline)
758 struct pipeline *p = (struct pipeline *) pipeline;
760 pipeline_msg_req_handle(p);
761 rte_pipeline_flush(p->p);
767 pipeline_passthrough_track(void *pipeline, uint32_t port_in, uint32_t *port_out)
769 struct pipeline *p = (struct pipeline *) pipeline;
771 /* Check input arguments */
773 (port_in >= p->n_ports_in) ||
777 *port_out = port_in / p->n_ports_in;
781 struct pipeline_be_ops pipeline_passthrough_be_ops = {
782 .f_init = pipeline_passthrough_init,
783 .f_free = pipeline_passthrough_free,
785 .f_timer = pipeline_passthrough_timer,
786 .f_track = pipeline_passthrough_track,