2018-08-28 12:44:32 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/* Copyright(c) 2018 Intel Corporation. */
|
|
|
|
|
|
|
|
#ifndef _I40E_XSK_H_
|
|
|
|
#define _I40E_XSK_H_
|
|
|
|
|
|
|
|
struct i40e_vsi;
|
2020-08-28 08:26:15 +00:00
|
|
|
struct xsk_buff_pool;
|
2018-08-28 12:44:32 +00:00
|
|
|
struct zero_copy_allocator;
|
|
|
|
|
|
|
|
int i40e_queue_pair_disable(struct i40e_vsi *vsi, int queue_pair);
|
|
|
|
int i40e_queue_pair_enable(struct i40e_vsi *vsi, int queue_pair);
|
2020-08-28 08:26:15 +00:00
|
|
|
int i40e_xsk_pool_setup(struct i40e_vsi *vsi, struct xsk_buff_pool *pool,
|
2018-08-28 12:44:32 +00:00
|
|
|
u16 qid);
|
|
|
|
bool i40e_alloc_rx_buffers_zc(struct i40e_ring *rx_ring, u16 cleaned_count);
|
|
|
|
int i40e_clean_rx_irq_zc(struct i40e_ring *rx_ring, int budget);
|
|
|
|
|
2020-06-23 09:44:16 +00:00
|
|
|
bool i40e_clean_xdp_tx_irq(struct i40e_vsi *vsi, struct i40e_ring *tx_ring);
|
2019-08-14 07:27:16 +00:00
|
|
|
int i40e_xsk_wakeup(struct net_device *dev, u32 queue_id, u32 flags);
|
2020-05-20 19:20:55 +00:00
|
|
|
int i40e_alloc_rx_bi_zc(struct i40e_ring *rx_ring);
|
|
|
|
void i40e_clear_rx_bi_zc(struct i40e_ring *rx_ring);
|
2018-08-28 12:44:34 +00:00
|
|
|
|
2018-08-28 12:44:32 +00:00
|
|
|
#endif /* _I40E_XSK_H_ */
|