Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
0002 /* Copyright (c) 2021, Mellanox Technologies inc. All rights reserved. */
0003 
0004 #ifndef __MLX5_EN_CHANNELS_H__
0005 #define __MLX5_EN_CHANNELS_H__
0006 
0007 #include <linux/kernel.h>
0008 
0009 struct mlx5e_channels;
0010 
0011 unsigned int mlx5e_channels_get_num(struct mlx5e_channels *chs);
0012 void mlx5e_channels_get_regular_rqn(struct mlx5e_channels *chs, unsigned int ix, u32 *rqn);
0013 bool mlx5e_channels_get_xsk_rqn(struct mlx5e_channels *chs, unsigned int ix, u32 *rqn);
0014 bool mlx5e_channels_get_ptp_rqn(struct mlx5e_channels *chs, u32 *rqn);
0015 
0016 #endif /* __MLX5_EN_CHANNELS_H__ */