Skip to content

Commit f58ee09

Browse files
CCX-Stingraydavem330
authored andcommitted
net/mlx5e: Move interrupt moderation forward declarations
Move these to newly created file to prepare to move these functions to a library. Signed-off-by: Andy Gospodarek <[email protected]> Acked-by: Tal Gilboa <[email protected]> Acked-by: Saeed Mahameed <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 98dd1ed commit f58ee09

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -834,10 +834,6 @@ void mlx5e_dealloc_rx_wqe(struct mlx5e_rq *rq, u16 ix);
834834
void mlx5e_dealloc_rx_mpwqe(struct mlx5e_rq *rq, u16 ix);
835835
void mlx5e_free_rx_mpwqe(struct mlx5e_rq *rq, struct mlx5e_mpw_info *wi);
836836

837-
void mlx5e_rx_am(struct mlx5e_rq *rq);
838-
void mlx5e_rx_am_work(struct work_struct *work);
839-
struct mlx5e_cq_moder mlx5e_am_get_def_profile(u8 rx_cq_period_mode);
840-
841837
void mlx5e_update_stats(struct mlx5e_priv *priv, bool full);
842838

843839
int mlx5e_create_flow_steering(struct mlx5e_priv *priv);

drivers/net/ethernet/mellanox/mlx5/core/en_dim.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,9 @@ struct mlx5e_rx_am { /* Adaptive Moderation */
6666
u8 tired;
6767
};
6868

69+
struct mlx5e_rq;
70+
void mlx5e_rx_am(struct mlx5e_rq *rq);
71+
void mlx5e_rx_am_work(struct work_struct *work);
72+
struct mlx5e_cq_moder mlx5e_am_get_def_profile(u8 rx_cq_period_mode);
73+
6974
#endif /* MLX5_AM_H */

0 commit comments

Comments
 (0)