Searched refs:nla_attr_size (Results 1 – 22 of 22) sorted by relevance
213 int common = 2 * nla_attr_size(sizeof(u32)); in netlink_policy_dump_attr_size_estimate()223 return common + 2 * nla_attr_size(sizeof(u32)); in netlink_policy_dump_attr_size_estimate()237 2 * (nla_attr_size(0) + nla_attr_size(sizeof(u64))); in netlink_policy_dump_attr_size_estimate()239 return common + nla_attr_size(sizeof(u32)); in netlink_policy_dump_attr_size_estimate()244 return common + 2 * nla_attr_size(sizeof(u32)); in netlink_policy_dump_attr_size_estimate()
240 nla = kmalloc(nla_attr_size(sizeof(struct tc_fifo_qopt)), GFP_KERNEL); in fifo_set_limit()243 nla->nla_len = nla_attr_size(sizeof(struct tc_fifo_qopt)); in fifo_set_limit()
174 if (opt->nla_len != nla_attr_size(sizeof(*ctl))) in skbprio_change()
641 if (opt->nla_len < nla_attr_size(sizeof(*ctl))) in sfq_change()643 if (opt->nla_len >= nla_attr_size(sizeof(*ctl_v1))) in sfq_change()
253 if (nlattr_opt_len >= nla_attr_size(0)) { in mqprio_parse_nlattr()
956 if (nested_len >= nla_attr_size(0)) in parse_attr()
1825 .nla_len = nla_attr_size(sizeof(est.opt)), in htb_change_class()
417 if (size - *pos < nla_attr_size(payload)) in xfrm_attr_cpy32()422 memcpy(nla, src, nla_attr_size(copy_len)); in xfrm_attr_cpy32()423 nla->nla_len = nla_attr_size(payload); in xfrm_attr_cpy32()424 *pos += nla_attr_size(copy_len); in xfrm_attr_cpy32()
1209 static inline int nla_attr_size(int payload) in nla_attr_size() function1220 return NLA_ALIGN(nla_attr_size(payload)); in nla_total_size()1229 return nla_total_size(payload) - nla_attr_size(payload); in nla_padlen()2069 return NLA_ALIGN(nla_attr_size(payload)) in nla_total_size_64bit()2071 + 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()
650 int size = nla_attr_size(data_len); in __build_packet_message()
806 nla->nla_len = nla_attr_size(data_len); in nfqnl_build_packet_message()
482 nla->nla_len = nla_attr_size(data_len); in psample_sample_packet()
677 attr->nla_len = nla_attr_size(payload_len); in net_dm_packet_report_fill()837 attr->nla_len = nla_attr_size(payload_len); in net_dm_hw_packet_report_fill()
4638 nla_attr_size(sizeof(u32)))) { in valid_fdb_dump_legacy()
908 nla->nla_len = nla_attr_size(attrlen); in __nla_reserve()
2456 msg_size = nla_total_size(nla_attr_size(sizeof(u32)) + in nbd_genl_status()2457 nla_attr_size(sizeof(u8))); in nbd_genl_status()
461 if (nla_attr_size(skb->len) > USHRT_MAX) { in queue_userspace_packet()568 nla->nla_len = nla_attr_size(skb->len - cutlen); in queue_userspace_packet()
2512 a = reserve_sfa_size(sfa, nla_attr_size(len), log); in __add_action()2517 a->nla_len = nla_attr_size(len); in __add_action()
465 nla->nla_len = nla_attr_size(4); in put_rtax()
610 if (nlmsg_get_pos(skb) - (void *)af > nla_attr_size(0)) in br_fill_ifinfo()
140 txt->nla_len = nla_attr_size(len+1); in drbd_msg_sprintf_info()