Searched refs:mlx4_en_stats (Results 1 - 1 of 1) sorted by relevance
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_port.c | 152 struct mlx4_en_stat_out_mbox *mlx4_en_stats; mlx4_en_DUMP_ETH_STATS() local 170 mlx4_en_stats = mailbox->buf; mlx4_en_DUMP_ETH_STATS() 207 stats->rx_errors = be64_to_cpu(mlx4_en_stats->PCS) + mlx4_en_DUMP_ETH_STATS() 208 be32_to_cpu(mlx4_en_stats->RJBBR) + mlx4_en_DUMP_ETH_STATS() 209 be32_to_cpu(mlx4_en_stats->RCRC) + mlx4_en_DUMP_ETH_STATS() 210 be32_to_cpu(mlx4_en_stats->RRUNT) + mlx4_en_DUMP_ETH_STATS() 211 be64_to_cpu(mlx4_en_stats->RInRangeLengthErr) + mlx4_en_DUMP_ETH_STATS() 212 be64_to_cpu(mlx4_en_stats->ROutRangeLengthErr) + mlx4_en_DUMP_ETH_STATS() 213 be32_to_cpu(mlx4_en_stats->RSHORT) + mlx4_en_DUMP_ETH_STATS() 214 en_stats_adder(&mlx4_en_stats->RGIANT_prio_0, mlx4_en_DUMP_ETH_STATS() 215 &mlx4_en_stats->RGIANT_prio_1, mlx4_en_DUMP_ETH_STATS() 217 stats->tx_errors = en_stats_adder(&mlx4_en_stats->TGIANT_prio_0, mlx4_en_DUMP_ETH_STATS() 218 &mlx4_en_stats->TGIANT_prio_1, mlx4_en_DUMP_ETH_STATS() 220 stats->multicast = en_stats_adder(&mlx4_en_stats->MCAST_prio_0, mlx4_en_DUMP_ETH_STATS() 221 &mlx4_en_stats->MCAST_prio_1, mlx4_en_DUMP_ETH_STATS() 224 stats->rx_dropped = be32_to_cpu(mlx4_en_stats->RDROP); mlx4_en_DUMP_ETH_STATS() 225 stats->rx_length_errors = be32_to_cpu(mlx4_en_stats->RdropLength); mlx4_en_DUMP_ETH_STATS() 227 stats->rx_crc_errors = be32_to_cpu(mlx4_en_stats->RCRC); mlx4_en_DUMP_ETH_STATS() 229 stats->rx_fifo_errors = be32_to_cpu(mlx4_en_stats->RdropOvflw); mlx4_en_DUMP_ETH_STATS() 236 stats->tx_dropped = be32_to_cpu(mlx4_en_stats->TDROP); mlx4_en_DUMP_ETH_STATS() 241 en_stats_adder(&mlx4_en_stats->RBCAST_prio_0, mlx4_en_DUMP_ETH_STATS() 242 &mlx4_en_stats->RBCAST_prio_1, mlx4_en_DUMP_ETH_STATS() 244 priv->pkstats.rx_jabbers = be32_to_cpu(mlx4_en_stats->RJBBR); mlx4_en_DUMP_ETH_STATS() 246 be64_to_cpu(mlx4_en_stats->RInRangeLengthErr); mlx4_en_DUMP_ETH_STATS() 248 be64_to_cpu(mlx4_en_stats->ROutRangeLengthErr); mlx4_en_DUMP_ETH_STATS() 252 en_stats_adder(&mlx4_en_stats->TMCAST_prio_0, mlx4_en_DUMP_ETH_STATS() 253 &mlx4_en_stats->TMCAST_prio_1, mlx4_en_DUMP_ETH_STATS() 256 en_stats_adder(&mlx4_en_stats->TBCAST_prio_0, mlx4_en_DUMP_ETH_STATS() 257 &mlx4_en_stats->TBCAST_prio_1, mlx4_en_DUMP_ETH_STATS() 260 priv->pkstats.rx_prio[0][0] = be64_to_cpu(mlx4_en_stats->RTOT_prio_0); mlx4_en_DUMP_ETH_STATS() 261 priv->pkstats.rx_prio[0][1] = be64_to_cpu(mlx4_en_stats->ROCT_prio_0); mlx4_en_DUMP_ETH_STATS() 262 priv->pkstats.rx_prio[1][0] = be64_to_cpu(mlx4_en_stats->RTOT_prio_1); mlx4_en_DUMP_ETH_STATS() 263 priv->pkstats.rx_prio[1][1] = be64_to_cpu(mlx4_en_stats->ROCT_prio_1); mlx4_en_DUMP_ETH_STATS() 264 priv->pkstats.rx_prio[2][0] = be64_to_cpu(mlx4_en_stats->RTOT_prio_2); mlx4_en_DUMP_ETH_STATS() 265 priv->pkstats.rx_prio[2][1] = be64_to_cpu(mlx4_en_stats->ROCT_prio_2); mlx4_en_DUMP_ETH_STATS() 266 priv->pkstats.rx_prio[3][0] = be64_to_cpu(mlx4_en_stats->RTOT_prio_3); mlx4_en_DUMP_ETH_STATS() 267 priv->pkstats.rx_prio[3][1] = be64_to_cpu(mlx4_en_stats->ROCT_prio_3); mlx4_en_DUMP_ETH_STATS() 268 priv->pkstats.rx_prio[4][0] = be64_to_cpu(mlx4_en_stats->RTOT_prio_4); mlx4_en_DUMP_ETH_STATS() 269 priv->pkstats.rx_prio[4][1] = be64_to_cpu(mlx4_en_stats->ROCT_prio_4); mlx4_en_DUMP_ETH_STATS() 270 priv->pkstats.rx_prio[5][0] = be64_to_cpu(mlx4_en_stats->RTOT_prio_5); mlx4_en_DUMP_ETH_STATS() 271 priv->pkstats.rx_prio[5][1] = be64_to_cpu(mlx4_en_stats->ROCT_prio_5); mlx4_en_DUMP_ETH_STATS() 272 priv->pkstats.rx_prio[6][0] = be64_to_cpu(mlx4_en_stats->RTOT_prio_6); mlx4_en_DUMP_ETH_STATS() 273 priv->pkstats.rx_prio[6][1] = be64_to_cpu(mlx4_en_stats->ROCT_prio_6); mlx4_en_DUMP_ETH_STATS() 274 priv->pkstats.rx_prio[7][0] = be64_to_cpu(mlx4_en_stats->RTOT_prio_7); mlx4_en_DUMP_ETH_STATS() 275 priv->pkstats.rx_prio[7][1] = be64_to_cpu(mlx4_en_stats->ROCT_prio_7); mlx4_en_DUMP_ETH_STATS() 276 priv->pkstats.rx_prio[8][0] = be64_to_cpu(mlx4_en_stats->RTOT_novlan); mlx4_en_DUMP_ETH_STATS() 277 priv->pkstats.rx_prio[8][1] = be64_to_cpu(mlx4_en_stats->ROCT_novlan); mlx4_en_DUMP_ETH_STATS() 278 priv->pkstats.tx_prio[0][0] = be64_to_cpu(mlx4_en_stats->TTOT_prio_0); mlx4_en_DUMP_ETH_STATS() 279 priv->pkstats.tx_prio[0][1] = be64_to_cpu(mlx4_en_stats->TOCT_prio_0); mlx4_en_DUMP_ETH_STATS() 280 priv->pkstats.tx_prio[1][0] = be64_to_cpu(mlx4_en_stats->TTOT_prio_1); mlx4_en_DUMP_ETH_STATS() 281 priv->pkstats.tx_prio[1][1] = be64_to_cpu(mlx4_en_stats->TOCT_prio_1); mlx4_en_DUMP_ETH_STATS() 282 priv->pkstats.tx_prio[2][0] = be64_to_cpu(mlx4_en_stats->TTOT_prio_2); mlx4_en_DUMP_ETH_STATS() 283 priv->pkstats.tx_prio[2][1] = be64_to_cpu(mlx4_en_stats->TOCT_prio_2); mlx4_en_DUMP_ETH_STATS() 284 priv->pkstats.tx_prio[3][0] = be64_to_cpu(mlx4_en_stats->TTOT_prio_3); mlx4_en_DUMP_ETH_STATS() 285 priv->pkstats.tx_prio[3][1] = be64_to_cpu(mlx4_en_stats->TOCT_prio_3); mlx4_en_DUMP_ETH_STATS() 286 priv->pkstats.tx_prio[4][0] = be64_to_cpu(mlx4_en_stats->TTOT_prio_4); mlx4_en_DUMP_ETH_STATS() 287 priv->pkstats.tx_prio[4][1] = be64_to_cpu(mlx4_en_stats->TOCT_prio_4); mlx4_en_DUMP_ETH_STATS() 288 priv->pkstats.tx_prio[5][0] = be64_to_cpu(mlx4_en_stats->TTOT_prio_5); mlx4_en_DUMP_ETH_STATS() 289 priv->pkstats.tx_prio[5][1] = be64_to_cpu(mlx4_en_stats->TOCT_prio_5); mlx4_en_DUMP_ETH_STATS() 290 priv->pkstats.tx_prio[6][0] = be64_to_cpu(mlx4_en_stats->TTOT_prio_6); mlx4_en_DUMP_ETH_STATS() 291 priv->pkstats.tx_prio[6][1] = be64_to_cpu(mlx4_en_stats->TOCT_prio_6); mlx4_en_DUMP_ETH_STATS() 292 priv->pkstats.tx_prio[7][0] = be64_to_cpu(mlx4_en_stats->TTOT_prio_7); mlx4_en_DUMP_ETH_STATS() 293 priv->pkstats.tx_prio[7][1] = be64_to_cpu(mlx4_en_stats->TOCT_prio_7); mlx4_en_DUMP_ETH_STATS() 294 priv->pkstats.tx_prio[8][0] = be64_to_cpu(mlx4_en_stats->TTOT_novlan); mlx4_en_DUMP_ETH_STATS() 295 priv->pkstats.tx_prio[8][1] = be64_to_cpu(mlx4_en_stats->TOCT_novlan); mlx4_en_DUMP_ETH_STATS()
|
Completed in 86 milliseconds