Home
last modified time | relevance | path

Searched refs:nla_total_size (Results 1 – 25 of 128) sorted by relevance

123456

/linux/drivers/net/bonding/
A Dbond_netlink.c21 return nla_total_size(sizeof(u8)) + /* IFLA_BOND_SLAVE_STATE */ in bond_get_slave_size()
22 nla_total_size(sizeof(u8)) + /* IFLA_BOND_SLAVE_MII_STATUS */ in bond_get_slave_size()
25 nla_total_size(sizeof(u16)) + /* IFLA_BOND_SLAVE_QUEUE_ID */ in bond_get_slave_size()
482 return nla_total_size(sizeof(u8)) + /* IFLA_BOND_MODE */ in bond_get_size()
484 nla_total_size(sizeof(u32)) + /* IFLA_BOND_MIIMON */ in bond_get_size()
485 nla_total_size(sizeof(u32)) + /* IFLA_BOND_UPDELAY */ in bond_get_size()
490 nla_total_size(sizeof(struct nlattr)) + in bond_get_size()
491 nla_total_size(sizeof(u32)) * BOND_MAX_ARP_TARGETS + in bond_get_size()
494 nla_total_size(sizeof(u32)) + /* IFLA_BOND_PRIMARY */ in bond_get_size()
506 nla_total_size(sizeof(u8)) + /* IFLA_BOND_AD_SELECT */ in bond_get_size()
[all …]
/linux/net/bridge/
A Dbr_netlink.c137 (nla_total_size(sizeof(u32)) in br_get_link_af_size_filtered()
139 + nla_total_size(sizeof(u32)) in br_get_link_af_size_filtered()
141 + nla_total_size(sizeof(u32)) in br_get_link_af_size_filtered()
147 (nla_total_size(sizeof(u32)) in br_get_link_af_size_filtered()
149 + nla_total_size(sizeof(u32)) in br_get_link_af_size_filtered()
151 + nla_total_size(sizeof(u32)) in br_get_link_af_size_filtered()
153 + nla_total_size(sizeof(u32)) in br_get_link_af_size_filtered()
155 + nla_total_size(sizeof(u8)) in br_get_link_af_size_filtered()
157 + nla_total_size(sizeof(u8)) in br_get_link_af_size_filtered()
159 + nla_total_size(sizeof(u32)) in br_get_link_af_size_filtered()
[all …]
A Dbr_vlan_options.c68 return nla_total_size(sizeof(u8)) /* BRIDGE_VLANDB_ENTRY_STATE */ in br_vlan_opts_nl_size()
69 + nla_total_size(0) /* BRIDGE_VLANDB_ENTRY_TUNNEL_INFO */ in br_vlan_opts_nl_size()
70 + nla_total_size(sizeof(u32)) /* BRIDGE_VLANDB_TINFO_ID */ in br_vlan_opts_nl_size()
72 + nla_total_size(sizeof(u8)) /* BRIDGE_VLANDB_ENTRY_MCAST_ROUTER */ in br_vlan_opts_nl_size()
394 + nla_total_size(0) /* BRIDGE_VLANDB_GLOBAL_OPTIONS */ in rtnl_vlan_global_opts_nlmsg_size()
395 + nla_total_size(sizeof(u16)) /* BRIDGE_VLANDB_GOPTS_ID */ in rtnl_vlan_global_opts_nlmsg_size()
397 + nla_total_size(sizeof(u8)) /* BRIDGE_VLANDB_GOPTS_MCAST_SNOOPING */ in rtnl_vlan_global_opts_nlmsg_size()
399 + nla_total_size(sizeof(u8)) /* BRIDGE_VLANDB_GOPTS_MCAST_MLD_VERSION */ in rtnl_vlan_global_opts_nlmsg_size()
408 + nla_total_size(sizeof(u8)) /* BRIDGE_VLANDB_GOPTS_MCAST_QUERIER */ in rtnl_vlan_global_opts_nlmsg_size()
410 + nla_total_size(0) /* BRIDGE_VLANDB_GOPTS_MCAST_ROUTER_PORTS */ in rtnl_vlan_global_opts_nlmsg_size()
[all …]
A Dbr_mdb.c53 size_t size = nla_total_size(0); /* MDBA_ROUTER */ in br_rports_size()
505 nla_total_size(sizeof(u32)); in rtnl_mdb_nlmsg_size()
513 nlmsg_size += nla_total_size(sizeof(u8)); in rtnl_mdb_nlmsg_size()
519 nlmsg_size += nla_total_size(sizeof(__be32)); in rtnl_mdb_nlmsg_size()
537 nlmsg_size += nla_total_size(sizeof(u8)); in rtnl_mdb_nlmsg_size()
541 nlmsg_size += nla_total_size(0); in rtnl_mdb_nlmsg_size()
547 nlmsg_size += nla_total_size(0) + in rtnl_mdb_nlmsg_size()
548 nla_total_size(addr_size) + in rtnl_mdb_nlmsg_size()
549 nla_total_size(sizeof(u32)); in rtnl_mdb_nlmsg_size()
630 + nla_total_size(sizeof(__u32)) in rtnl_rtr_nlmsg_size()
[all …]
/linux/net/ethtool/
A Dcoalesce.c85 return nla_total_size(sizeof(u32)) + /* _RX_USECS */ in coalesce_reply_size()
86 nla_total_size(sizeof(u32)) + /* _RX_MAX_FRAMES */ in coalesce_reply_size()
87 nla_total_size(sizeof(u32)) + /* _RX_USECS_IRQ */ in coalesce_reply_size()
89 nla_total_size(sizeof(u32)) + /* _TX_USECS */ in coalesce_reply_size()
90 nla_total_size(sizeof(u32)) + /* _TX_MAX_FRAMES */ in coalesce_reply_size()
91 nla_total_size(sizeof(u32)) + /* _TX_USECS_IRQ */ in coalesce_reply_size()
96 nla_total_size(sizeof(u32)) + /* _PKT_RATE_LOW */ in coalesce_reply_size()
97 nla_total_size(sizeof(u32)) + /* _RX_USECS_LOW */ in coalesce_reply_size()
99 nla_total_size(sizeof(u32)) + /* _TX_USECS_LOW */ in coalesce_reply_size()
101 nla_total_size(sizeof(u32)) + /* _PKT_RATE_HIGH */ in coalesce_reply_size()
[all …]
A Drings.c45 return nla_total_size(sizeof(u32)) + /* _RINGS_RX_MAX */ in rings_reply_size()
46 nla_total_size(sizeof(u32)) + /* _RINGS_RX_MINI_MAX */ in rings_reply_size()
47 nla_total_size(sizeof(u32)) + /* _RINGS_RX_JUMBO_MAX */ in rings_reply_size()
48 nla_total_size(sizeof(u32)) + /* _RINGS_TX_MAX */ in rings_reply_size()
49 nla_total_size(sizeof(u32)) + /* _RINGS_RX */ in rings_reply_size()
50 nla_total_size(sizeof(u32)) + /* _RINGS_RX_MINI */ in rings_reply_size()
51 nla_total_size(sizeof(u32)) + /* _RINGS_RX_JUMBO */ in rings_reply_size()
52 nla_total_size(sizeof(u32)); /* _RINGS_TX */ in rings_reply_size()
A Dchannels.c47 return nla_total_size(sizeof(u32)) + /* _CHANNELS_RX_MAX */ in channels_reply_size()
48 nla_total_size(sizeof(u32)) + /* _CHANNELS_TX_MAX */ in channels_reply_size()
49 nla_total_size(sizeof(u32)) + /* _CHANNELS_OTHER_MAX */ in channels_reply_size()
50 nla_total_size(sizeof(u32)) + /* _CHANNELS_COMBINED_MAX */ in channels_reply_size()
51 nla_total_size(sizeof(u32)) + /* _CHANNELS_RX_COUNT */ in channels_reply_size()
52 nla_total_size(sizeof(u32)) + /* _CHANNELS_TX_COUNT */ in channels_reply_size()
53 nla_total_size(sizeof(u32)) + /* _CHANNELS_OTHER_COUNT */ in channels_reply_size()
54 nla_total_size(sizeof(u32)); /* _CHANNELS_COMBINED_COUNT */ in channels_reply_size()
A Dlinkinfo.c48 return nla_total_size(sizeof(u8)) /* LINKINFO_PORT */ in linkinfo_reply_size()
49 + nla_total_size(sizeof(u8)) /* LINKINFO_PHYADDR */ in linkinfo_reply_size()
50 + nla_total_size(sizeof(u8)) /* LINKINFO_TP_MDIX */ in linkinfo_reply_size()
51 + nla_total_size(sizeof(u8)) /* LINKINFO_TP_MDIX_CTRL */ in linkinfo_reply_size()
52 + nla_total_size(sizeof(u8)) /* LINKINFO_TRANSCEIVER */ in linkinfo_reply_size()
A Dlinkstate.c122 len = nla_total_size(sizeof(u8)) /* LINKSTATE_LINK */ in linkstate_reply_size()
126 len += nla_total_size(sizeof(u32)); in linkstate_reply_size()
129 len += nla_total_size(sizeof(u32)); in linkstate_reply_size()
132 len += nla_total_size(sizeof(u8)); /* LINKSTATE_EXT_STATE */ in linkstate_reply_size()
135 len += nla_total_size(sizeof(u8)); /* LINKSTATE_EXT_SUBSTATE */ in linkstate_reply_size()
A Dtunnels.c31 nla_total_size(0) + /* _UDP_TABLE */ in ethnl_udp_table_reply_size()
32 nla_total_size(sizeof(u32)); /* _UDP_TABLE_SIZE */ in ethnl_udp_table_reply_size()
52 size = nla_total_size(0); /* _INFO_UDP_PORTS */ in ethnl_tunnel_info_reply_size()
73 size += nla_total_size(0) + /* _TABLE_ENTRY */ in ethnl_tunnel_info_reply_size()
74 nla_total_size(sizeof(__be16)) + /* _ENTRY_PORT */ in ethnl_tunnel_info_reply_size()
75 nla_total_size(sizeof(u32)); /* _ENTRY_TYPE */ in ethnl_tunnel_info_reply_size()
A Dstrset.c332 return nla_total_size(2 * nla_total_size(sizeof(u32))); in strset_set_size()
338 len += nla_total_size(nla_total_size(sizeof(u32)) + in strset_set_size()
342 len = 2 * nla_total_size(sizeof(u32)) + nla_total_size(len); in strset_set_size()
344 return nla_total_size(len); in strset_set_size()
356 len += nla_total_size(0); /* ETHTOOL_A_STRSET_STRINGSETS */ in strset_reply_size()
A Dstats.c167 len += (nla_total_size(0) + /* _A_STATS_GRP_HIST */ in stats_reply_size()
168 nla_total_size(4) + /* _A_STATS_GRP_HIST_BKT_LOW */ in stats_reply_size()
169 nla_total_size(4)) * /* _A_STATS_GRP_HIST_BKT_HI */ in stats_reply_size()
173 len += n_grps * (nla_total_size(0) + /* _A_STATS_GRP */ in stats_reply_size()
174 nla_total_size(4) + /* _A_STATS_GRP_ID */ in stats_reply_size()
175 nla_total_size(4)); /* _A_STATS_GRP_SS_ID */ in stats_reply_size()
176 len += n_stats * (nla_total_size(0) + /* _A_STATS_GRP_STAT */ in stats_reply_size()
A Dlinkmodes.c69 len = nla_total_size(sizeof(u8)) /* LINKMODES_AUTONEG */ in linkmodes_reply_size()
70 + nla_total_size(sizeof(u32)) /* LINKMODES_SPEED */ in linkmodes_reply_size()
71 + nla_total_size(sizeof(u32)) /* LINKMODES_LANES */ in linkmodes_reply_size()
72 + nla_total_size(sizeof(u8)) /* LINKMODES_DUPLEX */ in linkmodes_reply_size()
91 len += nla_total_size(sizeof(u8)); in linkmodes_reply_size()
94 len += nla_total_size(sizeof(u8)); in linkmodes_reply_size()
A Dpause.c53 int n = nla_total_size(sizeof(u8)) + /* _PAUSE_AUTONEG */ in pause_reply_size()
54 nla_total_size(sizeof(u8)) + /* _PAUSE_RX */ in pause_reply_size()
55 nla_total_size(sizeof(u8)); /* _PAUSE_TX */ in pause_reply_size()
58 n += nla_total_size(0) + /* _PAUSE_STATS */ in pause_reply_size()
/linux/net/netfilter/
A Dnf_tables_trace.c196 nla_total_size(strlen(info->chain->name)) + in nft_trace_notify()
199 nla_total_size(0) + /* VERDICT, nested */ in nft_trace_notify()
201 nla_total_size(sizeof(u32)) + /* id */ in nft_trace_notify()
202 nla_total_size(NFT_TRACETYPE_LL_HSIZE) + in nft_trace_notify()
203 nla_total_size(NFT_TRACETYPE_NETWORK_HSIZE) + in nft_trace_notify()
205 nla_total_size(sizeof(u32)) + /* iif */ in nft_trace_notify()
206 nla_total_size(sizeof(__be16)) + /* iiftype */ in nft_trace_notify()
207 nla_total_size(sizeof(u32)) + /* oif */ in nft_trace_notify()
209 nla_total_size(sizeof(u32)) + /* mark */ in nft_trace_notify()
210 nla_total_size(sizeof(u32)) + /* nfproto */ in nft_trace_notify()
[all …]
A Dnfnetlink_log.c399 size += nla_total_size(0); /* nested */ in nfulnl_get_bridge_size()
400 size += nla_total_size(sizeof(u16)); /* id */ in nfulnl_get_bridge_size()
401 size += nla_total_size(sizeof(u16)); /* tag */ in nfulnl_get_bridge_size()
710 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet()
716 + nla_total_size(sizeof(u_int32_t)) /* mark */ in nfulnl_log_packet()
717 + nla_total_size(sizeof(u_int32_t)) /* uid */ in nfulnl_log_packet()
718 + nla_total_size(sizeof(u_int32_t)) /* gid */ in nfulnl_log_packet()
719 + nla_total_size(plen) /* prefix */ in nfulnl_log_packet()
733 size += nla_total_size(sizeof(u_int32_t)); in nfulnl_log_packet()
735 size += nla_total_size(sizeof(u_int32_t)); in nfulnl_log_packet()
[all …]
/linux/net/psample/
A Dpsample.c319 sum += nla_total_size(0); in psample_tunnel_meta_len()
324 sum += nla_total_size(sizeof(u32)); in psample_tunnel_meta_len()
326 sum += nla_total_size(sizeof(u32)); in psample_tunnel_meta_len()
336 sum += nla_total_size(sizeof(u8)); in psample_tunnel_meta_len()
339 sum += nla_total_size(0); in psample_tunnel_meta_len()
341 sum += nla_total_size(0); in psample_tunnel_meta_len()
343 sum += nla_total_size(sizeof(u16)); in psample_tunnel_meta_len()
345 sum += nla_total_size(sizeof(u16)); in psample_tunnel_meta_len()
347 sum += nla_total_size(0); in psample_tunnel_meta_len()
350 sum += nla_total_size(tun_opts_len); in psample_tunnel_meta_len()
[all …]
/linux/net/mptcp/
A Ddiag.c85 size += nla_total_size(0) + /* INET_ULP_INFO_MPTCP */ in subflow_get_info_size()
86 nla_total_size(4) + /* MPTCP_SUBFLOW_ATTR_TOKEN_REM */ in subflow_get_info_size()
87 nla_total_size(4) + /* MPTCP_SUBFLOW_ATTR_TOKEN_LOC */ in subflow_get_info_size()
88 nla_total_size(4) + /* MPTCP_SUBFLOW_ATTR_RELWRITE_SEQ */ in subflow_get_info_size()
90 nla_total_size(4) + /* MPTCP_SUBFLOW_ATTR_MAP_SFSEQ */ in subflow_get_info_size()
91 nla_total_size(2) + /* MPTCP_SUBFLOW_ATTR_SSN_OFFSET */ in subflow_get_info_size()
92 nla_total_size(2) + /* MPTCP_SUBFLOW_ATTR_MAP_DATALEN */ in subflow_get_info_size()
93 nla_total_size(4) + /* MPTCP_SUBFLOW_ATTR_FLAGS */ in subflow_get_info_size()
94 nla_total_size(1) + /* MPTCP_SUBFLOW_ATTR_ID_REM */ in subflow_get_info_size()
95 nla_total_size(1) + /* MPTCP_SUBFLOW_ATTR_ID_LOC */ in subflow_get_info_size()
/linux/drivers/net/can/dev/
A Dnetlink.c362 size = nla_total_size(0); /* nest IFLA_CAN_TDC */ in can_tdc_get_size()
377 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_TDCV */ in can_tdc_get_size()
378 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_TDCO */ in can_tdc_get_size()
380 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_TDCF */ in can_tdc_get_size()
392 size += nla_total_size(sizeof(struct can_bittiming)); in can_get_size()
394 size += nla_total_size(sizeof(struct can_bittiming_const)); in can_get_size()
396 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_STATE */ in can_get_size()
400 size += nla_total_size(sizeof(struct can_berr_counter)); in can_get_size()
402 size += nla_total_size(sizeof(struct can_bittiming)); in can_get_size()
411 size += nla_total_size(sizeof(*priv->bitrate_const) * in can_get_size()
[all …]
/linux/include/linux/
A Dinet_diag.h67 return nla_total_size(1) /* INET_DIAG_SHUTDOWN */ in inet_diag_msg_attrs_size()
68 + nla_total_size(1) /* INET_DIAG_TOS */ in inet_diag_msg_attrs_size()
70 + nla_total_size(1) /* INET_DIAG_TCLASS */ in inet_diag_msg_attrs_size()
71 + nla_total_size(1) /* INET_DIAG_SKV6ONLY */ in inet_diag_msg_attrs_size()
73 + nla_total_size(4) /* INET_DIAG_MARK */ in inet_diag_msg_attrs_size()
74 + nla_total_size(4) /* INET_DIAG_CLASS_ID */ in inet_diag_msg_attrs_size()
78 + nla_total_size(sizeof(struct inet_diag_sockopt)) in inet_diag_msg_attrs_size()
/linux/net/ipv4/
A Dip_tunnel_core.c873 + nla_total_size(opt->length * 4); in ip_tun_opts_nlsize()
885 + (md->version == 1 ? nla_total_size(4) in ip_tun_opts_nlsize()
887 : nla_total_size(1) + in ip_tun_opts_nlsize()
888 nla_total_size(1)); in ip_tun_opts_nlsize()
898 + nla_total_size(4) /* LWTUNNEL_IP_DST */ in ip_tun_encap_nlsize()
899 + nla_total_size(4) /* LWTUNNEL_IP_SRC */ in ip_tun_encap_nlsize()
900 + nla_total_size(1) /* LWTUNNEL_IP_TOS */ in ip_tun_encap_nlsize()
901 + nla_total_size(1) /* LWTUNNEL_IP_TTL */ in ip_tun_encap_nlsize()
902 + nla_total_size(2) /* LWTUNNEL_IP_FLAGS */ in ip_tun_encap_nlsize()
1021 + nla_total_size(16) /* LWTUNNEL_IP6_DST */ in ip6_tun_encap_nlsize()
[all …]
A Dipip.c537 nla_total_size(4) + in ipip_get_size()
539 nla_total_size(4) + in ipip_get_size()
541 nla_total_size(4) + in ipip_get_size()
543 nla_total_size(1) + in ipip_get_size()
545 nla_total_size(1) + in ipip_get_size()
547 nla_total_size(1) + in ipip_get_size()
549 nla_total_size(1) + in ipip_get_size()
551 nla_total_size(2) + in ipip_get_size()
553 nla_total_size(2) + in ipip_get_size()
555 nla_total_size(2) + in ipip_get_size()
[all …]
A Dip_gre.c1448 nla_total_size(4) + in ipgre_get_size()
1450 nla_total_size(2) + in ipgre_get_size()
1452 nla_total_size(2) + in ipgre_get_size()
1454 nla_total_size(4) + in ipgre_get_size()
1456 nla_total_size(4) + in ipgre_get_size()
1458 nla_total_size(4) + in ipgre_get_size()
1460 nla_total_size(4) + in ipgre_get_size()
1462 nla_total_size(1) + in ipgre_get_size()
1464 nla_total_size(1) + in ipgre_get_size()
1466 nla_total_size(1) + in ipgre_get_size()
[all …]
/linux/net/core/
A Drtnetlink.c911 size_t size = nla_total_size(0); in rtnl_vfinfo_size()
913 (nla_total_size(0) + in rtnl_vfinfo_size()
990 size = nla_total_size(0); in rtnl_prop_list_size()
998 size_t size = nla_total_size(1); in rtnl_proto_down_size()
1001 size += nla_total_size(0) + nla_total_size(4); in rtnl_proto_down_size()
5106 nla_size += nla_total_size(0); in rtnl_get_offload_stats_size()
5277 size += nla_total_size(0); in if_nlmsg_stats_size()
5296 size += nla_total_size(0); in if_nlmsg_stats_size()
5307 size += nla_total_size(0); in if_nlmsg_stats_size()
5312 size += nla_total_size( in if_nlmsg_stats_size()
[all …]
A Ddrop_monitor.c543 return nla_total_size(0) + in net_dm_in_port_size()
545 nla_total_size(sizeof(u32)) + in net_dm_in_port_size()
547 nla_total_size(IFNAMSIZ + 1); in net_dm_in_port_size()
560 nla_total_size(sizeof(u16)) + in net_dm_packet_report_size()
562 nla_total_size(sizeof(u64)) + in net_dm_packet_report_size()
568 nla_total_size(sizeof(u64)) + in net_dm_packet_report_size()
570 nla_total_size(sizeof(u32)) + in net_dm_packet_report_size()
572 nla_total_size(sizeof(u16)) + in net_dm_packet_report_size()
574 nla_total_size(payload_len); in net_dm_packet_report_size()
730 nla_total_size(sizeof(u16)) + in net_dm_hw_packet_report_size()
[all …]

Completed in 50 milliseconds

123456