1 /* SPDX-License-Identifier: GPL-2.0
2 * XDP user-space packet buffer
3 * Copyright(c) 2018 Intel Corporation.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
9 * This program is distributed in the hope it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
19 #include <linux/if_xdp.h>
20 #include <linux/workqueue.h>
22 #include "xsk_queue.h"
23 #include "xdp_umem_props.h"
28 struct xdp_umem_props props;
34 struct user_struct *user;
36 unsigned long address;
39 struct work_struct work;
42 bool xdp_umem_validate_queues(struct xdp_umem *umem);
43 int xdp_umem_reg(struct xdp_umem *umem, struct xdp_umem_reg *mr);
44 void xdp_get_umem(struct xdp_umem *umem);
45 void xdp_put_umem(struct xdp_umem *umem);
46 int xdp_umem_create(struct xdp_umem **umem);
48 #endif /* XDP_UMEM_H_ */