Home
last modified time | relevance | path

Searched refs:tun_type (Results 1 – 20 of 20) sorted by relevance

/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Daction.c176 enum nfp_flower_tun_type tun_type, int *tun_out_cnt, in nfp_fl_output() argument
195 if (tun_type) { in nfp_fl_output()
197 if (!nfp_fl_netdev_is_tunnel_type(out_dev, tun_type)) { in nfp_fl_output()
210 output->port = cpu_to_be32(NFP_FL_PORT_TYPE_TUN | tun_type); in nfp_fl_output()
414 enum nfp_flower_tun_type tun_type, in nfp_fl_set_tun() argument
437 (tun_type != NFP_FL_TUNNEL_GENEVE || in nfp_fl_set_tun()
456 FIELD_PREP(NFP_FL_TUNNEL_TYPE, tun_type) | in nfp_fl_set_tun()
506 if (tun_type == NFP_FL_TUNNEL_GENEVE) { in nfp_fl_set_tun()
992 enum nfp_flower_tun_type *tun_type, int *tun_out_cnt, in nfp_flower_output_action() argument
1014 err = nfp_fl_output(app, output, act, nfp_fl, last, netdev, *tun_type, in nfp_flower_output_action()
[all …]
H A Dcmsg.h707 enum nfp_flower_tun_type tun_type) in nfp_fl_netdev_is_tunnel_type() argument
710 return tun_type == NFP_FL_TUNNEL_VXLAN; in nfp_fl_netdev_is_tunnel_type()
712 return tun_type == NFP_FL_TUNNEL_GRE; in nfp_fl_netdev_is_tunnel_type()
714 return tun_type == NFP_FL_TUNNEL_GENEVE; in nfp_fl_netdev_is_tunnel_type()
H A Dmatch.c73 bool mask_version, enum nfp_flower_tun_type tun_type, in nfp_flower_compile_port() argument
81 if (tun_type) { in nfp_flower_compile_port()
82 frame->in_port = cpu_to_be32(NFP_FL_PORT_TYPE_TUN | tun_type); in nfp_flower_compile_port()
541 enum nfp_flower_tun_type tun_type, in nfp_flower_compile_flow_match() argument
580 port_id, false, tun_type, extack); in nfp_flower_compile_flow_match()
586 port_id, true, tun_type, extack); in nfp_flower_compile_flow_match()
H A Doffload.c177 enum nfp_flower_tun_type *tun_type, bool ipv6, in nfp_flower_calc_udp_tun_layer() argument
184 *tun_type = NFP_FL_TUNNEL_VXLAN; in nfp_flower_calc_udp_tun_layer()
206 *tun_type = NFP_FL_TUNNEL_GENEVE; in nfp_flower_calc_udp_tun_layer()
242 enum nfp_flower_tun_type *tun_type, in nfp_flower_calculate_key_layers() argument
372 *tun_type = NFP_FL_TUNNEL_GRE; in nfp_flower_calculate_key_layers()
402 tun_type, ipv6_tun, in nfp_flower_calculate_key_layers()
410 if (!nfp_fl_netdev_is_tunnel_type(netdev, *tun_type)) { in nfp_flower_calculate_key_layers()
1336 enum nfp_flower_tun_type tun_type = NFP_FL_TUNNEL_NONE; in nfp_flower_add_offload() local
1362 &tun_type, extack); in nfp_flower_add_offload()
1373 flow_pay, tun_type, extack); in nfp_flower_add_offload()
H A Dmain.h566 bool mask_version, enum nfp_flower_tun_type tun_type,
614 enum nfp_flower_tun_type tun_type,
707 enum nfp_flower_tun_type *tun_type,
H A Dconntrack.c813 enum nfp_flower_tun_type tun_type = NFP_FL_TUNNEL_NONE; in nfp_fl_ct_add_offload() local
852 &tun_type, NULL); in nfp_fl_ct_add_offload()
896 port_id, false, tun_type, NULL); in nfp_fl_ct_add_offload()
900 port_id, true, tun_type, NULL); in nfp_fl_ct_add_offload()
/linux/net/netfilter/ipvs/
H A Dip_vs_xmit.c390 if (dest->tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GUE) { in __ip_vs_get_out_rt()
396 } else if (dest->tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GRE) { in __ip_vs_get_out_rt()
566 if (dest->tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GUE) { in __ip_vs_get_out_rt_v6()
572 } else if (dest->tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GRE) { in __ip_vs_get_out_rt_v6()
1150 int tun_type, gso_type; in ip_vs_tunnel_xmit() local
1171 tun_type = cp->dest->tun_type; in ip_vs_tunnel_xmit()
1174 if (tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GUE) { in ip_vs_tunnel_xmit()
1184 } else if (tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GRE) { in ip_vs_tunnel_xmit()
1204 if (tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GUE) { in ip_vs_tunnel_xmit()
1214 } else if (tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GRE) { in ip_vs_tunnel_xmit()
[all …]
H A Dip_vs_ctl.c571 switch (dest->tun_type) { in ip_vs_rs_hash()
992 udest->tun_type != dest->tun_type || in __ip_vs_update_dest()
997 dest->tun_type = udest->tun_type; in __ip_vs_update_dest()
1144 if (udest->tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GUE) { in ip_vs_add_dest()
1214 if (udest->tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GUE) { in ip_vs_edit_dest()
2687 udest->tun_type = IP_VS_CONN_F_TUNNEL_TYPE_IPIP; in ip_vs_copy_udest_compat()
3548 dest->tun_type) || in ip_vs_genl_fill_dest()
3691 udest->tun_type = nla_get_u8(nla_tun_type); in ip_vs_genl_parse_dest()
/linux/drivers/net/ethernet/sfc/
H A Dtc.h162 enum efx_encap_type tun_type; member
192 enum efx_encap_type tun_type; member
H A Dtc.c586 encap->tun_type = type; in efx_tc_flower_record_encap_match()
658 if (old->tun_type != type) { in efx_tc_flower_record_encap_match()
661 old->tun_type, type); in efx_tc_flower_record_encap_match()
1532 rule->lhs_act.tun_type = type; in efx_tc_flower_replace_foreign_lhs_ar()
1644 rule->lhs_act.tun_type = type; in efx_tc_flower_replace_foreign_lhs()
H A Dmae.c1475 rc = efx_mae_encap_type_to_mae_type(encap->tun_type); in efx_mae_register_encap_match()
1700 rc = efx_mae_encap_type_to_mae_type(act->tun_type); in efx_mae_insert_lhs_outer_rule()
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_sp_commands.c183 struct qed_tunn_update_type *tun_type) in __qed_set_ramrod_tunnel_param() argument
185 *p_tunn_cls = tun_type->tun_cls; in __qed_set_ramrod_tunnel_param()
190 struct qed_tunn_update_type *tun_type, in qed_set_ramrod_tunnel_param() argument
195 __qed_set_ramrod_tunnel_param(p_tunn_cls, tun_type); in qed_set_ramrod_tunnel_param()
/linux/samples/bpf/
H A Dtc_l2_redirect.sh15 local tun_type=$1
47 if [[ $tun_type == "ipip" ]]; then
/linux/drivers/net/ethernet/intel/ice/
H A Dice_switch.h203 enum ice_sw_tunnel_type tun_type; member
235 enum ice_sw_tunnel_type tun_type; member
H A Dice_switch.c4786 if (found && recp[i].tun_type == rinfo->tun_type && in ice_find_recp()
5050 recipe->tun_type = rm->tun_type; in bookkeep_recipe()
5226 switch (rinfo->tun_type) { in ice_get_compat_fv_bitmap()
5405 rm->tun_type = rinfo->tun_type; in ice_add_adv_recipe()
5560 enum ice_sw_tunnel_type tun_type) in ice_find_dummy_packet() argument
5566 switch (tun_type) { in ice_find_dummy_packet()
5771 ice_fill_adv_packet_tun(struct ice_hw *hw, enum ice_sw_tunnel_type tun_type, in ice_fill_adv_packet_tun() argument
5776 switch (tun_type) { in ice_fill_adv_packet_tun()
5846 first->tun_type == second->tun_type && in ice_rules_equal()
6089 profile = ice_find_dummy_packet(lkups, lkups_cnt, rinfo->tun_type); in ice_add_adv_rule()
[all …]
H A Dice_tc_lib.c392 rule_info->tun_type = ice_sw_type_from_tunnel(tc_fltr->tunnel_type); in ice_tc_fill_rules()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun.h120 u32 tun_type);
H A Dtc_tun_encap.c598 u32 tun_type) in mlx5e_tc_tun_encap_info_equal_options() argument
607 a_has_opts = test_bit(tun_type, a->ip_tun_key->tun_flags); in mlx5e_tc_tun_encap_info_equal_options()
608 b_has_opts = test_bit(tun_type, b->ip_tun_key->tun_flags); in mlx5e_tc_tun_encap_info_equal_options()
/linux/tools/testing/selftests/drivers/net/hw/
H A Dtso.py105 tun_type = tun_info[0]
107 ip(f"link add {tun_type}-ksft type {tun_type} {tun_arg} local {local_addr} remote {remote_addr} dev {cfg.ifname}")
108 defer(ip, f"link del {tun_type}-ksft")
109 ip(f"link set dev {tun_type}-ksft up")
110 ip(f"addr add {local_v4}/24 dev {tun_type}-ksft")
111 ip(f"addr add {local_v6}/64 dev {tun_type}-ksft")
113 ip(f"link add {tun_type}-ksft type {tun_type} {tun_arg} local {remote_addr} remote {local_addr} dev {cfg.remote_ifname}",
115 defer(ip, f"link del {tun_type}
[all...]
/linux/include/net/
H A Dip_vs.h665 u16 tun_type; /* tunnel type */ member
728 __u16 tun_type; /* tunnel type */ member