File Index
Files and directories
Sign in
FILE

otx2_xsk.h

File preview with syntax highlighting.

linux-6.19.14/drivers/net/ethernet/marvell/octeontx2/nic/otx2_xsk.h OBJECTIVE-C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2/* Marvell RVU PF/VF Netdev Devlink
 3 *
 4 * Copyright (C) 2024 Marvell.
 5 *
 6 */
 7
 8#ifndef	OTX2_XSK_H
 9#define	OTX2_XSK_H
10
11struct otx2_nic;
12struct xsk_buff_pool;
13
14int otx2_xsk_pool_setup(struct otx2_nic *pf, struct xsk_buff_pool *pool, u16 qid);
15int otx2_xsk_pool_enable(struct otx2_nic *pf, struct xsk_buff_pool *pool, u16 qid);
16int otx2_xsk_pool_disable(struct otx2_nic *pf, u16 qid);
17int otx2_xsk_pool_alloc_buf(struct otx2_nic *pfvf, struct otx2_pool *pool,
18			    dma_addr_t *dma, int idx);
19int otx2_xsk_wakeup(struct net_device *dev, u32 queue_id, u32 flags);
20void otx2_zc_napi_handler(struct otx2_nic *pfvf, struct xsk_buff_pool *pool,
21			  int queue, int budget);
22void otx2_attach_xsk_buff(struct otx2_nic *pfvf, struct otx2_snd_queue *sq, int qidx);
23
24#endif /* OTX2_XSK_H */
~/ Read-only file preview.