| /dpdk/examples/ipsec-secgw/test/ |
| H A D | tun_aesgcm_defs.sh | 17 proto esp mode tunnel reqid 1 23 proto esp mode tunnel reqid 2 27 proto esp spi 7 reqid 1 mode tunnel replay-window 64 ${XFRM_ESN} \ 33 proto esp spi 7 reqid 2 mode tunnel replay-window 64 ${XFRM_ESN} \ 50 proto esp mode tunnel reqid 1 56 proto esp mode tunnel reqid 2 60 proto esp spi 6 reqid 1 mode tunnel replay-window 64 ${XFRM_ESN} \ 85 proto esp mode tunnel reqid 1 91 proto esp mode tunnel reqid 2 120 proto esp mode tunnel reqid 3 [all …]
|
| H A D | tun_aesctr_sha1_defs.sh | 17 proto esp mode tunnel reqid 1 23 proto esp mode tunnel reqid 2 27 proto esp spi 7 reqid 1 mode tunnel replay-window 64 ${XFRM_ESN} \ 33 proto esp spi 7 reqid 2 mode tunnel replay-window 64 ${XFRM_ESN} \ 50 proto esp mode tunnel reqid 1 56 proto esp mode tunnel reqid 2 60 proto esp spi 6 reqid 1 mode tunnel replay-window 64 ${XFRM_ESN} \ 85 proto esp mode tunnel reqid 1 91 proto esp mode tunnel reqid 2 120 proto esp mode tunnel reqid 3 [all …]
|
| H A D | tun_3descbc_sha1_defs.sh | 17 proto esp mode tunnel reqid 1 23 proto esp mode tunnel reqid 2 27 proto esp spi 7 reqid 1 mode tunnel replay-window 64 ${XFRM_ESN} \ 33 proto esp spi 7 reqid 2 mode tunnel replay-window 64 ${XFRM_ESN} \ 50 proto esp mode tunnel reqid 1 56 proto esp mode tunnel reqid 2 60 proto esp spi 6 reqid 1 mode tunnel replay-window 64 ${XFRM_ESN} \ 85 proto esp mode tunnel reqid 1 91 proto esp mode tunnel reqid 2 120 proto esp mode tunnel reqid 3 [all …]
|
| H A D | tun_aescbc_sha1_defs.sh | 17 proto esp mode tunnel reqid 1 23 proto esp mode tunnel reqid 2 27 proto esp spi 7 reqid 1 mode tunnel replay-window 64 ${XFRM_ESN} \ 33 proto esp spi 7 reqid 2 mode tunnel replay-window 64 ${XFRM_ESN} \ 50 proto esp mode tunnel reqid 1 56 proto esp mode tunnel reqid 2 60 proto esp spi 6 reqid 1 mode tunnel replay-window 64 ${XFRM_ESN} \ 85 proto esp mode tunnel reqid 1 91 proto esp mode tunnel reqid 2 120 proto esp mode tunnel reqid 3 [all …]
|
| H A D | tun_aesgcm_common_defs.sh | 33 mode ipv4-tunnel src ${REMOTE_IPV4} dst ${LOCAL_IPV4} ${SGW_CFG_XPRM_IN} 37 mode ipv6-tunnel src ${REMOTE_IPV6} dst ${LOCAL_IPV6} ${SGW_CFG_XPRM_IN} 42 mode ipv4-tunnel src ${LOCAL_IPV4} dst ${REMOTE_IPV4} ${SGW_CFG_XPRM_OUT} 46 mode ipv6-tunnel src ${LOCAL_IPV6} dst ${REMOTE_IPV6} ${SGW_CFG_XPRM_OUT} 89 mode ipv4-tunnel src ${REMOTE_IPV4} dst ${LOCAL_IPV4} ${SGW_CFG_XPRM_IN} 93 mode ipv6-tunnel src ${REMOTE_IPV6} dst ${LOCAL_IPV6} ${SGW_CFG_XPRM_IN} 98 mode ipv4-tunnel src ${LOCAL_IPV4} dst ${REMOTE_IPV4} ${SGW_CFG_XPRM_OUT} 102 mode ipv6-tunnel src ${LOCAL_IPV6} dst ${REMOTE_IPV6} ${SGW_CFG_XPRM_OUT}
|
| H A D | tun_aescbc_sha1_common_defs.sh | 35 mode ipv4-tunnel src ${REMOTE_IPV4} dst ${LOCAL_IPV4} ${SGW_CFG_XPRM_IN} 41 mode ipv6-tunnel src ${REMOTE_IPV6} dst ${LOCAL_IPV6} ${SGW_CFG_XPRM_IN} 48 mode ipv4-tunnel src ${LOCAL_IPV4} dst ${REMOTE_IPV4} ${SGW_CFG_XPRM_OUT} 54 mode ipv6-tunnel src ${LOCAL_IPV6} dst ${REMOTE_IPV6} ${SGW_CFG_XPRM_OUT} 99 mode ipv4-tunnel src ${REMOTE_IPV4} dst ${LOCAL_IPV4} 105 mode ipv6-tunnel src ${REMOTE_IPV6} dst ${LOCAL_IPV6} 112 mode ipv4-tunnel src ${LOCAL_IPV4} dst ${REMOTE_IPV4} 118 mode ipv6-tunnel src ${LOCAL_IPV6} dst ${REMOTE_IPV6}
|
| H A D | tun_3descbc_sha1_common_defs.sh | 36 mode ipv4-tunnel src ${REMOTE_IPV4} dst ${LOCAL_IPV4} ${SGW_CFG_XPRM_IN} 43 mode ipv6-tunnel src ${REMOTE_IPV6} dst ${LOCAL_IPV6} ${SGW_CFG_XPRM_IN} 51 mode ipv4-tunnel src ${LOCAL_IPV4} dst ${REMOTE_IPV4} ${SGW_CFG_XPRM_OUT} 58 mode ipv6-tunnel src ${LOCAL_IPV6} dst ${REMOTE_IPV6} ${SGW_CFG_XPRM_OUT} 104 mode ipv4-tunnel src ${REMOTE_IPV4} dst ${LOCAL_IPV4} 111 mode ipv6-tunnel src ${REMOTE_IPV6} dst ${LOCAL_IPV6} 119 mode ipv4-tunnel src ${LOCAL_IPV4} dst ${REMOTE_IPV4} 126 mode ipv6-tunnel src ${LOCAL_IPV6} dst ${REMOTE_IPV6}
|
| H A D | tun_aesctr_sha1_common_defs.sh | 35 mode ipv4-tunnel src ${REMOTE_IPV4} dst ${LOCAL_IPV4} ${SGW_CFG_XPRM_IN} 41 mode ipv6-tunnel src ${REMOTE_IPV6} dst ${LOCAL_IPV6} ${SGW_CFG_XPRM_IN} 48 mode ipv4-tunnel src ${LOCAL_IPV4} dst ${REMOTE_IPV4} ${SGW_CFG_XPRM_OUT} 54 mode ipv6-tunnel src ${LOCAL_IPV6} dst ${REMOTE_IPV6} ${SGW_CFG_XPRM_OUT} 99 mode ipv4-tunnel src ${REMOTE_IPV4} dst ${LOCAL_IPV4} 105 mode ipv6-tunnel src ${REMOTE_IPV6} dst ${LOCAL_IPV6} 112 mode ipv4-tunnel src ${LOCAL_IPV4} dst ${REMOTE_IPV4} 118 mode ipv6-tunnel src ${LOCAL_IPV6} dst ${REMOTE_IPV6}
|
| /dpdk/drivers/common/cnxk/ |
| H A D | cnxk_security.c | 274 tunnel = &ipsec_xfrm->tunnel; in ot_ipsec_inb_tunnel_hdr_fill() 276 switch (tunnel->type) { in ot_ipsec_inb_tunnel_hdr_fill() 426 struct rte_security_ipsec_tunnel_param *tunnel = &ipsec_xfrm->tunnel; in cnxk_ot_ipsec_outb_sa_fill() local 448 switch (tunnel->type) { in cnxk_ot_ipsec_outb_sa_fill() 475 sa->w10.s.dscp = tunnel->ipv4.dscp; in cnxk_ot_ipsec_outb_sa_fill() 501 sa->w10.s.dscp = tunnel->ipv6.dscp; in cnxk_ot_ipsec_outb_sa_fill() 752 struct rte_security_ipsec_tunnel_param *tunnel = &ipsec_xfrm->tunnel; in cnxk_onf_ipsec_outb_sa_fill() local 767 switch (tunnel->type) { in cnxk_onf_ipsec_outb_sa_fill() 769 memcpy(&sa->ip_src, &tunnel->ipv4.src_ip, in cnxk_onf_ipsec_outb_sa_fill() 771 memcpy(&sa->ip_dst, &tunnel->ipv4.dst_ip, in cnxk_onf_ipsec_outb_sa_fill() [all …]
|
| H A D | roc_npc_parse.c | 479 pst->tunnel = 1; in npc_parse_mpls() 494 pst->tunnel = 1; in npc_check_lc_ip_tunnel() 653 if (pst->tunnel) { in npc_parse_ld() 713 pst->tunnel = 1; in npc_parse_ld() 736 if (pst->tunnel) in npc_parse_le() 792 pst->tunnel = 1; in npc_parse_le() 813 if (!pst->tunnel) in npc_parse_lf() 880 if (!pst->tunnel) in npc_parse_lg() 917 if (!pst->tunnel) in npc_parse_lh()
|
| /dpdk/drivers/net/sfc/ |
| H A D | sfc_flow_tunnel.c | 155 struct rte_flow_tunnel *tunnel, in sfc_flow_tunnel_attach() argument 170 if (tunnel->type != RTE_FLOW_ITEM_TYPE_VXLAN) { in sfc_flow_tunnel_attach() 185 if (memcmp(tunnel, &ft->rte_tunnel, sizeof(*tunnel)) == 0) { in sfc_flow_tunnel_attach() 199 memcpy(&ft->rte_tunnel, tunnel, sizeof(*tunnel)); in sfc_flow_tunnel_attach() 255 struct rte_flow_tunnel *tunnel, in sfc_flow_tunnel_decap_set() argument 271 rc = sfc_flow_tunnel_attach(sa, tunnel, &ft); in sfc_flow_tunnel_decap_set() 292 struct rte_flow_tunnel *tunnel, in sfc_flow_tunnel_match() argument 308 rc = sfc_flow_tunnel_attach(sa, tunnel, &ft); in sfc_flow_tunnel_match() 442 memcpy(&info->tunnel, &ft->rte_tunnel, sizeof(info->tunnel)); in sfc_flow_tunnel_get_restore_info()
|
| H A D | sfc_flow_tunnel.h | 86 struct rte_flow_tunnel *tunnel, 92 struct rte_flow_tunnel *tunnel,
|
| /dpdk/drivers/net/mlx5/ |
| H A D | mlx5_flow_verbs.c | 529 if (!tunnel) in flow_verbs_translate_item_vlan() 967 tunnel.val.c_ks_res0_ver &= tunnel.mask.c_ks_res0_ver; in flow_verbs_translate_item_gre() 968 tunnel.val.key &= tunnel.mask.key; in flow_verbs_translate_item_gre() 969 if (tunnel.mask.protocol) { in flow_verbs_translate_item_gre() 970 tunnel.val.protocol &= tunnel.mask.protocol; in flow_verbs_translate_item_gre() 973 if (tunnel.val.protocol) { in flow_verbs_translate_item_gre() 974 tunnel.mask.protocol = 0xFFFF; in flow_verbs_translate_item_gre() 975 tunnel.val.protocol = in flow_verbs_translate_item_gre() 989 memcpy(gre_spec, &tunnel, size); in flow_verbs_translate_item_gre() 1801 (rss_desc, tunnel, in flow_verbs_translate() [all …]
|
| H A D | mlx5_flow.c | 6789 tunnel = (typeof(tunnel))flow->tunnel; in flow_tunnel_from_rule() 10109 dev_flow->tunnel = tunnel; in flow_tunnel_add_default_miss() 10246 .tunnel_id = tunnel ? tunnel->tunnel_id : 0, in tunnel_flow_group_to_flow_table() 10336 ctx->tunnel = tunnel; in find_tunnel_id_hit() 10384 tunnel->action.type = (typeof(tunnel->action.type)) in mlx5_flow_tunnel_allocate() 10386 tunnel->action.conf = tunnel; in mlx5_flow_tunnel_allocate() 10387 tunnel->item.type = (typeof(tunnel->item.type)) in mlx5_flow_tunnel_allocate() 10389 tunnel->item.spec = tunnel; in mlx5_flow_tunnel_allocate() 10422 ctx->tunnel = tunnel; in get_tunnel_hit() 10452 *tunnel = ctx.tunnel; in mlx5_get_flow_tunnel() [all …]
|
| H A D | mlx5_flow_dv.c | 298 int *tunnel) in mlx5_flow_tunnel_ip_check() argument 304 *tunnel = 1; in mlx5_flow_tunnel_ip_check() 308 *tunnel = 1; in mlx5_flow_tunnel_ip_check() 6925 if (tunnel) { in flow_dv_validate() 10523 tbl_data->tunnel = tt_prm->tunnel; in flow_dv_tbl_create_cb() 10676 .tunnel = tunnel, in flow_dv_tbl_resource_get() 10699 tunnel ? tunnel->tunnel_id : 0, group_id); in flow_dv_tbl_resource_get() 12967 tunnel = dev_flow->tunnel; in flow_dv_translate() 12971 dev_flow->tunnel = tunnel; in flow_dv_translate() 15006 tunnel = 1; in __flow_dv_action_rss_setup() [all …]
|
| /dpdk/examples/ipsec-secgw/ |
| H A D | ipsec.c | 26 &ipsec->tunnel; in set_ipsec_conf() 28 tunnel->type = in set_ipsec_conf() 30 tunnel->ipv4.ttl = IPDEFTTL; in set_ipsec_conf() 38 tunnel->type = in set_ipsec_conf() 40 tunnel->ipv6.hlimit = IPDEFTTL; in set_ipsec_conf() 41 tunnel->ipv6.dscp = 0; in set_ipsec_conf() 42 tunnel->ipv6.flabel = 0; in set_ipsec_conf() 183 sess_conf.ipsec.tunnel.type = in create_inline_session() 191 sess_conf.ipsec.tunnel.type = in create_inline_session() 203 sess_conf.ipsec.tunnel.type = in create_inline_session() [all …]
|
| H A D | ep0.cfg | 5 # back-to-back that would forward traffic through an IPsec tunnel. This 71 mode ipv4-tunnel src 172.16.1.5 dst 172.16.2.5 75 a0:a0:a0:a0:a0:a0:a0:a0:a0 mode ipv4-tunnel src 172.16.1.6 dst 172.16.2.6 85 sa out 15 cipher_algo null auth_algo null mode ipv4-tunnel src 172.16.1.5 \ 93 c3:c3:c3:c3:c3:c3:c3:c3:c3 mode ipv6-tunnel \ 99 4d:4d:4d:4d:4d:4d:4d:4d:4d mode ipv6-tunnel \ 105 mode ipv4-tunnel src 172.16.2.5 dst 172.16.1.5 109 a0:a0:a0:a0:a0:a0:a0:a0:a0 mode ipv4-tunnel src 172.16.2.6 dst 172.16.1.6 129 c3:c3:c3:c3:c3:c3:c3:c3:c3 mode ipv6-tunnel \ 135 4d:4d:4d:4d:4d:4d:4d:4d:4d mode ipv6-tunnel \ [all …]
|
| H A D | ep1.cfg | 5 # back-to-back that would forward traffic through an IPsec tunnel. This 68 mode ipv4-tunnel src 172.16.1.5 dst 172.16.2.5 72 a0:a0:a0:a0:a0:a0:a0:a0:a0 mode ipv4-tunnel src 172.16.1.6 dst 172.16.2.6 82 sa in 15 cipher_algo null auth_algo null mode ipv4-tunnel src 172.16.1.5 \ 85 sa in 16 cipher_algo null auth_algo null mode ipv4-tunnel src 172.16.1.6 \ 90 c3:c3:c3:c3:c3:c3:c3:c3:c3 mode ipv6-tunnel \ 96 4d:4d:4d:4d:4d:4d:4d:4d:4d mode ipv6-tunnel \ 102 mode ipv4-tunnel src 172.16.2.5 dst 172.16.1.5 106 a0:a0:a0:a0:a0:a0:a0:a0:a0 mode ipv4-tunnel src 172.16.2.6 dst 172.16.1.6 123 c3:c3:c3:c3:c3:c3:c3:c3:c3 mode ipv6-tunnel \ [all …]
|
| /dpdk/app/test/ |
| H A D | test_cryptodev_security_ipsec_test_vectors.h | 103 .tunnel.type = RTE_SECURITY_IPSEC_TUNNEL_IPV4, 203 .tunnel.type = RTE_SECURITY_IPSEC_TUNNEL_IPV4, 305 .tunnel.type = RTE_SECURITY_IPSEC_TUNNEL_IPV4, 411 .tunnel.type = RTE_SECURITY_IPSEC_TUNNEL_IPV4, 512 .tunnel.type = RTE_SECURITY_IPSEC_TUNNEL_IPV6, 614 .tunnel.type = RTE_SECURITY_IPSEC_TUNNEL_IPV4, 719 .tunnel.type = RTE_SECURITY_IPSEC_TUNNEL_IPV4, 827 .tunnel.type = RTE_SECURITY_IPSEC_TUNNEL_IPV4, 932 .tunnel.type = RTE_SECURITY_IPSEC_TUNNEL_IPV6, 1043 .tunnel.type = RTE_SECURITY_IPSEC_TUNNEL_IPV4, [all …]
|
| /dpdk/drivers/crypto/cnxk/ |
| H A D | cn9k_ipsec.c | 137 if (ipsec->tunnel.type == RTE_SECURITY_IPSEC_TUNNEL_IPV4) in ipsec_sa_ctl_set() 417 ip4->time_to_live = ipsec->tunnel.ipv4.ttl; in cn9k_ipsec_outb_sa_create() 419 if (ipsec->tunnel.ipv4.df) in cn9k_ipsec_outb_sa_create() 423 memcpy(&ip4->src_addr, &ipsec->tunnel.ipv4.src_ip, in cn9k_ipsec_outb_sa_create() 425 memcpy(&ip4->dst_addr, &ipsec->tunnel.ipv4.dst_ip, in cn9k_ipsec_outb_sa_create() 427 } else if (ipsec->tunnel.type == in cn9k_ipsec_outb_sa_create() 444 ((ipsec->tunnel.ipv6.dscp in cn9k_ipsec_outb_sa_create() 447 ((ipsec->tunnel.ipv6.flabel in cn9k_ipsec_outb_sa_create() 450 ip6->hop_limits = ipsec->tunnel.ipv6.hlimit; in cn9k_ipsec_outb_sa_create() 451 memcpy(&ip6->src_addr, &ipsec->tunnel.ipv6.src_addr, in cn9k_ipsec_outb_sa_create() [all …]
|
| H A D | cnxk_ipsec.h | 121 (ipsec_xform->tunnel.type != RTE_SECURITY_IPSEC_TUNNEL_IPV4) && in cnxk_ipsec_xform_verify() 122 (ipsec_xform->tunnel.type != RTE_SECURITY_IPSEC_TUNNEL_IPV6)) in cnxk_ipsec_xform_verify()
|
| /dpdk/drivers/net/bnxt/tf_ulp/ |
| H A D | bnxt_ulp_flow.c | 502 struct rte_flow_tunnel *tunnel, in bnxt_ulp_tunnel_decap_set() argument 520 if (tunnel == NULL) { in bnxt_ulp_tunnel_decap_set() 528 if (tunnel->type != RTE_FLOW_ITEM_TYPE_VXLAN) { in bnxt_ulp_tunnel_decap_set() 536 rc = ulp_app_tun_search_entry(ulp_ctx, tunnel, &tun_entry); in bnxt_ulp_tunnel_decap_set() 559 struct rte_flow_tunnel *tunnel, in bnxt_ulp_tunnel_match() argument 577 if (tunnel == NULL) { in bnxt_ulp_tunnel_match() 585 if (tunnel->type != RTE_FLOW_ITEM_TYPE_VXLAN) { in bnxt_ulp_tunnel_match() 593 rc = ulp_app_tun_search_entry(ulp_ctx, tunnel, &tun_entry); in bnxt_ulp_tunnel_match()
|
| /dpdk/drivers/crypto/mvsam/ |
| H A D | rte_mrvl_pmd.c | 538 sess->sam_sess_params.u.ipsec.tunnel.u.ipv4.sip = in mrvl_ipsec_set_session_parameters() 540 sess->sam_sess_params.u.ipsec.tunnel.u.ipv4.dip = in mrvl_ipsec_set_session_parameters() 543 sess->sam_sess_params.u.ipsec.tunnel.u.ipv4.dscp = in mrvl_ipsec_set_session_parameters() 544 ipsec_xform->tunnel.ipv4.dscp; in mrvl_ipsec_set_session_parameters() 545 sess->sam_sess_params.u.ipsec.tunnel.u.ipv4.ttl = in mrvl_ipsec_set_session_parameters() 546 ipsec_xform->tunnel.ipv4.ttl; in mrvl_ipsec_set_session_parameters() 547 sess->sam_sess_params.u.ipsec.tunnel.u.ipv4.df = in mrvl_ipsec_set_session_parameters() 548 ipsec_xform->tunnel.ipv4.df; in mrvl_ipsec_set_session_parameters() 549 sess->sam_sess_params.u.ipsec.tunnel.copy_dscp = in mrvl_ipsec_set_session_parameters() 551 sess->sam_sess_params.u.ipsec.tunnel.copy_flabel = in mrvl_ipsec_set_session_parameters() [all …]
|
| /dpdk/lib/ethdev/ |
| H A D | rte_flow_driver.h | 113 struct rte_flow_tunnel *tunnel, 120 struct rte_flow_tunnel *tunnel,
|
| /dpdk/doc/guides/prog_guide/ |
| H A D | ipsec_lib.rst | 71 - remove outer IP header (tunnel mode) / update IP header (transport mode) 78 - add outer IP header (tunnel mode) / update IP header (transport mode) 103 - remove outer IP header (tunnel mode) / update IP header (transport mode) 110 - add outer IP header (tunnel mode) / update IP header (transport mode) 310 * ESP protocol tunnel mode both IPv4/IPv6.
|