Home
last modified time | relevance | path

Searched refs:tun (Results 1 – 22 of 22) sorted by relevance

/dpdk/app/test-pmd/
H A Dcmd_flex_item.c47 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 Dtestpmd.h978 port_flow_locate_tunnel(uint16_t port_id, struct rte_flow_tunnel *tun);
H A Dconfig.c1375 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 Dqede_main.c352 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 Dsa.c200 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 Drte_ipsec_sa.h44 } tun; /**< tunnel mode related parameters */ member
/dpdk/examples/ipsec-secgw/test/
H A Drun_test.sh209 if [[ ${mixed} -ne 0 ]] && [[ "${i}" == tun* ]]; then
225 if [[ ${mixed} -ne 0 ]] && [[ "${i}" == tun* ]]; then
/dpdk/drivers/net/bnxt/
H A Dbnxt_rxr.c477 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 Dngbe_ptypes.c22 #define TPTE(ptid, l2, l3, l4, tun, el2, el3, el4) \ argument
26 RTE_PTYPE_TUNNEL_##tun | \
H A Dngbe_ptypes.h99 u32 tun:4; /* tunnel protocol */ member
H A Dngbe_rxtx.c455 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 Dtest_ipsec_perf.c173 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 Dtest_ipsec.c710 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 Droc_nix_ops.c357 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 Droc_nix.h766 uint8_t tun[ROC_NIX_LSO_TUN_MAX]);
/dpdk/examples/ipsec-secgw/
H A Dsa.c1466 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 Dcnxk_ethdev.c978 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 Dtxgbe_ptypes.h129 u32 tun:4; /* tunnel protocol */ member
H A Dtxgbe_ptypes.c33 #define TPTE(ptid, l2, l3, l4, tun, el2, el3, el4) \ argument
37 RTE_PTYPE_TUNNEL_##tun | \
H A Dtxgbe_rxtx.c522 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 Dice_fdir.h313 u8 *pkt, bool frag, bool tun);
H A Dice_fdir.c3303 u8 *pkt, bool frag, bool tun) in ice_fdir_get_gen_prgm_pkt() argument
3349 if (!tun) { in ice_fdir_get_gen_prgm_pkt()