Home
last modified time | relevance | path

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

12

/linux-6.1.9/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.h1129 return NLA_ALIGN(nla_attr_size(payload)); in nla_total_size()
1190 unsigned int totlen = NLA_ALIGN(nla->nla_len); in nla_next()
1923 return NLA_ALIGN(nla_attr_size(payload)) in nla_total_size_64bit()
1925 + NLA_ALIGN(nla_attr_size(0)) in nla_total_size_64bit()
/linux-6.1.9/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()
34 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.1.9/net/ife/
Dife.c115 if (NLA_ALIGN(tlvlen) < tlvlen) in __ife_tlv_meta_valid()
118 if (unlikely(skbdata + NLA_ALIGN(tlvlen) > ifehdr_end)) in __ife_tlv_meta_valid()
150 tlvlen = NLA_ALIGN(tlvlen); in ife_tlv_meta_next()
/linux-6.1.9/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()
382 len += NLA_ALIGN(na->nla_len); in main()
Dgetdelays.c187 na = (struct nlattr *) ((char *) na + NLA_ALIGN(na->nla_len)); in get_family_id()
487 len += NLA_ALIGN(na->nla_len); in main()
531 len2 += NLA_ALIGN(na->nla_len); in main()
533 NLA_ALIGN(na->nla_len)); in main()
/linux-6.1.9/tools/lib/bpf/
Dnlattr.h134 if (NLMSG_ALIGN(req->nh.nlmsg_len) + NLA_ALIGN(NLA_HDRLEN + len) > sizeof(*req)) in nlattr_add()
144 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.1.9/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.1.9/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.1.9/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.1.9/net/netfilter/
Dnf_conntrack_proto_dccp.c632 NLA_ALIGN(NLA_HDRLEN + 1) + \
633 NLA_ALIGN(NLA_HDRLEN + 1) + \
634 NLA_ALIGN(NLA_HDRLEN + sizeof(u64)) + \
635 NLA_ALIGN(NLA_HDRLEN + 0))
Dnf_conntrack_proto_sctp.c586 NLA_ALIGN(NLA_HDRLEN + 1) + \
587 NLA_ALIGN(NLA_HDRLEN + 4) + \
588 NLA_ALIGN(NLA_HDRLEN + 4))
Dnf_conntrack_proto_tcp.c1367 NLA_ALIGN(NLA_HDRLEN + 1) + \
1368 NLA_ALIGN(NLA_HDRLEN + 1) + \
1369 NLA_ALIGN(NLA_HDRLEN + sizeof(struct nf_ct_tcp_flags)) + \
1370 NLA_ALIGN(NLA_HDRLEN + sizeof(struct nf_ct_tcp_flags)))
/linux-6.1.9/lib/
Dnlattr.c919 return skb_put_zero(skb, NLA_ALIGN(attrlen)); in __nla_reserve_nohdr()
986 if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) in nla_reserve_nohdr()
1111 if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) in nla_put_nohdr()
1130 if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) in nla_append()
/linux-6.1.9/net/sched/
Dsch_mqprio.c122 int nested_len = nla_len(nla) - NLA_ALIGN(len); in parse_attr()
126 nla_data(nla) + NLA_ALIGN(len), in parse_attr()
167 len = nla_len(opt) - NLA_ALIGN(sizeof(*qopt)); in mqprio_init()
Dsch_netem.c937 int nested_len = nla_len(nla) - NLA_ALIGN(len); in parse_attr()
946 nla_data(nla) + NLA_ALIGN(len), in parse_attr()
/linux-6.1.9/net/openvswitch/
Dconntrack.c1971 rem = NLA_ALIGN(nla_len(nla_zone_limit)); in ovs_ct_limit_set_zone_limit()
1998 rem -= NLA_ALIGN(sizeof(*zone_limit)); in ovs_ct_limit_set_zone_limit()
2000 NLA_ALIGN(sizeof(*zone_limit))); in ovs_ct_limit_set_zone_limit()
2016 rem = NLA_ALIGN(nla_len(nla_zone_limit)); in ovs_ct_limit_del_zone_limit()
2033 rem -= NLA_ALIGN(sizeof(*zone_limit)); in ovs_ct_limit_del_zone_limit()
2035 NLA_ALIGN(sizeof(*zone_limit))); in ovs_ct_limit_del_zone_limit()
2083 rem = NLA_ALIGN(nla_len(nla_zone_limit)); in ovs_ct_limit_get_zone_limit()
2105 rem -= NLA_ALIGN(sizeof(*zone_limit)); in ovs_ct_limit_get_zone_limit()
2107 NLA_ALIGN(sizeof(*zone_limit))); in ovs_ct_limit_get_zone_limit()
Ddatapath.c381 size += NLA_ALIGN(upcall_info->userdata->nla_len); in upcall_msg_size()
401 size_t plen = NLA_ALIGN(skb->len) - skb->len; in pad_packet()
Dflow_netlink.c2458 size_t req_size = NLA_ALIGN(attr_len); in reserve_sfa_size()
3138 int totlen = NLA_ALIGN(from->nla_len); in copy_action()
/linux-6.1.9/net/core/
Dgen_stats.c87 NLA_ALIGN(d->tail->nla_len)); in gnet_stats_start_copy_compat()
Ddrop_monitor.c249 nla->nla_len += NLA_ALIGN(sizeof(struct net_dm_drop_point)); in trace_drop_common()
/linux-6.1.9/include/linux/
Dgenl_magic_func.h290 .hdrsize = NLA_ALIGN(GENL_MAGIC_FAMILY_HDRSZ),
/linux-6.1.9/net/ipv6/
Dip6mr.c2418 + maxvif * NLA_ALIGN(sizeof(struct rtnexthop)) in mr6_msgsize()

12