Lines Matching refs:ns

185 PrintThreadNetworkStats(mtcp_manager_t mtcp, struct net_stat *ns)  in PrintThreadNetworkStats()  argument
190 ns->rx_packets[i] = mtcp->nstat.rx_packets[i] - mtcp->p_nstat.rx_packets[i]; in PrintThreadNetworkStats()
191 ns->rx_errors[i] = mtcp->nstat.rx_errors[i] - mtcp->p_nstat.rx_errors[i]; in PrintThreadNetworkStats()
192 ns->rx_bytes[i] = mtcp->nstat.rx_bytes[i] - mtcp->p_nstat.rx_bytes[i]; in PrintThreadNetworkStats()
193 ns->tx_packets[i] = mtcp->nstat.tx_packets[i] - mtcp->p_nstat.tx_packets[i]; in PrintThreadNetworkStats()
194 ns->tx_drops[i] = mtcp->nstat.tx_drops[i] - mtcp->p_nstat.tx_drops[i]; in PrintThreadNetworkStats()
195 ns->tx_bytes[i] = mtcp->nstat.tx_bytes[i] - mtcp->p_nstat.tx_bytes[i]; in PrintThreadNetworkStats()
204 (long long unsigned)ns->rx_packets[i], in PrintThreadNetworkStats()
205 (long long unsigned)ns->rx_errors[i], in PrintThreadNetworkStats()
206 GBPS(ns->rx_bytes[i]), in PrintThreadNetworkStats()
207 (long long unsigned)ns->tx_packets[i], in PrintThreadNetworkStats()
208 GBPS(ns->tx_bytes[i])); in PrintThreadNetworkStats()
291 struct net_stat ns; in PrintNetworkStats() local
320 PrintThreadNetworkStats(g_mtcp[i], &ns); in PrintNetworkStats()
324 g_nstat.rx_packets[j] += ns.rx_packets[j]; in PrintNetworkStats()
325 g_nstat.rx_errors[j] += ns.rx_errors[j]; in PrintNetworkStats()
326 g_nstat.rx_bytes[j] += ns.rx_bytes[j]; in PrintNetworkStats()
327 g_nstat.tx_packets[j] += ns.tx_packets[j]; in PrintNetworkStats()
328 g_nstat.tx_drops[j] += ns.tx_drops[j]; in PrintNetworkStats()
329 g_nstat.tx_bytes[j] += ns.tx_bytes[j]; in PrintNetworkStats()