Home
last modified time | relevance | path

Searched refs:tun_type (Results 1 - 25 of 30) sorted by relevance

12

/kernel/linux/linux-5.10/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()
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()
401 enum nfp_flower_tun_type tun_type, in nfp_fl_set_tun()
422 (tun_type != NFP_FL_TUNNEL_GENEVE || in nfp_fl_set_tun()
433 FIELD_PREP(NFP_FL_TUNNEL_TYPE, tun_type) | in nfp_fl_set_tun()
488 if (tun_type == NFP_FL_TUNNEL_GENEVE) { in nfp_fl_set_tun()
930 enum nfp_flower_tun_type *tun_type, int *tun_out_cnt, in nfp_flower_output_action()
952 err = nfp_fl_output(app, output, act, nfp_fl, last, netdev, *tun_type, in nfp_flower_output_action()
172 nfp_fl_output(struct nfp_app *app, struct nfp_fl_output *output, const struct flow_action_entry *act, struct nfp_fl_payload *nfp_flow, bool last, struct net_device *in_dev, enum nfp_flower_tun_type tun_type, int *tun_out_cnt, bool pkt_host, struct netlink_ext_ack *extack) nfp_fl_output() argument
398 nfp_fl_set_tun(struct nfp_app *app, struct nfp_fl_set_tun *set_tun, const struct flow_action_entry *act, struct nfp_fl_pre_tunnel *pre_tun, enum nfp_flower_tun_type tun_type, struct net_device *netdev, struct netlink_ext_ack *extack) nfp_fl_set_tun() argument
926 nfp_flower_output_action(struct nfp_app *app, const struct flow_action_entry *act, struct nfp_fl_payload *nfp_fl, int *a_len, struct net_device *netdev, bool last, enum nfp_flower_tun_type *tun_type, int *tun_out_cnt, int *out_cnt, u32 *csum_updated, bool pkt_host, struct netlink_ext_ack *extack) nfp_flower_output_action() argument
979 nfp_flower_loop_action(struct nfp_app *app, const struct flow_action_entry *act, struct flow_cls_offload *flow, struct nfp_fl_payload *nfp_fl, int *a_len, struct net_device *netdev, enum nfp_flower_tun_type *tun_type, int *tun_out_cnt, int *out_cnt, u32 *csum_updated, struct nfp_flower_pedit_acts *set_act, bool *pkt_host, struct netlink_ext_ack *extack, int act_idx) nfp_flower_loop_action() argument
1205 enum nfp_flower_tun_type tun_type; nfp_flower_compile_action() local
[all...]
H A Dmatch.c56 bool mask_version, enum nfp_flower_tun_type tun_type, in nfp_flower_compile_port()
64 if (tun_type) { in nfp_flower_compile_port()
65 frame->in_port = cpu_to_be32(NFP_FL_PORT_TYPE_TUN | tun_type); in nfp_flower_compile_port()
476 enum nfp_flower_tun_type tun_type, in nfp_flower_compile_flow_match()
516 port_id, false, tun_type, extack); in nfp_flower_compile_flow_match()
522 port_id, true, tun_type, extack); in nfp_flower_compile_flow_match()
55 nfp_flower_compile_port(struct nfp_flower_in_port *frame, u32 cmsg_port, bool mask_version, enum nfp_flower_tun_type tun_type, struct netlink_ext_ack *extack) nfp_flower_compile_port() argument
471 nfp_flower_compile_flow_match(struct nfp_app *app, struct flow_cls_offload *flow, struct nfp_fl_key_ls *key_ls, struct net_device *netdev, struct nfp_fl_payload *nfp_flow, enum nfp_flower_tun_type tun_type, struct netlink_ext_ack *extack) nfp_flower_compile_flow_match() argument
H A Dcmsg.h702 enum nfp_flower_tun_type tun_type) in nfp_fl_netdev_is_tunnel_type()
705 return tun_type == NFP_FL_TUNNEL_VXLAN; in nfp_fl_netdev_is_tunnel_type()
707 return tun_type == NFP_FL_TUNNEL_GRE; in nfp_fl_netdev_is_tunnel_type()
709 return tun_type == NFP_FL_TUNNEL_GENEVE; in nfp_fl_netdev_is_tunnel_type()
701 nfp_fl_netdev_is_tunnel_type(struct net_device *netdev, enum nfp_flower_tun_type tun_type) nfp_fl_netdev_is_tunnel_type() argument
H A Doffload.c178 enum nfp_flower_tun_type *tun_type, bool ipv6, in nfp_flower_calc_udp_tun_layer()
185 *tun_type = NFP_FL_TUNNEL_VXLAN; in nfp_flower_calc_udp_tun_layer()
207 *tun_type = NFP_FL_TUNNEL_GENEVE; in nfp_flower_calc_udp_tun_layer()
243 enum nfp_flower_tun_type *tun_type, in nfp_flower_calculate_key_layers()
370 *tun_type = NFP_FL_TUNNEL_GRE; in nfp_flower_calculate_key_layers()
400 tun_type, ipv6_tun, in nfp_flower_calculate_key_layers()
408 if (!nfp_fl_netdev_is_tunnel_type(netdev, *tun_type)) { in nfp_flower_calculate_key_layers()
1293 enum nfp_flower_tun_type tun_type = NFP_FL_TUNNEL_NONE; in nfp_flower_add_offload() local
1310 &tun_type, extack); in nfp_flower_add_offload()
1321 flow_pay, tun_type, extac in nfp_flower_add_offload()
174 nfp_flower_calc_udp_tun_layer(struct flow_dissector_key_ports *enc_ports, struct flow_dissector_key_enc_opts *enc_op, u32 *key_layer_two, u8 *key_layer, int *key_size, struct nfp_flower_priv *priv, enum nfp_flower_tun_type *tun_type, bool ipv6, struct netlink_ext_ack *extack) nfp_flower_calc_udp_tun_layer() argument
239 nfp_flower_calculate_key_layers(struct nfp_app *app, struct net_device *netdev, struct nfp_fl_key_ls *ret_key_ls, struct flow_cls_offload *flow, enum nfp_flower_tun_type *tun_type, struct netlink_ext_ack *extack) nfp_flower_calculate_key_layers() argument
[all...]
H A Dmain.h413 enum nfp_flower_tun_type tun_type,
/kernel/linux/linux-6.6/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()
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()
403 enum nfp_flower_tun_type tun_type, in nfp_fl_set_tun()
424 (tun_type != NFP_FL_TUNNEL_GENEVE || in nfp_fl_set_tun()
441 FIELD_PREP(NFP_FL_TUNNEL_TYPE, tun_type) | in nfp_fl_set_tun()
491 if (tun_type == NFP_FL_TUNNEL_GENEVE) { in nfp_fl_set_tun()
977 enum nfp_flower_tun_type *tun_type, int *tun_out_cnt, in nfp_flower_output_action()
999 err = nfp_fl_output(app, output, act, nfp_fl, last, netdev, *tun_type, in nfp_flower_output_action()
172 nfp_fl_output(struct nfp_app *app, struct nfp_fl_output *output, const struct flow_action_entry *act, struct nfp_fl_payload *nfp_flow, bool last, struct net_device *in_dev, enum nfp_flower_tun_type tun_type, int *tun_out_cnt, bool pkt_host, struct netlink_ext_ack *extack) nfp_fl_output() argument
400 nfp_fl_set_tun(struct nfp_app *app, struct nfp_fl_set_tun *set_tun, const struct flow_action_entry *act, struct nfp_fl_pre_tunnel *pre_tun, enum nfp_flower_tun_type tun_type, struct net_device *netdev, struct netlink_ext_ack *extack) nfp_fl_set_tun() argument
973 nfp_flower_output_action(struct nfp_app *app, const struct flow_action_entry *act, struct nfp_fl_payload *nfp_fl, int *a_len, struct net_device *netdev, bool last, enum nfp_flower_tun_type *tun_type, int *tun_out_cnt, int *out_cnt, u32 *csum_updated, bool pkt_host, struct netlink_ext_ack *extack) nfp_flower_output_action() argument
1026 nfp_flower_loop_action(struct nfp_app *app, const struct flow_action_entry *act, struct flow_rule *rule, struct nfp_fl_payload *nfp_fl, int *a_len, struct net_device *netdev, enum nfp_flower_tun_type *tun_type, int *tun_out_cnt, int *out_cnt, u32 *csum_updated, struct nfp_flower_pedit_acts *set_act, bool *pkt_host, struct netlink_ext_ack *extack, int act_idx) nfp_flower_loop_action() argument
1265 enum nfp_flower_tun_type tun_type; nfp_flower_compile_action() local
[all...]
H A Dcmsg.h707 enum nfp_flower_tun_type tun_type) in nfp_fl_netdev_is_tunnel_type()
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()
706 nfp_fl_netdev_is_tunnel_type(struct net_device *netdev, enum nfp_flower_tun_type tun_type) nfp_fl_netdev_is_tunnel_type() argument
H A Dmatch.c73 bool mask_version, enum nfp_flower_tun_type tun_type, in nfp_flower_compile_port()
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()
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()
72 nfp_flower_compile_port(struct nfp_flower_in_port *frame, u32 cmsg_port, bool mask_version, enum nfp_flower_tun_type tun_type, struct netlink_ext_ack *extack) nfp_flower_compile_port() argument
536 nfp_flower_compile_flow_match(struct nfp_app *app, struct flow_rule *rule, struct nfp_fl_key_ls *key_ls, struct net_device *netdev, struct nfp_fl_payload *nfp_flow, enum nfp_flower_tun_type tun_type, struct netlink_ext_ack *extack) nfp_flower_compile_flow_match() argument
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 Doffload.c177 enum nfp_flower_tun_type *tun_type, bool ipv6, in nfp_flower_calc_udp_tun_layer()
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()
368 *tun_type = NFP_FL_TUNNEL_GRE; in nfp_flower_calculate_key_layers()
398 tun_type, ipv6_tun, in nfp_flower_calculate_key_layers()
406 if (!nfp_fl_netdev_is_tunnel_type(netdev, *tun_type)) { in nfp_flower_calculate_key_layers()
1332 enum nfp_flower_tun_type tun_type = NFP_FL_TUNNEL_NONE; in nfp_flower_add_offload() local
1358 &tun_type, extack); in nfp_flower_add_offload()
1369 flow_pay, tun_type, extac in nfp_flower_add_offload()
173 nfp_flower_calc_udp_tun_layer(struct flow_dissector_key_ports *enc_ports, struct flow_dissector_key_enc_opts *enc_op, u32 *key_layer_two, u8 *key_layer, int *key_size, struct nfp_flower_priv *priv, enum nfp_flower_tun_type *tun_type, bool ipv6, struct netlink_ext_ack *extack) nfp_flower_calc_udp_tun_layer() argument
238 nfp_flower_calculate_key_layers(struct nfp_app *app, struct net_device *netdev, struct nfp_fl_key_ls *ret_key_ls, struct flow_rule *rule, enum nfp_flower_tun_type *tun_type, struct netlink_ext_ack *extack) nfp_flower_calculate_key_layers() argument
[all...]
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()
/kernel/linux/linux-5.10/net/netfilter/ipvs/
H A Dip_vs_xmit.c386 if (dest->tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GUE) { in __ip_vs_get_out_rt()
392 } else if (dest->tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GRE) { in __ip_vs_get_out_rt()
549 if (dest->tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GUE) { in __ip_vs_get_out_rt_v6()
555 } else if (dest->tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GRE) { in __ip_vs_get_out_rt_v6()
1149 int tun_type, gso_type; in ip_vs_tunnel_xmit() local
1172 tun_type = cp->dest->tun_type; in ip_vs_tunnel_xmit()
1175 if (tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GUE) { in ip_vs_tunnel_xmit()
1185 } else if (tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GRE) { in ip_vs_tunnel_xmit()
1205 if (tun_type in ip_vs_tunnel_xmit()
1299 int tun_type, gso_type; ip_vs_tunnel_xmit_v6() local
[all...]
H A Dip_vs_ctl.c534 switch (dest->tun_type) { in ip_vs_rs_hash()
896 udest->tun_type != dest->tun_type || in __ip_vs_update_dest()
901 dest->tun_type = udest->tun_type; in __ip_vs_update_dest()
1058 if (udest->tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GUE) { in ip_vs_add_dest()
1129 if (udest->tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GUE) { in ip_vs_edit_dest()
2453 udest->tun_type = IP_VS_CONN_F_TUNNEL_TYPE_IPIP; in ip_vs_copy_udest_compat()
3309 dest->tun_type) || in ip_vs_genl_fill_dest()
3455 udest->tun_type in ip_vs_genl_parse_dest()
[all...]
H A Dip_vs_core.c1583 if (dest->tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GUE) { in ipvs_udp_decap()
1617 if (dest->tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GRE) { in ipvs_gre_decap()
1708 if (!dest || dest->tun_type != IP_VS_CONN_F_TUNNEL_TYPE_IPIP) in ip_vs_in_icmp()
/kernel/linux/linux-6.6/net/netfilter/ipvs/
H A Dip_vs_xmit.c386 if (dest->tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GUE) { in __ip_vs_get_out_rt()
392 } else if (dest->tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GRE) { in __ip_vs_get_out_rt()
549 if (dest->tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GUE) { in __ip_vs_get_out_rt_v6()
555 } else if (dest->tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GRE) { in __ip_vs_get_out_rt_v6()
1133 int tun_type, gso_type; in ip_vs_tunnel_xmit() local
1154 tun_type = cp->dest->tun_type; in ip_vs_tunnel_xmit()
1157 if (tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GUE) { in ip_vs_tunnel_xmit()
1167 } else if (tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GRE) { in ip_vs_tunnel_xmit()
1187 if (tun_type in ip_vs_tunnel_xmit()
1277 int tun_type, gso_type; ip_vs_tunnel_xmit_v6() local
[all...]
H A Dip_vs_ctl.c572 switch (dest->tun_type) { in ip_vs_rs_hash()
993 udest->tun_type != dest->tun_type || in __ip_vs_update_dest()
998 dest->tun_type = udest->tun_type; in __ip_vs_update_dest()
1145 if (udest->tun_type == IP_VS_CONN_F_TUNNEL_TYPE_GUE) { in ip_vs_add_dest()
1215 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()
3694 udest->tun_type in ip_vs_genl_parse_dest()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
H A Dqed_sp_commands.c181 struct qed_tunn_update_type *tun_type) in __qed_set_ramrod_tunnel_param()
183 *p_tunn_cls = tun_type->tun_cls; in __qed_set_ramrod_tunnel_param()
188 struct qed_tunn_update_type *tun_type, in qed_set_ramrod_tunnel_param()
193 __qed_set_ramrod_tunnel_param(p_tunn_cls, tun_type); in qed_set_ramrod_tunnel_param()
180 __qed_set_ramrod_tunnel_param(u8 *p_tunn_cls, struct qed_tunn_update_type *tun_type) __qed_set_ramrod_tunnel_param() argument
187 qed_set_ramrod_tunnel_param(u8 *p_tunn_cls, struct qed_tunn_update_type *tun_type, u8 *p_update_port, __le16 *p_port, struct qed_tunn_update_udp_port *p_udp_port) qed_set_ramrod_tunnel_param() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qed/
H A Dqed_sp_commands.c183 struct qed_tunn_update_type *tun_type) in __qed_set_ramrod_tunnel_param()
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()
195 __qed_set_ramrod_tunnel_param(p_tunn_cls, tun_type); in qed_set_ramrod_tunnel_param()
182 __qed_set_ramrod_tunnel_param(u8 *p_tunn_cls, struct qed_tunn_update_type *tun_type) __qed_set_ramrod_tunnel_param() argument
189 qed_set_ramrod_tunnel_param(u8 *p_tunn_cls, struct qed_tunn_update_type *tun_type, u8 *p_update_port, __le16 *p_port, struct qed_tunn_update_udp_port *p_udp_port) qed_set_ramrod_tunnel_param() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/
H A Dice_switch.h200 enum ice_sw_tunnel_type tun_type; member
244 enum ice_sw_tunnel_type tun_type; member
H A Dice_switch.c4684 if (found && recp[i].tun_type == rinfo->tun_type && in ice_find_recp()
5229 recp->tun_type = rm->tun_type; in ice_add_sw_recipe()
5290 switch (rinfo->tun_type) { in ice_get_compat_fv_bitmap()
5423 rm->tun_type = rinfo->tun_type; in ice_add_adv_recipe()
5566 * @tun_type: tunnel type
5572 enum ice_sw_tunnel_type tun_type) in ice_find_dummy_packet()
5578 switch (tun_type) { in ice_find_dummy_packet()
5571 ice_find_dummy_packet(struct ice_adv_lkup_elem *lkups, u16 lkups_cnt, enum ice_sw_tunnel_type tun_type) ice_find_dummy_packet() argument
5777 ice_fill_adv_packet_tun(struct ice_hw *hw, enum ice_sw_tunnel_type tun_type, u8 *pkt, const struct ice_dummy_pkt_offsets *offsets) ice_fill_adv_packet_tun() argument
[all...]
H A Dice_eswitch.c44 rule_info.tun_type = ICE_SW_TUN_AND_NON_TUN; in ice_eswitch_add_vf_sp_rule()
/kernel/linux/linux-5.10/samples/bpf/
H A Dtc_l2_redirect.sh14 local tun_type=$1
46 if [[ $tun_type == "ipip" ]]; then
/kernel/linux/linux-6.6/samples/bpf/
H A Dtc_l2_redirect.sh15 local tun_type=$1
47 if [[ $tun_type == "ipip" ]]; then
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/
H A Dtc.h156 enum efx_encap_type tun_type; member
/kernel/linux/linux-5.10/include/net/
H A Dip_vs.h604 u16 tun_type; /* tunnel type */ member
667 __u16 tun_type; /* tunnel type */ member

Completed in 64 milliseconds

12