MCPcopy Create free account
hub / github.com/F-Stack/f-stack / encap_valid

Function encap_valid

dpdk/lib/pipeline/rte_table_action.c:411–426  ·  view source on GitHub ↗

* RTE_TABLE_ACTION_ENCAP */

Source from the content-addressed store, hash-verified

409 * RTE_TABLE_ACTION_ENCAP
410 */
411static int
412encap_valid(enum rte_table_action_encap_type encap)
413{
414 switch (encap) {
415 case RTE_TABLE_ACTION_ENCAP_ETHER:
416 case RTE_TABLE_ACTION_ENCAP_VLAN:
417 case RTE_TABLE_ACTION_ENCAP_QINQ:
418 case RTE_TABLE_ACTION_ENCAP_MPLS:
419 case RTE_TABLE_ACTION_ENCAP_PPPOE:
420 case RTE_TABLE_ACTION_ENCAP_VXLAN:
421 case RTE_TABLE_ACTION_ENCAP_QINQ_PPPOE:
422 return 1;
423 default:
424 return 0;
425 }
426}
427
428static int
429encap_cfg_check(struct rte_table_action_encap_config *encap)

Callers 1

encap_apply_checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected