Home
last modified time | relevance | path

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

/openbmc/linux/include/net/
H A Dip_tunnels.h76 options_len) * BITS_PER_BYTE) - 1, 0)
90 u8 options_len; member
534 memcpy(to, info + 1, info->options_len); in ip_tunnel_info_opts_get()
541 info->options_len = len; in ip_tunnel_info_opts_set()
590 info->options_len = 0; in ip_tunnel_info_opts_set()
H A Ddst_metadata.h120 a->u.tun_info.options_len); in skb_metadata_dst_cmp()
147 tun_dst->u.tun_info.options_len = 0; in tun_rx_dst()
161 md_size = md_dst->u.tun_info.options_len; in tun_dst_unclone()
/openbmc/linux/net/ipv4/
H A 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()
714 tun_info->options_len = opt_len; in ip_tun_build_state()
741 while (tun_info->options_len > offset) { in ip_tun_fill_encap_opts_geneve()
869 while (info->options_len > offset) { in ip_tun_opts_nlsize()
914 info_a->options_len != info_b->options_len || in ip_tun_cmp_encap()
916 ip_tunnel_info_opts(info_b), info_a->options_len); in ip_tun_cmp_encap()
993 tun_info->options_len = opt_len; in ip6_tun_build_state()
H A Dip_gre.c342 info->options_len = sizeof(*md); in erspan_rcv()
541 if (tun_info->options_len < sizeof(*md)) in erspan_fb_xmit()
/openbmc/linux/include/net/tc_act/
H A Dtc_tunnel_key.h77 size_t tun_size = sizeof(*tun) + tun->options_len; in tcf_tunnel_info_copy()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A 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()
H A Dtc_tun_vxlan.c94 e->tun_info->options_len != sizeof(*md)) in mlx5e_gen_ip_tunnel_header_vxlan()
H A Dtc_tun_encap.c613 return a_info->options_len == b_info->options_len && in mlx5e_tc_tun_encap_info_equal_options()
616 a_info->options_len); in mlx5e_tc_tun_encap_info_equal_options()
686 size_t tun_size = sizeof(*tun_info) + tun_info->options_len; in mlx5e_dup_tun_info()
/openbmc/linux/drivers/net/
H A Dbareudp.c335 BAREUDP_IPV4_HLEN + info->options_len, false); in bareudp_xmit_skb()
350 BAREUDP_BASE_HLEN + info->options_len + sizeof(struct iphdr); in bareudp_xmit_skb()
399 skb_tunnel_check_pmtu(skb, dst, BAREUDP_IPV6_HLEN + info->options_len, in bareudp6_xmit_skb()
415 BAREUDP_BASE_HLEN + info->options_len + sizeof(struct ipv6hdr); in bareudp6_xmit_skb()
H A Dgeneve.c755 geneveh->opt_len = info->options_len / 4; in geneve_build_header()
782 GENEVE_BASE_HLEN + info->options_len + ip_hdr_len; in geneve_build_skb()
791 gnvh = __skb_push(skb, sizeof(*gnvh) + info->options_len); in geneve_build_skb()
940 GENEVE_IPV4_HLEN + info->options_len, in geneve_xmit_skb()
1039 GENEVE_IPV6_HLEN + info->options_len, in geneve6_xmit_skb()
1675 geneve_change_mtu(dev, ldev_mtu - info->options_len); in geneve_link_config()
/openbmc/linux/net/openvswitch/
H A Dflow.c1016 if (tun_info->options_len) { in ovs_flow_key_extract()
1017 BUILD_BUG_ON((1 << (sizeof(tun_info->options_len) * in ovs_flow_key_extract()
1021 ip_tunnel_info_opts_get(TUN_METADATA_OPTS(key, tun_info->options_len), in ovs_flow_key_extract()
1023 key->tun_opts_len = tun_info->options_len; in ovs_flow_key_extract()
H A Dflow_netlink.c971 tun_info->options_len, in ovs_nla_put_tunnel_info()
3714 tun_info->options_len, in set_action_to_attr()
/openbmc/linux/net/psample/
H A Dpsample.c222 int tun_opts_len = tun_info->options_len; in __psample_ip_tun_to_nlattr()
314 int tun_opts_len = tun_info->options_len; in psample_tunnel_meta_len()
/openbmc/linux/net/sched/
H A Dact_tunnel_key.c301 info->options_len = opts_len; in tunnel_key_opts_set()
574 int len = info->options_len; in tunnel_key_geneve_opts_dump()
659 if (!info->options_len) in tunnel_key_opts_dump()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Daction.c345 opt_len = ip_tun->options_len; in nfp_fl_push_geneve_options()
423 if (ip_tun->options_len && in nfp_fl_set_tun()
493 set_tun->tun_len = ip_tun->options_len / 4; in nfp_fl_set_tun()
H A Dconntrack.c1556 size_t tun_size = sizeof(*tun) + tun->options_len; in nfp_fl_ct_add_flow()
/openbmc/linux/net/core/
H A Dflow_dissector.c463 if (info->options_len) { in skb_flow_dissect_tunnel_info()
464 enc_opt->len = info->options_len; in skb_flow_dissect_tunnel_info()
H A Dfilter.c4722 if (unlikely(size < info->options_len)) { in BPF_CALL_3()
4728 if (size > info->options_len) in BPF_CALL_3()
4729 memset(to + info->options_len, 0, size - info->options_len); in BPF_CALL_3()
4731 return info->options_len; in BPF_CALL_3()
/openbmc/linux/drivers/net/ethernet/sfc/
H A Dtc_encap_actions.c618 if (info->options_len) { in efx_tc_flower_create_encap_md()
/openbmc/linux/net/ipv6/
H A Dip6_gre.c584 info->options_len = sizeof(*md); in ip6erspan_rcv()
1012 if (tun_info->options_len < sizeof(*md)) in ip6erspan_tunnel_xmit()
/openbmc/linux/drivers/net/vxlan/
H A Dvxlan_core.c1592 tun_dst->u.tun_info.options_len = sizeof(*md); in vxlan_parse_gbp_hdr()
2524 if (info->options_len < sizeof(*md)) in vxlan_xmit_one()