| /dpdk/app/test-pmd/ |
| H A D | cmd_flex_item.c | 47 int tun = -1; in flex_tunnel_parse() local 50 tun = (int)json_integer_value(jtun); in flex_tunnel_parse() 52 tun = (int)json_real_value(jtun); in flex_tunnel_parse() 57 tun = FLEX_TUNNEL_MODE_SINGLE; in flex_tunnel_parse() 59 tun = FLEX_TUNNEL_MODE_OUTER; in flex_tunnel_parse() 61 tun = FLEX_TUNNEL_MODE_INNER; in flex_tunnel_parse() 63 tun = FLEX_TUNNEL_MODE_MULTI; in flex_tunnel_parse() 65 tun = FLEX_TUNNEL_MODE_TUNNEL; in flex_tunnel_parse() 70 *tunnel = (enum rte_flow_item_flex_tunnel_mode)tun; in flex_tunnel_parse()
|
| H A D | testpmd.h | 978 port_flow_locate_tunnel(uint16_t port_id, struct rte_flow_tunnel *tun);
|
| H A D | config.c | 1375 port_flow_locate_tunnel(uint16_t port_id, struct rte_flow_tunnel *tun) in port_flow_locate_tunnel() argument 1381 if (!memcmp(&flow_tunnel->tunnel, tun, sizeof(*tun))) in port_flow_locate_tunnel()
|
| /dpdk/drivers/net/qede/ |
| H A D | qede_main.c | 352 struct ecore_tunnel_info *tun = &edev->tunnel; in qed_fill_dev_info() local 356 if (tun->vxlan.tun_cls == ECORE_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info() 357 tun->vxlan.b_mode_enabled) in qed_fill_dev_info() 360 if (tun->l2_gre.b_mode_enabled && tun->ip_gre.b_mode_enabled && in qed_fill_dev_info() 361 tun->l2_gre.tun_cls == ECORE_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info() 362 tun->ip_gre.tun_cls == ECORE_TUNN_CLSS_MAC_VLAN) in qed_fill_dev_info() 365 if (tun->l2_geneve.b_mode_enabled && tun->ip_geneve.b_mode_enabled && in qed_fill_dev_info() 366 tun->l2_geneve.tun_cls == ECORE_TUNN_CLSS_MAC_VLAN && in qed_fill_dev_info() 367 tun->ip_geneve.tun_cls == ECORE_TUNN_CLSS_MAC_VLAN) in qed_fill_dev_info()
|
| /dpdk/lib/ipsec/ |
| H A D | sa.c | 200 if (prm->tun.next_proto == IPPROTO_IPIP) in fill_sa_type() 202 else if (prm->tun.next_proto == IPPROTO_IPV6) in fill_sa_type() 286 sa->proto = prm->tun.next_proto; in esp_inb_tun_init() 356 sa->proto = prm->tun.next_proto; in esp_outb_tun_init() 357 sa->hdr_len = prm->tun.hdr_len; in esp_outb_tun_init() 358 sa->hdr_l3_off = prm->tun.hdr_l3_off; in esp_outb_tun_init() 360 memcpy(sa->hdr, prm->tun.hdr, prm->tun.hdr_len); in esp_outb_tun_init() 365 &sa->hdr[prm->tun.hdr_len]; in esp_outb_tun_init() 578 uint32_t hlen = prm->tun.hdr_len; in rte_ipsec_sa_init()
|
| H A D | rte_ipsec_sa.h | 44 } tun; /**< tunnel mode related parameters */ member
|
| /dpdk/examples/ipsec-secgw/test/ |
| H A D | run_test.sh | 209 if [[ ${mixed} -ne 0 ]] && [[ "${i}" == tun* ]]; then 225 if [[ ${mixed} -ne 0 ]] && [[ "${i}" == tun* ]]; then
|
| /dpdk/drivers/net/bnxt/ |
| H A D | bnxt_rxr.c | 477 int ip6, tun, type; in bnxt_init_ptype_table() local 491 tun = !!(i & BNXT_PTYPE_TBL_TUN_MSK); in bnxt_init_ptype_table() 494 if (!tun && !ip6) in bnxt_init_ptype_table() 496 else if (!tun && ip6) in bnxt_init_ptype_table() 498 else if (tun && !ip6) in bnxt_init_ptype_table() 505 if (tun) in bnxt_init_ptype_table() 511 if (tun) in bnxt_init_ptype_table() 517 if (tun) in bnxt_init_ptype_table()
|
| /dpdk/drivers/net/ngbe/ |
| H A D | ngbe_ptypes.c | 22 #define TPTE(ptid, l2, l3, l4, tun, el2, el3, el4) \ argument 26 RTE_PTYPE_TUNNEL_##tun | \
|
| H A D | ngbe_ptypes.h | 99 u32 tun:4; /* tunnel protocol */ member
|
| H A D | ngbe_rxtx.c | 455 bool tun; in tx_desc_ol_flags_to_ptid() local 461 tun = !!(oflags & RTE_MBUF_F_TX_TUNNEL_MASK); in tx_desc_ol_flags_to_ptid() 475 ptype |= (tun ? RTE_PTYPE_INNER_L3_IPV4 : RTE_PTYPE_L3_IPV4); in tx_desc_ol_flags_to_ptid() 477 ptype |= (tun ? RTE_PTYPE_INNER_L3_IPV6 : RTE_PTYPE_L3_IPV6); in tx_desc_ol_flags_to_ptid() 482 ptype |= (tun ? RTE_PTYPE_INNER_L4_TCP : RTE_PTYPE_L4_TCP); in tx_desc_ol_flags_to_ptid() 485 ptype |= (tun ? RTE_PTYPE_INNER_L4_UDP : RTE_PTYPE_L4_UDP); in tx_desc_ol_flags_to_ptid() 488 ptype |= (tun ? RTE_PTYPE_INNER_L4_SCTP : RTE_PTYPE_L4_SCTP); in tx_desc_ol_flags_to_ptid() 493 ptype |= (tun ? RTE_PTYPE_INNER_L4_TCP : RTE_PTYPE_L4_TCP); in tx_desc_ol_flags_to_ptid()
|
| /dpdk/app/test/ |
| H A D | test_ipsec_perf.c | 173 prm->tun.hdr_len = sizeof(ipv4_outer); in fill_ipsec_param() 174 prm->tun.next_proto = IPPROTO_IPIP; in fill_ipsec_param() 175 prm->tun.hdr = &ipv4_outer; in fill_ipsec_param()
|
| H A D | test_ipsec.c | 710 prm->tun.hdr_len = sizeof(ipv4_outer); in fill_ipsec_param() 711 prm->tun.next_proto = IPPROTO_IPIP; in fill_ipsec_param() 712 prm->tun.hdr = &ipv4_outer; in fill_ipsec_param()
|
| /dpdk/drivers/common/cnxk/ |
| H A D | roc_nix_ops.c | 357 uint8_t tun[ROC_NIX_LSO_TUN_MAX]) in roc_nix_lso_fmt_get() 362 memcpy(tun, nix->lso_tun_idx, ROC_NIX_LSO_TUN_MAX); in roc_nix_lso_fmt_get()
|
| H A D | roc_nix.h | 766 uint8_t tun[ROC_NIX_LSO_TUN_MAX]);
|
| /dpdk/examples/ipsec-secgw/ |
| H A D | sa.c | 1466 prm->tun.hdr_len = sizeof(*v4); in fill_ipsec_sa_prm() 1467 prm->tun.next_proto = rc; in fill_ipsec_sa_prm() 1468 prm->tun.hdr = v4; in fill_ipsec_sa_prm() 1471 prm->tun.hdr_len = sizeof(*v6); in fill_ipsec_sa_prm() 1472 prm->tun.next_proto = rc; in fill_ipsec_sa_prm() 1473 prm->tun.hdr = v6; in fill_ipsec_sa_prm()
|
| /dpdk/drivers/net/cnxk/ |
| H A D | cnxk_ethdev.c | 978 uint8_t tun[ROC_NIX_LSO_TUN_MAX]; in nix_lso_tun_fmt_update() local 982 rc = roc_nix_lso_fmt_get(nix, udp_tun, tun); in nix_lso_tun_fmt_update() 986 dev->lso_tun_fmt = ((uint64_t)tun[ROC_NIX_LSO_TUN_V4V4] | in nix_lso_tun_fmt_update() 987 (uint64_t)tun[ROC_NIX_LSO_TUN_V4V6] << 8 | in nix_lso_tun_fmt_update() 988 (uint64_t)tun[ROC_NIX_LSO_TUN_V6V4] << 16 | in nix_lso_tun_fmt_update() 989 (uint64_t)tun[ROC_NIX_LSO_TUN_V6V6] << 24); in nix_lso_tun_fmt_update()
|
| /dpdk/drivers/net/txgbe/ |
| H A D | txgbe_ptypes.h | 129 u32 tun:4; /* tunnel protocol */ member
|
| H A D | txgbe_ptypes.c | 33 #define TPTE(ptid, l2, l3, l4, tun, el2, el3, el4) \ argument 37 RTE_PTYPE_TUNNEL_##tun | \
|
| H A D | txgbe_rxtx.c | 522 bool tun; in tx_desc_ol_flags_to_ptid() local 528 tun = !!(oflags & RTE_MBUF_F_TX_TUNNEL_MASK); in tx_desc_ol_flags_to_ptid() 542 ptype |= (tun ? RTE_PTYPE_INNER_L3_IPV4 : RTE_PTYPE_L3_IPV4); in tx_desc_ol_flags_to_ptid() 544 ptype |= (tun ? RTE_PTYPE_INNER_L3_IPV6 : RTE_PTYPE_L3_IPV6); in tx_desc_ol_flags_to_ptid() 549 ptype |= (tun ? RTE_PTYPE_INNER_L4_TCP : RTE_PTYPE_L4_TCP); in tx_desc_ol_flags_to_ptid() 552 ptype |= (tun ? RTE_PTYPE_INNER_L4_UDP : RTE_PTYPE_L4_UDP); in tx_desc_ol_flags_to_ptid() 555 ptype |= (tun ? RTE_PTYPE_INNER_L4_SCTP : RTE_PTYPE_L4_SCTP); in tx_desc_ol_flags_to_ptid() 560 ptype |= (tun ? RTE_PTYPE_INNER_L4_TCP : RTE_PTYPE_L4_TCP); in tx_desc_ol_flags_to_ptid()
|
| /dpdk/drivers/net/ice/base/ |
| H A D | ice_fdir.h | 313 u8 *pkt, bool frag, bool tun);
|
| H A D | ice_fdir.c | 3303 u8 *pkt, bool frag, bool tun) in ice_fdir_get_gen_prgm_pkt() argument 3349 if (!tun) { in ice_fdir_get_gen_prgm_pkt()
|