| /Linux-v5.15/drivers/net/bonding/ |
| D | bond_netlink.c | 21 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() 23 nla_total_size(sizeof(u32)) + /* IFLA_BOND_SLAVE_LINK_FAILURE_COUNT */ in bond_get_slave_size() 24 nla_total_size(MAX_ADDR_LEN) + /* IFLA_BOND_SLAVE_PERM_HWADDR */ in bond_get_slave_size() 25 nla_total_size(sizeof(u16)) + /* IFLA_BOND_SLAVE_QUEUE_ID */ in bond_get_slave_size() 26 nla_total_size(sizeof(u16)) + /* IFLA_BOND_SLAVE_AD_AGGREGATOR_ID */ in bond_get_slave_size() 27 nla_total_size(sizeof(u8)) + /* IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE */ in bond_get_slave_size() 28 nla_total_size(sizeof(u16)) + /* IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE */ in bond_get_slave_size() 482 return nla_total_size(sizeof(u8)) + /* IFLA_BOND_MODE */ in bond_get_size() 483 nla_total_size(sizeof(u32)) + /* IFLA_BOND_ACTIVE_SLAVE */ in bond_get_size() [all …]
|
| /Linux-v5.15/net/bridge/ |
| D | br_netlink.c | 120 vinfo_sz += num_vlan_infos * nla_total_size(sizeof(struct bridge_vlan_info)); in br_get_link_af_size_filtered() 132 vinfo_sz += nla_total_size(0); /* IFLA_BRIDGE_CFM */ in br_get_link_af_size_filtered() 137 (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() 143 + 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() [all …]
|
| D | br_vlan_options.c | 68 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() 398 + nla_total_size(sizeof(u8)) /* BRIDGE_VLANDB_GOPTS_MCAST_IGMP_VERSION */ 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() 400 + nla_total_size(sizeof(u32)) /* BRIDGE_VLANDB_GOPTS_MCAST_LAST_MEMBER_CNT */ in rtnl_vlan_global_opts_nlmsg_size() [all …]
|
| D | br_mdb.c | 42 return nla_total_size(sizeof(u32)) + /* MDBA_ROUTER_PORT */ in __br_rports_one_size() 43 nla_total_size(sizeof(u32)) + /* MDBA_ROUTER_PATTR_TIMER */ in __br_rports_one_size() 44 nla_total_size(sizeof(u8)) + /* MDBA_ROUTER_PATTR_TYPE */ in __br_rports_one_size() 45 nla_total_size(sizeof(u32)) + /* MDBA_ROUTER_PATTR_INET_TIMER */ in __br_rports_one_size() 46 nla_total_size(sizeof(u32)) + /* MDBA_ROUTER_PATTR_INET6_TIMER */ in __br_rports_one_size() 47 nla_total_size(sizeof(u32)); /* MDBA_ROUTER_PATTR_VID */ in __br_rports_one_size() 53 size_t size = nla_total_size(0); /* MDBA_ROUTER */ in br_rports_size() 504 nla_total_size(sizeof(struct br_mdb_entry)) + in rtnl_mdb_nlmsg_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() [all …]
|
| /Linux-v5.15/net/mptcp/ |
| D | diag.c | 85 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-v5.15/net/netfilter/ |
| D | nf_tables_trace.c | 195 nla_total_size(strlen(info->chain->table->name)) + in nft_trace_notify() 196 nla_total_size(strlen(info->chain->name)) + in nft_trace_notify() 198 nla_total_size(sizeof(__be32)) + /* trace type */ in nft_trace_notify() 199 nla_total_size(0) + /* VERDICT, nested */ in nft_trace_notify() 200 nla_total_size(sizeof(u32)) + /* verdict code */ 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() 204 nla_total_size(NFT_TRACETYPE_TRANSPORT_HSIZE) + in nft_trace_notify() 205 nla_total_size(sizeof(u32)) + /* iif */ in nft_trace_notify() [all …]
|
| D | nfnetlink_log.c | 399 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() 405 size += nla_total_size(skb->network_header - skb->mac_header); in nfulnl_get_bridge_size() 640 if (skb_tailroom(inst->skb) < nla_total_size(data_len)) in __build_packet_message() 643 nla = skb_put(inst->skb, nla_total_size(data_len)); in __build_packet_message() 708 + nla_total_size(sizeof(struct nfulnl_msg_packet_hdr)) in nfulnl_log_packet() 709 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet() 710 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet() 712 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet() [all …]
|
| /Linux-v5.15/net/ethtool/ |
| D | coalesce.c | 85 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() 88 nla_total_size(sizeof(u32)) + /* _RX_MAX_FRAMES_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() 92 nla_total_size(sizeof(u32)) + /* _TX_MAX_FRAMES_IRQ */ in coalesce_reply_size() 93 nla_total_size(sizeof(u32)) + /* _STATS_BLOCK_USECS */ in coalesce_reply_size() 94 nla_total_size(sizeof(u8)) + /* _USE_ADAPTIVE_RX */ in coalesce_reply_size() [all …]
|
| D | rings.c | 45 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()
|
| D | channels.c | 47 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()
|
| D | linkinfo.c | 48 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()
|
| D | linkstate.c | 122 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()
|
| D | tunnels.c | 31 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()
|
| D | strset.c | 332 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()
|
| D | stats.c | 167 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()
|
| D | eee.c | 73 len += nla_total_size(sizeof(u8)) + /* _EEE_ACTIVE */ in eee_reply_size() 74 nla_total_size(sizeof(u8)) + /* _EEE_ENABLED */ in eee_reply_size() 75 nla_total_size(sizeof(u8)) + /* _EEE_TX_LPI_ENABLED */ in eee_reply_size() 76 nla_total_size(sizeof(u32)); /* _EEE_TX_LPI_TIMER */ in eee_reply_size()
|
| D | pause.c | 53 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()
|
| D | linkmodes.c | 69 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()
|
| /Linux-v5.15/net/psample/ |
| D | psample.c | 313 int sum = nla_total_size(0); /* PSAMPLE_ATTR_TUNNEL */ in psample_tunnel_meta_len() 319 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() 330 sum += nla_total_size(sizeof(struct in6_addr)); in psample_tunnel_meta_len() 332 sum += nla_total_size(sizeof(struct in6_addr)); in psample_tunnel_meta_len() 336 sum += nla_total_size(sizeof(u8)); in psample_tunnel_meta_len() 337 sum += nla_total_size(sizeof(u8)); /* TTL */ 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() [all …]
|
| /Linux-v5.15/include/linux/ |
| D | inet_diag.h | 67 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-v5.15/drivers/net/can/dev/ |
| D | netlink.c | 235 size += nla_total_size(sizeof(struct can_bittiming)); in can_get_size() 237 size += nla_total_size(sizeof(struct can_bittiming_const)); in can_get_size() 238 size += nla_total_size(sizeof(struct can_clock)); /* IFLA_CAN_CLOCK */ in can_get_size() 239 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_STATE */ in can_get_size() 240 size += nla_total_size(sizeof(struct can_ctrlmode)); /* IFLA_CAN_CTRLMODE */ in can_get_size() 241 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_RESTART_MS */ in can_get_size() 243 size += nla_total_size(sizeof(struct can_berr_counter)); in can_get_size() 245 size += nla_total_size(sizeof(struct can_bittiming)); in can_get_size() 247 size += nla_total_size(sizeof(struct can_bittiming_const)); in can_get_size() 249 size += nla_total_size(sizeof(priv->termination)); /* IFLA_CAN_TERMINATION */ in can_get_size() [all …]
|
| /Linux-v5.15/net/ipv4/ |
| D | ip_tunnel_core.c | 863 opt_len = nla_total_size(0); /* LWTUNNEL_IP_OPTS */ in ip_tun_opts_nlsize() 868 opt_len += nla_total_size(0); /* LWTUNNEL_IP_OPTS_GENEVE */ in ip_tun_opts_nlsize() 871 opt_len += nla_total_size(2) /* OPT_GENEVE_CLASS */ in ip_tun_opts_nlsize() 872 + nla_total_size(1) /* OPT_GENEVE_TYPE */ in ip_tun_opts_nlsize() 873 + nla_total_size(opt->length * 4); in ip_tun_opts_nlsize() 878 opt_len += nla_total_size(0) /* LWTUNNEL_IP_OPTS_VXLAN */ in ip_tun_opts_nlsize() 879 + nla_total_size(4); /* OPT_VXLAN_GBP */ in ip_tun_opts_nlsize() 883 opt_len += nla_total_size(0) /* LWTUNNEL_IP_OPTS_ERSPAN */ in ip_tun_opts_nlsize() 884 + nla_total_size(1) /* OPT_ERSPAN_VER */ in ip_tun_opts_nlsize() 885 + (md->version == 1 ? nla_total_size(4) in ip_tun_opts_nlsize() [all …]
|
| D | ipip.c | 537 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 …]
|
| /Linux-v5.15/net/core/ |
| D | rtnetlink.c | 507 size = nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_slave_info_data_size() 523 size = nla_total_size(sizeof(struct nlattr)) + /* IFLA_LINKINFO */ in rtnl_link_get_size() 524 nla_total_size(strlen(ops->kind) + 1); /* IFLA_INFO_KIND */ in rtnl_link_get_size() 528 size += nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_size() 533 size += nla_total_size(ops->get_xstats_size(dev)); in rtnl_link_get_size() 591 size = nla_total_size(sizeof(struct nlattr)); in rtnl_link_get_af_size() 597 size += nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_af_size() 911 size_t size = nla_total_size(0); in rtnl_vfinfo_size() 913 (nla_total_size(0) + in rtnl_vfinfo_size() 914 nla_total_size(sizeof(struct ifla_vf_mac)) + in rtnl_vfinfo_size() [all …]
|
| D | drop_monitor.c | 543 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() 564 nla_total_size(NET_DM_MAX_SYMBOL_LEN + 1) + 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() [all …]
|