37
37
#include "en/ptp.h"
38
38
#include "en/port.h"
39
39
40
- #ifdef CONFIG_PAGE_POOL_STATS
41
40
#include <net/page_pool/helpers.h>
42
- #endif
43
41
44
42
void mlx5e_ethtool_put_stat (u64 * * data , u64 val )
45
43
{
@@ -196,7 +194,6 @@ static const struct counter_desc sw_stats_desc[] = {
196
194
{ MLX5E_DECLARE_STAT (struct mlx5e_sw_stats , rx_arfs_err ) },
197
195
#endif
198
196
{ MLX5E_DECLARE_STAT (struct mlx5e_sw_stats , rx_recover ) },
199
- #ifdef CONFIG_PAGE_POOL_STATS
200
197
{ MLX5E_DECLARE_STAT (struct mlx5e_sw_stats , rx_pp_alloc_fast ) },
201
198
{ MLX5E_DECLARE_STAT (struct mlx5e_sw_stats , rx_pp_alloc_slow ) },
202
199
{ MLX5E_DECLARE_STAT (struct mlx5e_sw_stats , rx_pp_alloc_slow_high_order ) },
@@ -208,7 +205,6 @@ static const struct counter_desc sw_stats_desc[] = {
208
205
{ MLX5E_DECLARE_STAT (struct mlx5e_sw_stats , rx_pp_recycle_ring ) },
209
206
{ MLX5E_DECLARE_STAT (struct mlx5e_sw_stats , rx_pp_recycle_ring_full ) },
210
207
{ MLX5E_DECLARE_STAT (struct mlx5e_sw_stats , rx_pp_recycle_released_ref ) },
211
- #endif
212
208
#ifdef CONFIG_MLX5_EN_TLS
213
209
{ MLX5E_DECLARE_STAT (struct mlx5e_sw_stats , rx_tls_decrypted_packets ) },
214
210
{ MLX5E_DECLARE_STAT (struct mlx5e_sw_stats , rx_tls_decrypted_bytes ) },
@@ -377,7 +373,6 @@ static void mlx5e_stats_grp_sw_update_stats_rq_stats(struct mlx5e_sw_stats *s,
377
373
s -> rx_arfs_err += rq_stats -> arfs_err ;
378
374
#endif
379
375
s -> rx_recover += rq_stats -> recover ;
380
- #ifdef CONFIG_PAGE_POOL_STATS
381
376
s -> rx_pp_alloc_fast += rq_stats -> pp_alloc_fast ;
382
377
s -> rx_pp_alloc_slow += rq_stats -> pp_alloc_slow ;
383
378
s -> rx_pp_alloc_empty += rq_stats -> pp_alloc_empty ;
@@ -389,7 +384,6 @@ static void mlx5e_stats_grp_sw_update_stats_rq_stats(struct mlx5e_sw_stats *s,
389
384
s -> rx_pp_recycle_ring += rq_stats -> pp_recycle_ring ;
390
385
s -> rx_pp_recycle_ring_full += rq_stats -> pp_recycle_ring_full ;
391
386
s -> rx_pp_recycle_released_ref += rq_stats -> pp_recycle_released_ref ;
392
- #endif
393
387
#ifdef CONFIG_MLX5_EN_TLS
394
388
s -> rx_tls_decrypted_packets += rq_stats -> tls_decrypted_packets ;
395
389
s -> rx_tls_decrypted_bytes += rq_stats -> tls_decrypted_bytes ;
@@ -496,7 +490,6 @@ static void mlx5e_stats_grp_sw_update_stats_qos(struct mlx5e_priv *priv,
496
490
}
497
491
}
498
492
499
- #ifdef CONFIG_PAGE_POOL_STATS
500
493
static void mlx5e_stats_update_stats_rq_page_pool (struct mlx5e_channel * c )
501
494
{
502
495
struct mlx5e_rq_stats * rq_stats = c -> rq .stats ;
@@ -519,11 +512,6 @@ static void mlx5e_stats_update_stats_rq_page_pool(struct mlx5e_channel *c)
519
512
rq_stats -> pp_recycle_ring_full = stats .recycle_stats .ring_full ;
520
513
rq_stats -> pp_recycle_released_ref = stats .recycle_stats .released_refcnt ;
521
514
}
522
- #else
523
- static void mlx5e_stats_update_stats_rq_page_pool (struct mlx5e_channel * c )
524
- {
525
- }
526
- #endif
527
515
528
516
static MLX5E_DECLARE_STATS_GRP_OP_UPDATE_STATS (sw )
529
517
{
@@ -2131,7 +2119,6 @@ static const struct counter_desc rq_stats_desc[] = {
2131
2119
{ MLX5E_DECLARE_RX_STAT (struct mlx5e_rq_stats , arfs_err ) },
2132
2120
#endif
2133
2121
{ MLX5E_DECLARE_RX_STAT (struct mlx5e_rq_stats , recover ) },
2134
- #ifdef CONFIG_PAGE_POOL_STATS
2135
2122
{ MLX5E_DECLARE_RX_STAT (struct mlx5e_rq_stats , pp_alloc_fast ) },
2136
2123
{ MLX5E_DECLARE_RX_STAT (struct mlx5e_rq_stats , pp_alloc_slow ) },
2137
2124
{ MLX5E_DECLARE_RX_STAT (struct mlx5e_rq_stats , pp_alloc_slow_high_order ) },
@@ -2143,7 +2130,6 @@ static const struct counter_desc rq_stats_desc[] = {
2143
2130
{ MLX5E_DECLARE_RX_STAT (struct mlx5e_rq_stats , pp_recycle_ring ) },
2144
2131
{ MLX5E_DECLARE_RX_STAT (struct mlx5e_rq_stats , pp_recycle_ring_full ) },
2145
2132
{ MLX5E_DECLARE_RX_STAT (struct mlx5e_rq_stats , pp_recycle_released_ref ) },
2146
- #endif
2147
2133
#ifdef CONFIG_MLX5_EN_TLS
2148
2134
{ MLX5E_DECLARE_RX_STAT (struct mlx5e_rq_stats , tls_decrypted_packets ) },
2149
2135
{ MLX5E_DECLARE_RX_STAT (struct mlx5e_rq_stats , tls_decrypted_bytes ) },
0 commit comments