blob: aa9fe2780410e77aaf45bba9781a619a195e9c91 [file] [log] [blame]
Björn Töpeldac091492018-05-18 14:00:21 +02001/* SPDX-License-Identifier: GPL-2.0 */
2/* XDP user-space packet buffer
Björn Töpelc0c77d82018-05-02 13:01:23 +02003 * Copyright(c) 2018 Intel Corporation.
Björn Töpelc0c77d82018-05-02 13:01:23 +02004 */
5
6#ifndef XDP_UMEM_H_
7#define XDP_UMEM_H_
8
Magnus Karlssona71506a2020-05-20 21:20:51 +02009#include <net/xdp_sock_drv.h>
Björn Töpelc0c77d82018-05-02 13:01:23 +020010
Björn Töpelc0c77d82018-05-02 13:01:23 +020011void xdp_get_umem(struct xdp_umem *umem);
Magnus Karlsson537cf4e2020-11-20 12:53:39 +010012void xdp_put_umem(struct xdp_umem *umem, bool defer_cleanup);
Björn Töpela49049e2018-05-22 09:35:02 +020013struct xdp_umem *xdp_umem_create(struct xdp_umem_reg *mr);
Björn Töpelc0c77d82018-05-02 13:01:23 +020014
15#endif /* XDP_UMEM_H_ */