@@ -2175,26 +2175,35 @@ int mlx5_eswitch_get_vport_stats(struct mlx5_eswitch *esw,
2175
2175
memset (vf_stats , 0 , sizeof (* vf_stats ));
2176
2176
vf_stats -> rx_packets =
2177
2177
MLX5_GET_CTR (out , received_eth_unicast .packets ) +
2178
+ MLX5_GET_CTR (out , received_ib_unicast .packets ) +
2178
2179
MLX5_GET_CTR (out , received_eth_multicast .packets ) +
2180
+ MLX5_GET_CTR (out , received_ib_multicast .packets ) +
2179
2181
MLX5_GET_CTR (out , received_eth_broadcast .packets );
2180
2182
2181
2183
vf_stats -> rx_bytes =
2182
2184
MLX5_GET_CTR (out , received_eth_unicast .octets ) +
2185
+ MLX5_GET_CTR (out , received_ib_unicast .octets ) +
2183
2186
MLX5_GET_CTR (out , received_eth_multicast .octets ) +
2187
+ MLX5_GET_CTR (out , received_ib_multicast .octets ) +
2184
2188
MLX5_GET_CTR (out , received_eth_broadcast .octets );
2185
2189
2186
2190
vf_stats -> tx_packets =
2187
2191
MLX5_GET_CTR (out , transmitted_eth_unicast .packets ) +
2192
+ MLX5_GET_CTR (out , transmitted_ib_unicast .packets ) +
2188
2193
MLX5_GET_CTR (out , transmitted_eth_multicast .packets ) +
2194
+ MLX5_GET_CTR (out , transmitted_ib_multicast .packets ) +
2189
2195
MLX5_GET_CTR (out , transmitted_eth_broadcast .packets );
2190
2196
2191
2197
vf_stats -> tx_bytes =
2192
2198
MLX5_GET_CTR (out , transmitted_eth_unicast .octets ) +
2199
+ MLX5_GET_CTR (out , transmitted_ib_unicast .octets ) +
2193
2200
MLX5_GET_CTR (out , transmitted_eth_multicast .octets ) +
2201
+ MLX5_GET_CTR (out , transmitted_ib_multicast .octets ) +
2194
2202
MLX5_GET_CTR (out , transmitted_eth_broadcast .octets );
2195
2203
2196
2204
vf_stats -> multicast =
2197
- MLX5_GET_CTR (out , received_eth_multicast .packets );
2205
+ MLX5_GET_CTR (out , received_eth_multicast .packets ) +
2206
+ MLX5_GET_CTR (out , received_ib_multicast .packets );
2198
2207
2199
2208
vf_stats -> broadcast =
2200
2209
MLX5_GET_CTR (out , received_eth_broadcast .packets );
0 commit comments