| /Linux-v6.1/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() 135 vinfo_sz += nla_total_size(0); /* IFLA_BRIDGE_CFM */ in br_get_link_af_size_filtered() 140 (nla_total_size(sizeof(u32)) in br_get_link_af_size_filtered() 142 + nla_total_size(sizeof(u32)) in br_get_link_af_size_filtered() 144 + nla_total_size(sizeof(u32)) in br_get_link_af_size_filtered() 146 + nla_total_size(sizeof(u32))); in br_get_link_af_size_filtered() 150 (nla_total_size(sizeof(u32)) in br_get_link_af_size_filtered() 152 + nla_total_size(sizeof(u32)) in br_get_link_af_size_filtered() 154 + nla_total_size(sizeof(u32)) in br_get_link_af_size_filtered() 156 + 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() 403 + nla_total_size(0) /* BRIDGE_VLANDB_GLOBAL_OPTIONS */ in rtnl_vlan_global_opts_nlmsg_size() 404 + nla_total_size(sizeof(u16)) /* BRIDGE_VLANDB_GOPTS_ID */ in rtnl_vlan_global_opts_nlmsg_size() 406 + nla_total_size(sizeof(u8)) /* BRIDGE_VLANDB_GOPTS_MCAST_SNOOPING */ in rtnl_vlan_global_opts_nlmsg_size() 407 + nla_total_size(sizeof(u8)) /* BRIDGE_VLANDB_GOPTS_MCAST_IGMP_VERSION */ in rtnl_vlan_global_opts_nlmsg_size() 408 + nla_total_size(sizeof(u8)) /* BRIDGE_VLANDB_GOPTS_MCAST_MLD_VERSION */ in rtnl_vlan_global_opts_nlmsg_size() 409 + 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() 506 nla_total_size(sizeof(struct br_mdb_entry)) + in rtnl_mdb_nlmsg_size() 507 nla_total_size(sizeof(u32)); in rtnl_mdb_nlmsg_size() 515 nlmsg_size += nla_total_size(sizeof(u8)); in rtnl_mdb_nlmsg_size() [all …]
|
| /Linux-v6.1/drivers/net/bonding/ |
| D | bond_netlink.c | 22 return nla_total_size(sizeof(u8)) + /* IFLA_BOND_SLAVE_STATE */ in bond_get_slave_size() 23 nla_total_size(sizeof(u8)) + /* IFLA_BOND_SLAVE_MII_STATUS */ in bond_get_slave_size() 24 nla_total_size(sizeof(u32)) + /* IFLA_BOND_SLAVE_LINK_FAILURE_COUNT */ in bond_get_slave_size() 25 nla_total_size(MAX_ADDR_LEN) + /* IFLA_BOND_SLAVE_PERM_HWADDR */ in bond_get_slave_size() 26 nla_total_size(sizeof(u16)) + /* IFLA_BOND_SLAVE_QUEUE_ID */ in bond_get_slave_size() 27 nla_total_size(sizeof(u16)) + /* IFLA_BOND_SLAVE_AD_AGGREGATOR_ID */ in bond_get_slave_size() 28 nla_total_size(sizeof(u8)) + /* IFLA_BOND_SLAVE_AD_ACTOR_OPER_PORT_STATE */ in bond_get_slave_size() 29 nla_total_size(sizeof(u16)) + /* IFLA_BOND_SLAVE_AD_PARTNER_OPER_PORT_STATE */ in bond_get_slave_size() 30 nla_total_size(sizeof(s32)) + /* IFLA_BOND_SLAVE_PRIO */ in bond_get_slave_size() 573 return nla_total_size(sizeof(u8)) + /* IFLA_BOND_MODE */ in bond_get_size() [all …]
|
| /Linux-v6.1/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-v6.1/net/netfilter/ |
| D | nf_tables_trace.c | 180 nla_total_size(strlen(info->chain->table->name)) + in nft_trace_notify() 181 nla_total_size(strlen(info->chain->name)) + in nft_trace_notify() 183 nla_total_size(sizeof(__be32)) + /* trace type */ in nft_trace_notify() 184 nla_total_size(0) + /* VERDICT, nested */ in nft_trace_notify() 185 nla_total_size(sizeof(u32)) + /* verdict code */ in nft_trace_notify() 186 nla_total_size(sizeof(u32)) + /* id */ in nft_trace_notify() 187 nla_total_size(NFT_TRACETYPE_LL_HSIZE) + in nft_trace_notify() 188 nla_total_size(NFT_TRACETYPE_NETWORK_HSIZE) + in nft_trace_notify() 189 nla_total_size(NFT_TRACETYPE_TRANSPORT_HSIZE) + in nft_trace_notify() 190 nla_total_size(sizeof(u32)) + /* iif */ in nft_trace_notify() [all …]
|
| D | nfnetlink_log.c | 400 size += nla_total_size(0); /* nested */ in nfulnl_get_bridge_size() 401 size += nla_total_size(sizeof(u16)); /* id */ in nfulnl_get_bridge_size() 402 size += nla_total_size(sizeof(u16)); /* tag */ in nfulnl_get_bridge_size() 406 size += nla_total_size(skb->network_header - skb->mac_header); in nfulnl_get_bridge_size() 644 if (skb_tailroom(inst->skb) < nla_total_size(data_len)) in __build_packet_message() 647 nla = skb_put(inst->skb, nla_total_size(data_len)); in __build_packet_message() 712 + nla_total_size(sizeof(struct nfulnl_msg_packet_hdr)) in nfulnl_log_packet() 713 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet() 714 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet() 716 + nla_total_size(sizeof(u_int32_t)) /* ifindex */ in nfulnl_log_packet() [all …]
|
| /Linux-v6.1/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 | 48 return nla_total_size(sizeof(u32)) + /* _RINGS_RX_MAX */ in rings_reply_size() 49 nla_total_size(sizeof(u32)) + /* _RINGS_RX_MINI_MAX */ in rings_reply_size() 50 nla_total_size(sizeof(u32)) + /* _RINGS_RX_JUMBO_MAX */ in rings_reply_size() 51 nla_total_size(sizeof(u32)) + /* _RINGS_TX_MAX */ in rings_reply_size() 52 nla_total_size(sizeof(u32)) + /* _RINGS_RX */ in rings_reply_size() 53 nla_total_size(sizeof(u32)) + /* _RINGS_RX_MINI */ in rings_reply_size() 54 nla_total_size(sizeof(u32)) + /* _RINGS_RX_JUMBO */ in rings_reply_size() 55 nla_total_size(sizeof(u32)) + /* _RINGS_TX */ in rings_reply_size() 56 nla_total_size(sizeof(u32)) + /* _RINGS_RX_BUF_LEN */ in rings_reply_size() 57 nla_total_size(sizeof(u8)) + /* _RINGS_TCP_DATA_SPLIT */ in rings_reply_size() [all …]
|
| 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 | 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() 73 + nla_total_size(sizeof(u8)) /* LINKMODES_RATE_MATCHING */ in linkmodes_reply_size() 92 len += nla_total_size(sizeof(u8)); in linkmodes_reply_size() 95 len += nla_total_size(sizeof(u8)); in linkmodes_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 | 166 len += (nla_total_size(0) + /* _A_STATS_GRP_HIST */ in stats_reply_size() 167 nla_total_size(4) + /* _A_STATS_GRP_HIST_BKT_LOW */ in stats_reply_size() 168 nla_total_size(4)) * /* _A_STATS_GRP_HIST_BKT_HI */ in stats_reply_size() 172 len += n_grps * (nla_total_size(0) + /* _A_STATS_GRP */ in stats_reply_size() 173 nla_total_size(4) + /* _A_STATS_GRP_ID */ in stats_reply_size() 174 nla_total_size(4)); /* _A_STATS_GRP_SS_ID */ in stats_reply_size() 175 len += n_stats * (nla_total_size(0) + /* _A_STATS_GRP_STAT */ in stats_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 | 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()
|
| /Linux-v6.1/net/psample/ |
| D | psample.c | 314 int sum = nla_total_size(0); /* PSAMPLE_ATTR_TUNNEL */ in psample_tunnel_meta_len() 320 sum += nla_total_size(0); in psample_tunnel_meta_len() 325 sum += nla_total_size(sizeof(u32)); in psample_tunnel_meta_len() 327 sum += nla_total_size(sizeof(u32)); in psample_tunnel_meta_len() 331 sum += nla_total_size(sizeof(struct in6_addr)); in psample_tunnel_meta_len() 333 sum += nla_total_size(sizeof(struct in6_addr)); in psample_tunnel_meta_len() 337 sum += nla_total_size(sizeof(u8)); in psample_tunnel_meta_len() 338 sum += nla_total_size(sizeof(u8)); /* TTL */ in psample_tunnel_meta_len() 340 sum += nla_total_size(0); in psample_tunnel_meta_len() 342 sum += nla_total_size(0); in psample_tunnel_meta_len() [all …]
|
| /Linux-v6.1/drivers/net/can/dev/ |
| D | netlink.c | 365 size = nla_total_size(0); /* nest IFLA_CAN_TDC */ in can_tdc_get_size() 367 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_TDCV_MIN */ in can_tdc_get_size() 368 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_TDCV_MAX */ in can_tdc_get_size() 370 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_TDCO_MIN */ in can_tdc_get_size() 371 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_TDCO_MAX */ in can_tdc_get_size() 373 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_TDCF_MIN */ in can_tdc_get_size() 374 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_TDCF_MAX */ in can_tdc_get_size() 380 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_TDCV */ in can_tdc_get_size() 381 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_TDCO */ in can_tdc_get_size() 383 size += nla_total_size(sizeof(u32)); /* IFLA_CAN_TDCF */ in can_tdc_get_size() [all …]
|
| /Linux-v6.1/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-v6.1/net/ipv4/ |
| D | ipip.c | 481 nla_total_size(4) + in ipip_get_size() 483 nla_total_size(4) + in ipip_get_size() 485 nla_total_size(4) + in ipip_get_size() 487 nla_total_size(1) + in ipip_get_size() 489 nla_total_size(1) + in ipip_get_size() 491 nla_total_size(1) + in ipip_get_size() 493 nla_total_size(1) + in ipip_get_size() 495 nla_total_size(2) + in ipip_get_size() 497 nla_total_size(2) + in ipip_get_size() 499 nla_total_size(2) + in ipip_get_size() [all …]
|
| 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 …]
|
| /Linux-v6.1/net/core/ |
| D | rtnetlink.c | 544 size = nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_slave_info_data_size() 560 size = nla_total_size(sizeof(struct nlattr)) + /* IFLA_LINKINFO */ in rtnl_link_get_size() 561 nla_total_size(strlen(ops->kind) + 1); /* IFLA_INFO_KIND */ in rtnl_link_get_size() 565 size += nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_size() 570 size += nla_total_size(ops->get_xstats_size(dev)); in rtnl_link_get_size() 628 size = nla_total_size(sizeof(struct nlattr)); in rtnl_link_get_af_size() 634 size += nla_total_size(sizeof(struct nlattr)) + in rtnl_link_get_af_size() 946 size_t size = nla_total_size(0); in rtnl_vfinfo_size() 948 (nla_total_size(0) + in rtnl_vfinfo_size() 949 nla_total_size(sizeof(struct ifla_vf_mac)) + in rtnl_vfinfo_size() [all …]
|
| D | drop_monitor.c | 547 return nla_total_size(0) + in net_dm_in_port_size() 549 nla_total_size(sizeof(u32)) + in net_dm_in_port_size() 551 nla_total_size(IFNAMSIZ + 1); in net_dm_in_port_size() 565 nla_total_size(sizeof(u16)) + in net_dm_packet_report_size() 567 nla_total_size(sizeof(u64)) + in net_dm_packet_report_size() 569 nla_total_size(NET_DM_MAX_SYMBOL_LEN + 1) + in net_dm_packet_report_size() 573 nla_total_size(sizeof(u64)) + in net_dm_packet_report_size() 575 nla_total_size(sizeof(u32)) + in net_dm_packet_report_size() 577 nla_total_size(sizeof(u16)) + in net_dm_packet_report_size() 579 nla_total_size(strlen(drop_reasons[reason]) + 1) + in net_dm_packet_report_size() [all …]
|