Lines Matching refs:nla_len

488 		if (!check_attr_len(nla_len(nla), expected_len)) {  in __parse_flow_nlattrs()
490 type, nla_len(nla), expected_len); in __parse_flow_nlattrs()
494 if (!nz || !is_all_zero(nla_data(nla), nla_len(nla))) { in __parse_flow_nlattrs()
527 if (nla_len(a) > sizeof(match->key->tun_opts)) { in genev_tun_opt_from_nlattr()
529 nla_len(a), sizeof(match->key->tun_opts)); in genev_tun_opt_from_nlattr()
533 if (nla_len(a) % 4 != 0) { in genev_tun_opt_from_nlattr()
535 nla_len(a)); in genev_tun_opt_from_nlattr()
544 SW_FLOW_KEY_PUT(match, tun_opts_len, nla_len(a), in genev_tun_opt_from_nlattr()
557 if (match->key->tun_opts_len != nla_len(a)) { in genev_tun_opt_from_nlattr()
559 match->key->tun_opts_len, nla_len(a)); in genev_tun_opt_from_nlattr()
566 opt_key_offset = TUN_METADATA_OFFSET(nla_len(a)); in genev_tun_opt_from_nlattr()
568 nla_len(a), is_mask); in genev_tun_opt_from_nlattr()
593 if (!check_attr_len(nla_len(a), in vxlan_tun_opt_from_nlattr()
596 type, nla_len(a), in vxlan_tun_opt_from_nlattr()
637 if (nla_len(a) > sizeof(match->key->tun_opts)) { in erspan_tun_opt_from_nlattr()
639 nla_len(a), sizeof(match->key->tun_opts)); in erspan_tun_opt_from_nlattr()
649 opt_key_offset = TUN_METADATA_OFFSET(nla_len(a)); in erspan_tun_opt_from_nlattr()
651 nla_len(a), is_mask); in erspan_tun_opt_from_nlattr()
676 if (!check_attr_len(nla_len(a), in ip_tun_from_nlattr()
679 type, nla_len(a), ovs_tunnel_key_lens[type].len); in ip_tun_from_nlattr()
1012 } else if (nla_len(a[OVS_KEY_ATTR_ENCAP])) { in validate_vlan_from_nlattrs()
1311 mdlen = nla_len(a); in nsh_hdr_from_nlattr()
1318 mdlen = nla_len(a); in nsh_hdr_from_nlattr()
1401 if (!check_attr_len(nla_len(a), in nsh_key_put_from_nlattr()
1407 nla_len(a), in nsh_key_put_from_nlattr()
1445 mdlen = nla_len(a); in nsh_key_put_from_nlattr()
1637 hdr_len = nla_len(a[OVS_KEY_ATTR_MPLS]); in ovs_key_from_nlattrs()
1747 memset(nla_data(nla), val, nla_len(nla)); in nlattr_set()
1811 nla_total_size(nla_len(nla_key)), in ovs_nla_get_match()
1861 len = nla_len(attr); in get_ufid_len()
1864 nla_len(attr), MAX_UFID_LENGTH); in get_ufid_len()
2387 a->nla_len = nla_attr_size(len); in __add_action()
2391 memset((unsigned char *) a + a->nla_len, 0, nla_padlen(len)); in __add_action()
2425 a->nla_len = sfa->actions_len - st_offset; in add_nested_action_end()
2457 if (!probability || nla_len(probability) != sizeof(u32)) in validate_and_copy_sample()
2461 if (!actions || (nla_len(actions) && nla_len(actions) < NLA_HDRLEN)) in validate_and_copy_sample()
2533 if (!actions || (nla_len(actions) && nla_len(actions) < NLA_HDRLEN)) { in validate_and_copy_dec_ttl()
2566 if (nla_len(attr) && nla_len(attr) < NLA_HDRLEN) in validate_and_copy_clone()
2754 if (nla_total_size(nla_len(ovs_key)) != nla_len(a)) in validate_set()
2757 key_len = nla_len(ovs_key); in validate_set()
2959 nla_data(attr), nla_len(attr), in validate_and_copy_check_pkt_len()
3024 int totlen = NLA_ALIGN(from->nla_len); in copy_action()
3027 to = reserve_sfa_size(sfa, from->nla_len, log); in copy_action()
3077 (action_lens[type] != nla_len(a) && in __ovs_nla_copy_actions()
3365 *sfa = nla_alloc_flow_actions(min(nla_len(attr), MAX_ACTIONS_BUFSIZE)); in ovs_nla_copy_actions()
3372 (*sfa)->orig_len = nla_len(attr); in ovs_nla_copy_actions()
3385 int err = 0, rem = nla_len(attr); in sample_action_to_attr()
3426 int err = 0, rem = nla_len(attr); in clone_action_to_attr()
3448 int err = 0, rem = nla_len(attr); in check_pkt_len_action_to_attr()
3476 err = ovs_nla_put_actions(nla_data(a), nla_len(a), skb); in check_pkt_len_action_to_attr()
3495 err = ovs_nla_put_actions(nla_data(a), nla_len(a), skb); in check_pkt_len_action_to_attr()
3522 nla_for_each_attr(a, nla_data(attr), nla_len(attr), rem) { in dec_ttl_action_to_attr()
3532 err = ovs_nla_put_actions(nla_data(a), nla_len(a), skb); in dec_ttl_action_to_attr()
3579 if (nla_put(skb, OVS_ACTION_ATTR_SET, nla_len(a), ovs_key)) in set_action_to_attr()
3592 size_t key_len = nla_len(ovs_key) / 2; in masked_set_action_to_set_action_attr()
3660 if (nla_put(skb, type, nla_len(a), nla_data(a))) in ovs_nla_put_actions()