Home
last modified time | relevance | path

Searched refs:opts_len (Results 1 – 5 of 5) sorted by relevance

/linux-5.19.10/net/sched/
Dact_tunnel_key.c221 int err, rem, opt_len, len = nla_len(nla), opts_len = 0, type = 0; in tunnel_key_copy_opts() local
240 opts_len += opt_len; in tunnel_key_copy_opts()
241 if (opts_len > IP_TUNNEL_OPTS_MAX) { in tunnel_key_copy_opts()
260 opts_len += opt_len; in tunnel_key_copy_opts()
272 opts_len += opt_len; in tunnel_key_copy_opts()
278 if (!opts_len) { in tunnel_key_copy_opts()
288 return opts_len; in tunnel_key_copy_opts()
298 int opts_len, struct netlink_ext_ack *extack) in tunnel_key_opts_set() argument
300 info->options_len = opts_len; in tunnel_key_opts_set()
306 opts_len, extack); in tunnel_key_opts_set()
[all …]
/linux-5.19.10/net/ipv4/
Dip_tunnel_core.c470 struct ip_tunnel_info *info, int opts_len, in ip_tun_parse_opts_geneve() argument
492 struct geneve_opt *opt = ip_tunnel_info_opts(info) + opts_len; in ip_tun_parse_opts_geneve()
507 struct ip_tunnel_info *info, int opts_len, in ip_tun_parse_opts_vxlan() argument
523 ip_tunnel_info_opts(info) + opts_len; in ip_tun_parse_opts_vxlan()
535 struct ip_tunnel_info *info, int opts_len, in ip_tun_parse_opts_erspan() argument
564 ip_tunnel_info_opts(info) + opts_len; in ip_tun_parse_opts_erspan()
586 int err, rem, opt_len, opts_len = 0; in ip_tun_parse_opts() local
603 opt_len = ip_tun_parse_opts_geneve(nla, info, opts_len, in ip_tun_parse_opts()
607 opts_len += opt_len; in ip_tun_parse_opts()
608 if (opts_len > IP_TUNNEL_OPTS_MAX) in ip_tun_parse_opts()
[all …]
/linux-5.19.10/drivers/infiniband/hw/irdma/
Dcm.c312 u32 opts_len = 0; in irdma_form_ah_cm_frame() local
330 opts_len = (u32)options->size; in irdma_form_ah_cm_frame()
338 pktsize = sizeof(*tcph) + opts_len + hdr_len + pd_len; in irdma_form_ah_cm_frame()
343 sqbuf->tcphlen = sizeof(*tcph) + opts_len; in irdma_form_ah_cm_frame()
376 tcph->doff = (u16)((sizeof(*tcph) + opts_len + 3) >> 2); in irdma_form_ah_cm_frame()
381 if (opts_len) { in irdma_form_ah_cm_frame()
382 memcpy(buf, options->addr, opts_len); in irdma_form_ah_cm_frame()
383 buf += opts_len; in irdma_form_ah_cm_frame()
426 u32 opts_len = 0; in irdma_form_uda_cm_frame() local
439 opts_len = (u32)options->size; in irdma_form_uda_cm_frame()
[all …]
/linux-5.19.10/drivers/net/
Dgeneve.c357 int opts_len; in geneve_udp_encap_recv() local
389 opts_len = geneveh->opt_len * 4; in geneve_udp_encap_recv()
390 if (iptunnel_pull_header(skb, GENEVE_BASE_HLEN + opts_len, inner_proto, in geneve_udp_encap_recv()
/linux-5.19.10/net/openvswitch/
Dflow_netlink.c2725 int opts_len = key->tun_opts_len; in validate_geneve_opts() local
2729 while (opts_len > 0) { in validate_geneve_opts()
2732 if (opts_len < sizeof(*option)) in validate_geneve_opts()
2736 if (len > opts_len) in validate_geneve_opts()
2742 opts_len -= len; in validate_geneve_opts()