Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v6.15 34 lines 1.2 kB view raw
1/* SPDX-License-Identifier: GPL-2.0 */ 2/* Copyright(c) 2018 Intel Corporation. */ 3 4#ifndef _I40E_XSK_H_ 5#define _I40E_XSK_H_ 6 7#include <linux/types.h> 8 9/* This value should match the pragma in the unrolled_count() 10 * macro. Why 4? It is strictly empirical. It seems to be a good 11 * compromise between the advantage of having simultaneous outstanding 12 * reads to the DMA array that can hide each others latency and the 13 * disadvantage of having a larger code path. 14 */ 15#define PKTS_PER_BATCH 4 16 17struct i40e_ring; 18struct i40e_vsi; 19struct net_device; 20struct xsk_buff_pool; 21 22int i40e_queue_pair_disable(struct i40e_vsi *vsi, int queue_pair); 23int i40e_queue_pair_enable(struct i40e_vsi *vsi, int queue_pair); 24int i40e_xsk_pool_setup(struct i40e_vsi *vsi, struct xsk_buff_pool *pool, 25 u16 qid); 26bool i40e_alloc_rx_buffers_zc(struct i40e_ring *rx_ring, u16 cleaned_count); 27int i40e_clean_rx_irq_zc(struct i40e_ring *rx_ring, int budget); 28 29bool i40e_clean_xdp_tx_irq(struct i40e_vsi *vsi, struct i40e_ring *tx_ring); 30int i40e_xsk_wakeup(struct net_device *dev, u32 queue_id, u32 flags); 31int i40e_realloc_rx_bi_zc(struct i40e_vsi *vsi, bool zc); 32void i40e_clear_rx_bi_zc(struct i40e_ring *rx_ring); 33 34#endif /* _I40E_XSK_H_ */