Home
last modified time | relevance | path

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

/linux/net/netlink/
H A Dpolicy.c213 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()
/linux/net/sched/
H A Dsch_fifo.c240 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()
H A Dsch_skbprio.c174 if (opt->nla_len != nla_attr_size(sizeof(*ctl))) in skbprio_change()
H A Dsch_sfq.c641 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()
H A Dsch_mqprio.c253 if (nlattr_opt_len >= nla_attr_size(0)) { in mqprio_parse_nlattr()
H A Dsch_netem.c956 if (nested_len >= nla_attr_size(0)) in parse_attr()
H A Dsch_htb.c1825 .nla_len = nla_attr_size(sizeof(est.opt)), in htb_change_class()
/linux/net/xfrm/
H A Dxfrm_compat.c417 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()
/linux/include/net/
H A Dnetlink.h1209 static inline int nla_attr_size(int payload) in nla_attr_size() function
1220 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()
/linux/net/netfilter/
H A Dxt_RATEEST.c153 cfg.opt.nla_len = nla_attr_size(sizeof(cfg.est)); in xt_rateest_tg_checkentry()
H A Dnfnetlink_log.c650 int size = nla_attr_size(data_len); in __build_packet_message()
H A Dnfnetlink_queue.c806 nla->nla_len = nla_attr_size(data_len); in nfqnl_build_packet_message()
/linux/net/psample/
H A Dpsample.c482 nla->nla_len = nla_attr_size(data_len); in psample_sample_packet()
/linux/net/core/
H A Ddrop_monitor.c677 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()
H A Drtnetlink.c4638 nla_attr_size(sizeof(u32)))) { in valid_fdb_dump_legacy()
/linux/lib/
H A Dnlattr.c908 nla->nla_len = nla_attr_size(attrlen); in __nla_reserve()
/linux/drivers/block/
H A Dnbd.c2456 msg_size = nla_total_size(nla_attr_size(sizeof(u32)) + in nbd_genl_status()
2457 nla_attr_size(sizeof(u8))); in nbd_genl_status()
/linux/net/openvswitch/
H A Ddatapath.c461 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()
H A Dflow_netlink.c2512 a = reserve_sfa_size(sfa, nla_attr_size(len), log); in __add_action()
2517 a->nla_len = nla_attr_size(len); in __add_action()
/linux/net/ipv4/
H A Dfib_frontend.c465 nla->nla_len = nla_attr_size(4); in put_rtax()
/linux/net/bridge/
H A Dbr_netlink.c610 if (nlmsg_get_pos(skb) - (void *)af > nla_attr_size(0)) in br_fill_ifinfo()
/linux/drivers/block/drbd/
H A Ddrbd_nl.c140 txt->nla_len = nla_attr_size(len+1); in drbd_msg_sprintf_info()