Lines Matching refs:set_tun
411 nfp_fl_set_tun(struct nfp_app *app, struct nfp_fl_set_tun *set_tun, in nfp_fl_set_tun() argument
451 set_tun->head.jump_id = NFP_FL_ACTION_OPCODE_SET_TUNNEL; in nfp_fl_set_tun()
452 set_tun->head.len_lw = act_size >> NFP_FL_LW_SIZ; in nfp_fl_set_tun()
459 set_tun->tun_type_index = cpu_to_be32(tmp_set_ip_tun_type_index); in nfp_fl_set_tun()
461 set_tun->tun_id = ip_tun->key.tun_id; in nfp_fl_set_tun()
464 set_tun->ttl = ip_tun->key.ttl; in nfp_fl_set_tun()
475 set_tun->ttl = ip6_dst_hoplimit(dst); in nfp_fl_set_tun()
478 set_tun->ttl = READ_ONCE(net->ipv6.devconf_all->hop_limit); in nfp_fl_set_tun()
496 set_tun->ttl = ip4_dst_hoplimit(&rt->dst); in nfp_fl_set_tun()
499 set_tun->ttl = READ_ONCE(net->ipv4.sysctl_ip_default_ttl); in nfp_fl_set_tun()
503 set_tun->tos = ip_tun->key.tos; in nfp_fl_set_tun()
504 set_tun->tun_flags = tun_flags; in nfp_fl_set_tun()
507 set_tun->tun_proto = htons(ETH_P_TEB); in nfp_fl_set_tun()
508 set_tun->tun_len = ip_tun->options_len / 4; in nfp_fl_set_tun()
1052 struct nfp_fl_set_tun *set_tun; in nfp_flower_loop_action() local
1140 set_tun = (void *)&nfp_fl->action_data[*a_len]; in nfp_flower_loop_action()
1141 err = nfp_fl_set_tun(app, set_tun, act, pre_tun, *tun_type, in nfp_flower_loop_action()