Lines Matching refs:encap
1250 p.encap.encap_mask = 1LLU << RTE_TABLE_ACTION_ENCAP_ETHER; in cmd_table_action_profile()
1252 p.encap.encap_mask = 1LLU << RTE_TABLE_ACTION_ENCAP_VLAN; in cmd_table_action_profile()
1254 p.encap.encap_mask = 1LLU << RTE_TABLE_ACTION_ENCAP_QINQ; in cmd_table_action_profile()
1256 p.encap.encap_mask = 1LLU << RTE_TABLE_ACTION_ENCAP_MPLS; in cmd_table_action_profile()
1258 p.encap.encap_mask = 1LLU << RTE_TABLE_ACTION_ENCAP_PPPOE; in cmd_table_action_profile()
1272 if (parser_read_uint32(&p.encap.vxlan.data_offset, in cmd_table_action_profile()
1280 p.encap.vxlan.ip_version = 1; in cmd_table_action_profile()
1282 p.encap.vxlan.ip_version = 0; in cmd_table_action_profile()
1296 p.encap.vxlan.vlan = 1; in cmd_table_action_profile()
1298 p.encap.vxlan.vlan = 0; in cmd_table_action_profile()
1305 p.encap.encap_mask = 1LLU << RTE_TABLE_ACTION_ENCAP_VXLAN; in cmd_table_action_profile()
1308 p.encap.encap_mask = in cmd_table_action_profile()
3331 parse_mac_addr(tokens[1], &a->encap.ether.ether.da) || in parse_table_action_encap()
3332 parse_mac_addr(tokens[2], &a->encap.ether.ether.sa)) in parse_table_action_encap()
3335 a->encap.type = RTE_TABLE_ACTION_ENCAP_ETHER; in parse_table_action_encap()
3345 parse_mac_addr(tokens[1], &a->encap.vlan.ether.da) || in parse_table_action_encap()
3346 parse_mac_addr(tokens[2], &a->encap.vlan.ether.sa) || in parse_table_action_encap()
3355 a->encap.vlan.vlan.pcp = pcp & 0x7; in parse_table_action_encap()
3356 a->encap.vlan.vlan.dei = dei & 0x1; in parse_table_action_encap()
3357 a->encap.vlan.vlan.vid = vid & 0xFFF; in parse_table_action_encap()
3358 a->encap.type = RTE_TABLE_ACTION_ENCAP_VLAN; in parse_table_action_encap()
3369 parse_mac_addr(tokens[1], &a->encap.qinq.ether.da) || in parse_table_action_encap()
3370 parse_mac_addr(tokens[2], &a->encap.qinq.ether.sa) || in parse_table_action_encap()
3385 a->encap.qinq.svlan.pcp = svlan_pcp & 0x7; in parse_table_action_encap()
3386 a->encap.qinq.svlan.dei = svlan_dei & 0x1; in parse_table_action_encap()
3387 a->encap.qinq.svlan.vid = svlan_vid & 0xFFF; in parse_table_action_encap()
3388 a->encap.qinq.cvlan.pcp = cvlan_pcp & 0x7; in parse_table_action_encap()
3389 a->encap.qinq.cvlan.dei = cvlan_dei & 0x1; in parse_table_action_encap()
3390 a->encap.qinq.cvlan.vid = cvlan_vid & 0xFFF; in parse_table_action_encap()
3391 a->encap.type = RTE_TABLE_ACTION_ENCAP_QINQ; in parse_table_action_encap()
3403 &a->encap.qinq_pppoe.ether.da) || in parse_table_action_encap()
3405 &a->encap.qinq_pppoe.ether.sa) || in parse_table_action_encap()
3418 parser_read_uint16(&a->encap.qinq_pppoe.pppoe.session_id, in parse_table_action_encap()
3422 a->encap.qinq_pppoe.svlan.pcp = svlan_pcp & 0x7; in parse_table_action_encap()
3423 a->encap.qinq_pppoe.svlan.dei = svlan_dei & 0x1; in parse_table_action_encap()
3424 a->encap.qinq_pppoe.svlan.vid = svlan_vid & 0xFFF; in parse_table_action_encap()
3425 a->encap.qinq_pppoe.cvlan.pcp = cvlan_pcp & 0x7; in parse_table_action_encap()
3426 a->encap.qinq_pppoe.cvlan.dei = cvlan_dei & 0x1; in parse_table_action_encap()
3427 a->encap.qinq_pppoe.cvlan.vid = cvlan_vid & 0xFFF; in parse_table_action_encap()
3428 a->encap.type = RTE_TABLE_ACTION_ENCAP_QINQ_PPPOE; in parse_table_action_encap()
3442 a->encap.mpls.unicast = 1; in parse_table_action_encap()
3444 a->encap.mpls.unicast = 0; in parse_table_action_encap()
3448 if (parse_mac_addr(tokens[2], &a->encap.mpls.ether.da) || in parse_table_action_encap()
3449 parse_mac_addr(tokens[3], &a->encap.mpls.ether.sa) || in parse_table_action_encap()
3459 a->encap.mpls.mpls[0].label = label; in parse_table_action_encap()
3460 a->encap.mpls.mpls[0].tc = tc; in parse_table_action_encap()
3461 a->encap.mpls.mpls[0].ttl = ttl; in parse_table_action_encap()
3467 a->encap.mpls.mpls_count = 1; in parse_table_action_encap()
3468 a->encap.type = RTE_TABLE_ACTION_ENCAP_MPLS; in parse_table_action_encap()
3482 a->encap.mpls.mpls[1].label = label; in parse_table_action_encap()
3483 a->encap.mpls.mpls[1].tc = tc; in parse_table_action_encap()
3484 a->encap.mpls.mpls[1].ttl = ttl; in parse_table_action_encap()
3490 a->encap.mpls.mpls_count = 2; in parse_table_action_encap()
3491 a->encap.type = RTE_TABLE_ACTION_ENCAP_MPLS; in parse_table_action_encap()
3505 a->encap.mpls.mpls[2].label = label; in parse_table_action_encap()
3506 a->encap.mpls.mpls[2].tc = tc; in parse_table_action_encap()
3507 a->encap.mpls.mpls[2].ttl = ttl; in parse_table_action_encap()
3513 a->encap.mpls.mpls_count = 3; in parse_table_action_encap()
3514 a->encap.type = RTE_TABLE_ACTION_ENCAP_MPLS; in parse_table_action_encap()
3528 a->encap.mpls.mpls[3].label = label; in parse_table_action_encap()
3529 a->encap.mpls.mpls[3].tc = tc; in parse_table_action_encap()
3530 a->encap.mpls.mpls[3].ttl = ttl; in parse_table_action_encap()
3532 a->encap.mpls.mpls_count = 4; in parse_table_action_encap()
3533 a->encap.type = RTE_TABLE_ACTION_ENCAP_MPLS; in parse_table_action_encap()
3541 parse_mac_addr(tokens[1], &a->encap.pppoe.ether.da) || in parse_table_action_encap()
3542 parse_mac_addr(tokens[2], &a->encap.pppoe.ether.sa) || in parse_table_action_encap()
3543 parser_read_uint16(&a->encap.pppoe.pppoe.session_id, in parse_table_action_encap()
3547 a->encap.type = RTE_TABLE_ACTION_ENCAP_PPPOE; in parse_table_action_encap()
3563 parse_mac_addr(tokens[1], &a->encap.vxlan.ether.da) || in parse_table_action_encap()
3564 parse_mac_addr(tokens[2], &a->encap.vxlan.ether.sa)) in parse_table_action_encap()
3584 a->encap.vxlan.vlan.pcp = pcp; in parse_table_action_encap()
3585 a->encap.vxlan.vlan.dei = dei; in parse_table_action_encap()
3586 a->encap.vxlan.vlan.vid = vid; in parse_table_action_encap()
3607 a->encap.vxlan.ipv4.sa = rte_be_to_cpu_32(sa.s_addr); in parse_table_action_encap()
3608 a->encap.vxlan.ipv4.da = rte_be_to_cpu_32(da.s_addr); in parse_table_action_encap()
3609 a->encap.vxlan.ipv4.dscp = dscp; in parse_table_action_encap()
3610 a->encap.vxlan.ipv4.ttl = ttl; in parse_table_action_encap()
3629 memcpy(a->encap.vxlan.ipv6.sa, sa.s6_addr, 16); in parse_table_action_encap()
3630 memcpy(a->encap.vxlan.ipv6.da, da.s6_addr, 16); in parse_table_action_encap()
3631 a->encap.vxlan.ipv6.flow_label = flow_label; in parse_table_action_encap()
3632 a->encap.vxlan.ipv6.dscp = dscp; in parse_table_action_encap()
3633 a->encap.vxlan.ipv6.hop_limit = hop_limit; in parse_table_action_encap()
3644 parser_read_uint16(&a->encap.vxlan.udp.sp, tokens[1]) || in parse_table_action_encap()
3645 parser_read_uint16(&a->encap.vxlan.udp.dp, tokens[2])) in parse_table_action_encap()
3655 parser_read_uint32(&a->encap.vxlan.vxlan.vni, tokens[1]) || in parse_table_action_encap()
3656 (a->encap.vxlan.vxlan.vni > 0xFFFFFF)) in parse_table_action_encap()
3663 a->encap.type = RTE_TABLE_ACTION_ENCAP_VXLAN; in parse_table_action_encap()
4971 switch (a->encap.type) { in table_rule_show()
4974 ether_addr_show(f, &a->encap.ether.ether.da); in table_rule_show()
4976 ether_addr_show(f, &a->encap.ether.ether.sa); in table_rule_show()
4982 ether_addr_show(f, &a->encap.vlan.ether.da); in table_rule_show()
4984 ether_addr_show(f, &a->encap.vlan.ether.sa); in table_rule_show()
4986 a->encap.vlan.vlan.pcp, in table_rule_show()
4987 a->encap.vlan.vlan.dei, in table_rule_show()
4988 a->encap.vlan.vlan.vid); in table_rule_show()
4993 ether_addr_show(f, &a->encap.qinq.ether.da); in table_rule_show()
4995 ether_addr_show(f, &a->encap.qinq.ether.sa); in table_rule_show()
4997 a->encap.qinq.svlan.pcp, in table_rule_show()
4998 a->encap.qinq.svlan.dei, in table_rule_show()
4999 a->encap.qinq.svlan.vid, in table_rule_show()
5000 a->encap.qinq.cvlan.pcp, in table_rule_show()
5001 a->encap.qinq.cvlan.dei, in table_rule_show()
5002 a->encap.qinq.cvlan.vid); in table_rule_show()
5006 fprintf(f, "mpls %s ", (a->encap.mpls.unicast) ? in table_rule_show()
5008 ether_addr_show(f, &a->encap.mpls.ether.da); in table_rule_show()
5010 ether_addr_show(f, &a->encap.mpls.ether.sa); in table_rule_show()
5012 for (i = 0; i < a->encap.mpls.mpls_count; i++) { in table_rule_show()
5014 &a->encap.mpls.mpls[i]; in table_rule_show()
5026 ether_addr_show(f, &a->encap.pppoe.ether.da); in table_rule_show()
5028 ether_addr_show(f, &a->encap.pppoe.ether.sa); in table_rule_show()
5029 fprintf(f, " %u ", a->encap.pppoe.pppoe.session_id); in table_rule_show()
5034 ether_addr_show(f, &a->encap.vxlan.ether.da); in table_rule_show()
5036 ether_addr_show(f, &a->encap.vxlan.ether.sa); in table_rule_show()
5037 if (table->ap->params.encap.vxlan.vlan) in table_rule_show()
5039 a->encap.vxlan.vlan.pcp, in table_rule_show()
5040 a->encap.vxlan.vlan.dei, in table_rule_show()
5041 a->encap.vxlan.vlan.vid); in table_rule_show()
5042 if (table->ap->params.encap.vxlan.ip_version) { in table_rule_show()
5044 ipv4_addr_show(f, a->encap.vxlan.ipv4.sa); in table_rule_show()
5046 ipv4_addr_show(f, a->encap.vxlan.ipv4.da); in table_rule_show()
5048 (uint32_t)a->encap.vxlan.ipv4.dscp, in table_rule_show()
5049 (uint32_t)a->encap.vxlan.ipv4.ttl); in table_rule_show()
5052 ipv6_addr_show(f, a->encap.vxlan.ipv6.sa); in table_rule_show()
5054 ipv6_addr_show(f, a->encap.vxlan.ipv6.da); in table_rule_show()
5056 a->encap.vxlan.ipv6.flow_label, in table_rule_show()
5057 (uint32_t)a->encap.vxlan.ipv6.dscp, in table_rule_show()
5058 (uint32_t)a->encap.vxlan.ipv6.hop_limit); in table_rule_show()
5060 a->encap.vxlan.udp.sp, in table_rule_show()
5061 a->encap.vxlan.udp.dp, in table_rule_show()
5062 a->encap.vxlan.vxlan.vni); in table_rule_show()