Home
last modified time | relevance | path

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

/linux/net/netlink/
A Dpolicy.c202 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()
/linux/net/sched/
A Dsch_fifo.c239 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()
A Dsch_skbprio.c172 if (opt->nla_len != nla_attr_size(sizeof(*ctl))) in skbprio_change()
A Dsch_sfq.c633 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()
A Dsch_mqprio.c124 if (nested_len >= nla_attr_size(0)) in parse_attr()
A Dsch_netem.c944 if (nested_len >= nla_attr_size(0)) in parse_attr()
A Dsch_htb.c1834 .nla_len = nla_attr_size(sizeof(est.opt)), in htb_change_class()
/linux/net/xfrm/
A Dxfrm_compat.c409 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()
/linux/include/net/
A Dnetlink.h1101 static inline int nla_attr_size(int payload) in nla_attr_size() function
1112 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()
/linux/net/netfilter/
A Dxt_RATEEST.c153 cfg.opt.nla_len = nla_attr_size(sizeof(cfg.est)); in xt_rateest_tg_checkentry()
A Dnfnetlink_log.c639 int size = nla_attr_size(data_len); in __build_packet_message()
A Dnfnetlink_queue.c616 nla->nla_len = nla_attr_size(data_len); in nfqnl_build_packet_message()
/linux/net/psample/
A Dpsample.c471 nla->nla_len = nla_attr_size(data_len); in psample_sample_packet()
/linux/net/core/
A Ddrop_monitor.c645 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()
A Drtnetlink.c4313 nla_attr_size(sizeof(u32)))) { in valid_fdb_dump_legacy()
/linux/lib/
A Dnlattr.c861 nla->nla_len = nla_attr_size(attrlen); in __nla_reserve()
/linux/drivers/block/
A Dnbd.c2366 msg_size = nla_total_size(nla_attr_size(sizeof(u32)) + in nbd_genl_status()
2367 nla_attr_size(sizeof(u8))); in nbd_genl_status()
/linux/net/openvswitch/
A Ddatapath.c430 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()
A Dflow_netlink.c2382 a = reserve_sfa_size(sfa, nla_attr_size(len), log); in __add_action()
2387 a->nla_len = nla_attr_size(len); in __add_action()
/linux/net/ipv4/
A Dfib_frontend.c462 nla->nla_len = nla_attr_size(4); in put_rtax()
/linux/drivers/block/drbd/
A Ddrbd_nl.c140 txt->nla_len = nla_attr_size(len+1); in drbd_msg_sprintf_info()

Completed in 83 milliseconds