Searched refs:nla_attr_size (Results 1 – 21 of 21) sorted by relevance
202 int common = 2 * nla_attr_size(sizeof(u32)); in netlink_policy_dump_attr_size_estimate()212 return common + 2 * nla_attr_size(sizeof(u32)); in netlink_policy_dump_attr_size_estimate()224 2 * (nla_attr_size(0) + nla_attr_size(sizeof(u64))); in netlink_policy_dump_attr_size_estimate()226 return common + nla_attr_size(sizeof(u32)); in netlink_policy_dump_attr_size_estimate()231 return common + 2 * nla_attr_size(sizeof(u32)); in netlink_policy_dump_attr_size_estimate()
239 nla = kmalloc(nla_attr_size(sizeof(struct tc_fifo_qopt)), GFP_KERNEL); in fifo_set_limit()242 nla->nla_len = nla_attr_size(sizeof(struct tc_fifo_qopt)); in fifo_set_limit()
172 if (opt->nla_len != nla_attr_size(sizeof(*ctl))) in skbprio_change()
633 if (opt->nla_len < nla_attr_size(sizeof(*ctl))) in sfq_change()635 if (opt->nla_len >= nla_attr_size(sizeof(*ctl_v1))) in sfq_change()
124 if (nested_len >= nla_attr_size(0)) in parse_attr()
944 if (nested_len >= nla_attr_size(0)) in parse_attr()
1834 .nla_len = nla_attr_size(sizeof(est.opt)), in htb_change_class()
409 if (size - *pos < nla_attr_size(payload)) in xfrm_attr_cpy32()414 memcpy(nla, src, nla_attr_size(copy_len)); in xfrm_attr_cpy32()415 nla->nla_len = nla_attr_size(payload); in xfrm_attr_cpy32()416 *pos += nla_attr_size(copy_len); in xfrm_attr_cpy32()
1101 static inline int nla_attr_size(int payload) in nla_attr_size() function1112 return NLA_ALIGN(nla_attr_size(payload)); in nla_total_size()1121 return nla_total_size(payload) - nla_attr_size(payload); in nla_padlen()1906 return NLA_ALIGN(nla_attr_size(payload)) in nla_total_size_64bit()1908 + NLA_ALIGN(nla_attr_size(0)) in nla_total_size_64bit()
153 cfg.opt.nla_len = nla_attr_size(sizeof(cfg.est)); in xt_rateest_tg_checkentry()
639 int size = nla_attr_size(data_len); in __build_packet_message()
616 nla->nla_len = nla_attr_size(data_len); in nfqnl_build_packet_message()
471 nla->nla_len = nla_attr_size(data_len); in psample_sample_packet()
645 attr->nla_len = nla_attr_size(payload_len); in net_dm_packet_report_fill()805 attr->nla_len = nla_attr_size(payload_len); in net_dm_hw_packet_report_fill()
4313 nla_attr_size(sizeof(u32)))) { in valid_fdb_dump_legacy()
861 nla->nla_len = nla_attr_size(attrlen); in __nla_reserve()
2366 msg_size = nla_total_size(nla_attr_size(sizeof(u32)) + in nbd_genl_status()2367 nla_attr_size(sizeof(u8))); in nbd_genl_status()
430 if (nla_attr_size(skb->len) > USHRT_MAX) { in queue_userspace_packet()537 nla->nla_len = nla_attr_size(skb->len - cutlen); in queue_userspace_packet()
2382 a = reserve_sfa_size(sfa, nla_attr_size(len), log); in __add_action()2387 a->nla_len = nla_attr_size(len); in __add_action()
462 nla->nla_len = nla_attr_size(4); in put_rtax()
140 txt->nla_len = nla_attr_size(len+1); in drbd_msg_sprintf_info()
Completed in 83 milliseconds