1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
2 /* Copyright (c) 2019 Mellanox Technologies. */
4 #ifndef __MLX5_EN_XSK_TX_H__
5 #define __MLX5_EN_XSK_TX_H__
8 #include <net/xdp_sock.h>
12 int mlx5e_xsk_wakeup(struct net_device *dev, u32 qid, u32 flags);
14 bool mlx5e_xsk_tx(struct mlx5e_xdpsq *sq, unsigned int budget);
16 static inline void mlx5e_xsk_update_tx_wakeup(struct mlx5e_xdpsq *sq)
18 if (!xsk_umem_uses_need_wakeup(sq->umem))
22 xsk_clear_tx_need_wakeup(sq->umem);
24 xsk_set_tx_need_wakeup(sq->umem);
27 #endif /* __MLX5_EN_XSK_TX_H__ */