* RTE_TABLE_ACTION_ENCAP */
| 409 | * RTE_TABLE_ACTION_ENCAP |
| 410 | */ |
| 411 | static int |
| 412 | encap_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 | |
| 428 | static int |
| 429 | encap_cfg_check(struct rte_table_action_encap_config *encap) |