^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /* XDP user-space packet buffer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Copyright(c) 2018 Intel Corporation.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #ifndef XDP_UMEM_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #define XDP_UMEM_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #include <net/xdp_sock_drv.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) void xdp_get_umem(struct xdp_umem *umem);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) void xdp_put_umem(struct xdp_umem *umem, bool defer_cleanup);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) struct xdp_umem *xdp_umem_create(struct xdp_umem_reg *mr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #endif /* XDP_UMEM_H_ */