Home
last modified time | relevance | path

Searched refs:NLA_ALIGN (Results 1 – 25 of 29) sorted by relevance

12

/linux-6.12.1/include/net/
Drtnh.h18 int totlen = NLA_ALIGN(rtnh->rtnh_len); in rtnh_next()
26 return (struct nlattr *) ((char *) rtnh + NLA_ALIGN(sizeof(*rtnh))); in rtnh_attrs()
31 return rtnh->rtnh_len - NLA_ALIGN(sizeof(*rtnh)); in rtnh_attrlen()
Dnetlink.h1220 return NLA_ALIGN(nla_attr_size(payload)); in nla_total_size()
1281 unsigned int totlen = NLA_ALIGN(nla->nla_len); in nla_next()
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-6.12.1/drivers/net/ethernet/mellanox/mlxfw/
Dmlxfw_mfa2_tlv_multi.c10 NLA_ALIGN(sizeof(*(tlv)) + be16_to_cpu((tlv)->len))
18 multi_len = NLA_ALIGN(sizeof(struct mlxfw_mfa2_tlv_multi)); in mlxfw_mfa2_tlv_multi_child()
36 tlv_len = NLA_ALIGN(tlv_len + be16_to_cpu(multi->total_len)); in mlxfw_mfa2_tlv_next()
Dmlxfw_mfa2.c275 first_tlv_ptr = fw->data + NLA_ALIGN(mlxfw_mfa2_fingerprint_len); in mlxfw_mfa2_file_init()
309 mfa2_file->cb = fw->data + NLA_ALIGN(be32_to_cpu(pd->cb_offset)); in mlxfw_mfa2_file_init()
/linux-6.12.1/net/ife/
Dife.c116 if (NLA_ALIGN(tlvlen) < tlvlen) in __ife_tlv_meta_valid()
119 if (unlikely(skbdata + NLA_ALIGN(tlvlen) > ifehdr_end)) in __ife_tlv_meta_valid()
151 tlvlen = NLA_ALIGN(tlvlen); in ife_tlv_meta_next()
/linux-6.12.1/tools/accounting/
Dprocacct.c194 na = (struct nlattr *) ((char *) na + NLA_ALIGN(na->nla_len)); in get_family_id()
256 len2 += NLA_ALIGN(na->nla_len); in handle_aggr()
258 NLA_ALIGN(na->nla_len)); in handle_aggr()
377 len += NLA_ALIGN(na->nla_len); in main()
Dgetdelays.c187 na = (struct nlattr *) ((char *) na + NLA_ALIGN(na->nla_len)); in get_family_id()
493 len += NLA_ALIGN(na->nla_len); in main()
537 len2 += NLA_ALIGN(na->nla_len); in main()
539 NLA_ALIGN(na->nla_len)); in main()
/linux-6.12.1/tools/lib/bpf/
Dnlattr.h146 if (NLMSG_ALIGN(req->nh.nlmsg_len) + NLA_ALIGN(NLA_HDRLEN + len) > sizeof(*req)) in nlattr_add()
156 req->nh.nlmsg_len = NLMSG_ALIGN(req->nh.nlmsg_len) + NLA_ALIGN(nla->nla_len); in nlattr_add()
Dnlattr.c27 int totlen = NLA_ALIGN(nla->nla_len); in nla_next()
/linux-6.12.1/tools/include/uapi/linux/
Dnetlink.h231 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) macro
232 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr)))
/linux-6.12.1/include/uapi/linux/
Dnetlink.h249 #define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) macro
250 #define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr)))
/linux-6.12.1/tools/testing/selftests/nci/
Dnci_dev.c139 prv_len = NLA_ALIGN(nla_len[cnt]) + NLA_HDRLEN; in send_cmd_mt_nla()
205 len += NLA_ALIGN(na->nla_len); in get_family_id()
226 group_attr_len += NLA_ALIGN(group_na->nla_len) + in get_family_id()
232 NLA_ALIGN(group_na->nla_len)); in get_family_id()
289 len += NLA_ALIGN(na->nla_len); in get_dev_enable_state()
677 len += NLA_ALIGN(na->nla_len); in get_taginfo()
/linux-6.12.1/net/netfilter/
Dnf_conntrack_proto_dccp.c680 NLA_ALIGN(NLA_HDRLEN + 1) + \
681 NLA_ALIGN(NLA_HDRLEN + 1) + \
682 NLA_ALIGN(NLA_HDRLEN + sizeof(u64)) + \
683 NLA_ALIGN(NLA_HDRLEN + 0))
Dnf_conntrack_proto_sctp.c596 NLA_ALIGN(NLA_HDRLEN + 1) + \
597 NLA_ALIGN(NLA_HDRLEN + 4) + \
598 NLA_ALIGN(NLA_HDRLEN + 4))
Dnf_conntrack_proto_tcp.c1396 NLA_ALIGN(NLA_HDRLEN + 1) + \
1397 NLA_ALIGN(NLA_HDRLEN + 1) + \
1398 NLA_ALIGN(NLA_HDRLEN + sizeof(struct nf_ct_tcp_flags)) + \
1399 NLA_ALIGN(NLA_HDRLEN + sizeof(struct nf_ct_tcp_flags)))
/linux-6.12.1/net/openvswitch/
Dconntrack.c1681 rem = NLA_ALIGN(nla_len(nla_zone_limit)); in ovs_ct_limit_set_zone_limit()
1708 rem -= NLA_ALIGN(sizeof(*zone_limit)); in ovs_ct_limit_set_zone_limit()
1710 NLA_ALIGN(sizeof(*zone_limit))); in ovs_ct_limit_set_zone_limit()
1726 rem = NLA_ALIGN(nla_len(nla_zone_limit)); in ovs_ct_limit_del_zone_limit()
1743 rem -= NLA_ALIGN(sizeof(*zone_limit)); in ovs_ct_limit_del_zone_limit()
1745 NLA_ALIGN(sizeof(*zone_limit))); in ovs_ct_limit_del_zone_limit()
1793 rem = NLA_ALIGN(nla_len(nla_zone_limit)); in ovs_ct_limit_get_zone_limit()
1815 rem -= NLA_ALIGN(sizeof(*zone_limit)); in ovs_ct_limit_get_zone_limit()
1817 NLA_ALIGN(sizeof(*zone_limit))); in ovs_ct_limit_get_zone_limit()
Ddatapath.c404 size += NLA_ALIGN(upcall_info->userdata->nla_len); in upcall_msg_size()
424 size_t plen = NLA_ALIGN(skb->len) - skb->len; in pad_packet()
Dflow_netlink.c2474 size_t req_size = NLA_ALIGN(attr_len); in reserve_sfa_size()
3186 int totlen = NLA_ALIGN(from->nla_len); in copy_action()
/linux-6.12.1/lib/
Dnlattr.c951 return skb_put_zero(skb, NLA_ALIGN(attrlen)); in __nla_reserve_nohdr()
1018 if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) in nla_reserve_nohdr()
1143 if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) in nla_put_nohdr()
1162 if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) in nla_append()
/linux-6.12.1/tools/net/ynl/lib/
Dynl-priv.h231 attr = (struct nlattr *)((char *)prev + NLA_ALIGN(prev->nla_len)); in ynl_attr_next()
312 attr->nla_len = NLA_HDRLEN + NLA_ALIGN(len); in ynl_attr_put_str()
/linux-6.12.1/net/sched/
Dsch_mqprio.c246 struct nlattr *nlattr_opt = nla_data(opt) + NLA_ALIGN(sizeof(*qopt)); in mqprio_parse_nlattr()
247 int nlattr_opt_len = nla_len(opt) - NLA_ALIGN(sizeof(*qopt)); in mqprio_parse_nlattr()
383 len = nla_len(opt) - NLA_ALIGN(sizeof(*qopt)); in mqprio_init()
Dsch_netem.c949 int nested_len = nla_len(nla) - NLA_ALIGN(len); in parse_attr()
958 nla_data(nla) + NLA_ALIGN(len), in parse_attr()
/linux-6.12.1/net/core/
Dgen_stats.c87 NLA_ALIGN(d->tail->nla_len)); in gnet_stats_start_copy_compat()
Ddrop_monitor.c252 nla->nla_len += NLA_ALIGN(sizeof(struct net_dm_drop_point)); in trace_drop_common()
/linux-6.12.1/include/linux/
Dgenl_magic_func.h291 .hdrsize = NLA_ALIGN(GENL_MAGIC_FAMILY_HDRSZ),

12