Home
last modified time | relevance | path

Searched refs:options_len (Results 1 – 18 of 18) sorted by relevance

/Linux-v5.10/include/net/
Ddst_metadata.h82 a->u.tun_info.options_len); in skb_metadata_dst_cmp()
103 tun_dst->u.tun_info.options_len = 0; in tun_rx_dst()
117 md_size = md_dst->u.tun_info.options_len; in tun_dst_unclone()
Dip_tunnels.h67 options_len) * BITS_PER_BYTE) - 1, 0)
74 u8 options_len; member
474 memcpy(to, info + 1, info->options_len); in ip_tunnel_info_opts_get()
481 info->options_len = len; in ip_tunnel_info_opts_set()
530 info->options_len = 0; in ip_tunnel_info_opts_set()
/Linux-v5.10/net/ipv4/
Dip_tunnel_core.c136 res = metadata_dst_alloc(src->options_len, METADATA_IP_TUNNEL, flags); in iptunnel_metadata_reply()
150 src->options_len, 0); in iptunnel_metadata_reply()
722 tun_info->options_len = opt_len; in ip_tun_build_state()
749 while (tun_info->options_len > offset) { in ip_tun_fill_encap_opts_geneve()
877 while (info->options_len > offset) { in ip_tun_opts_nlsize()
922 info_a->options_len != info_b->options_len || in ip_tun_cmp_encap()
924 ip_tunnel_info_opts(info_b), info_a->options_len); in ip_tun_cmp_encap()
1001 tun_info->options_len = opt_len; in ip6_tun_build_state()
Dip_gre.c335 info->options_len = sizeof(*md); in erspan_rcv()
534 if (tun_info->options_len < sizeof(*md)) in erspan_fb_xmit()
/Linux-v5.10/include/net/tc_act/
Dtc_tunnel_key.h77 size_t tun_size = sizeof(*tun) + tun->options_len; in tcf_tunnel_info_copy()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_geneve.c19 e->tun_info->options_len; in mlx5e_tc_tun_calc_hlen_geneve()
108 geneveh->opt_len = tun_info->options_len / 4; in mlx5e_gen_ip_tunnel_header_geneve()
/Linux-v5.10/drivers/net/
Dbareudp.c306 BAREUDP_IPV4_HLEN + info->options_len, false); in bareudp_xmit_skb()
321 BAREUDP_BASE_HLEN + info->options_len + sizeof(struct iphdr); in bareudp_xmit_skb()
367 skb_tunnel_check_pmtu(skb, dst, BAREUDP_IPV6_HLEN + info->options_len, in bareudp6_xmit_skb()
383 BAREUDP_BASE_HLEN + info->options_len + sizeof(struct iphdr); in bareudp6_xmit_skb()
Dgeneve.c726 geneveh->opt_len = info->options_len / 4; in geneve_build_header()
751 GENEVE_BASE_HLEN + info->options_len + ip_hdr_len; in geneve_build_skb()
760 gnvh = __skb_push(skb, sizeof(*gnvh) + info->options_len); in geneve_build_skb()
900 GENEVE_IPV4_HLEN + info->options_len, in geneve_xmit_skb()
986 GENEVE_IPV6_HLEN + info->options_len, in geneve6_xmit_skb()
1594 geneve_change_mtu(dev, ldev_mtu - info->options_len); in geneve_link_config()
Dvxlan.c1725 tun_dst->u.tun_info.options_len = sizeof(*md); in vxlan_parse_gbp_hdr()
2667 if (info->options_len < sizeof(*md)) in vxlan_xmit_one()
/Linux-v5.10/net/psample/
Dpsample.c219 int tun_opts_len = tun_info->options_len; in __psample_ip_tun_to_nlattr()
311 int tun_opts_len = tun_info->options_len; in psample_tunnel_meta_len()
/Linux-v5.10/net/openvswitch/
Dflow.c863 if (tun_info->options_len) { in ovs_flow_key_extract()
864 BUILD_BUG_ON((1 << (sizeof(tun_info->options_len) * in ovs_flow_key_extract()
868 ip_tunnel_info_opts_get(TUN_METADATA_OPTS(key, tun_info->options_len), in ovs_flow_key_extract()
870 key->tun_opts_len = tun_info->options_len; in ovs_flow_key_extract()
Dflow_netlink.c958 tun_info->options_len, in ovs_nla_put_tunnel_info()
3561 tun_info->options_len, in set_action_to_attr()
/Linux-v5.10/net/sched/
Dact_tunnel_key.c300 info->options_len = opts_len; in tunnel_key_opts_set()
570 int len = info->options_len; in tunnel_key_geneve_opts_dump()
655 if (!info->options_len) in tunnel_key_opts_dump()
/Linux-v5.10/drivers/net/ethernet/netronome/nfp/flower/
Daction.c343 opt_len = ip_tun->options_len; in nfp_fl_push_geneve_options()
421 if (ip_tun->options_len && in nfp_fl_set_tun()
490 set_tun->tun_len = ip_tun->options_len / 4; in nfp_fl_set_tun()
/Linux-v5.10/net/core/
Dflow_dissector.c376 if (info->options_len) { in skb_flow_dissect_tunnel_info()
377 enc_opt->len = info->options_len; in skb_flow_dissect_tunnel_info()
Dfilter.c4290 if (unlikely(size < info->options_len)) { in BPF_CALL_3()
4296 if (size > info->options_len) in BPF_CALL_3()
4297 memset(to + info->options_len, 0, size - info->options_len); in BPF_CALL_3()
4299 return info->options_len; in BPF_CALL_3()
/Linux-v5.10/net/ipv6/
Dip6_gre.c587 info->options_len = sizeof(*md); in ip6erspan_rcv()
998 if (tun_info->options_len < sizeof(*md)) in ip6erspan_tunnel_xmit()
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c3671 size_t tun_size = sizeof(*tun_info) + tun_info->options_len; in dup_tun_info()