This source file includes following definitions.
- mlx5e_xsk_update_tx_wakeup
1
2
3
4 #ifndef __MLX5_EN_XSK_TX_H__
5 #define __MLX5_EN_XSK_TX_H__
6
7 #include "en.h"
8 #include <net/xdp_sock.h>
9
10
11
12 int mlx5e_xsk_wakeup(struct net_device *dev, u32 qid, u32 flags);
13
14 bool mlx5e_xsk_tx(struct mlx5e_xdpsq *sq, unsigned int budget);
15
16 static inline void mlx5e_xsk_update_tx_wakeup(struct mlx5e_xdpsq *sq)
17 {
18 if (!xsk_umem_uses_need_wakeup(sq->umem))
19 return;
20
21 if (sq->pc != sq->cc)
22 xsk_clear_tx_need_wakeup(sq->umem);
23 else
24 xsk_set_tx_need_wakeup(sq->umem);
25 }
26
27 #endif