2018-05-18 12:00:21 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/* XDP user-space packet buffer
|
2018-05-02 11:01:23 +00:00
|
|
|
* Copyright(c) 2018 Intel Corporation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef XDP_UMEM_H_
|
|
|
|
#define XDP_UMEM_H_
|
|
|
|
|
2018-06-04 12:05:51 +00:00
|
|
|
#include <net/xdp_sock.h>
|
2018-05-02 11:01:23 +00:00
|
|
|
|
2018-06-04 12:05:55 +00:00
|
|
|
int xdp_umem_assign_dev(struct xdp_umem *umem, struct net_device *dev,
|
2018-10-01 12:51:34 +00:00
|
|
|
u16 queue_id, u16 flags);
|
2019-06-28 08:04:07 +00:00
|
|
|
void xdp_umem_clear_dev(struct xdp_umem *umem);
|
2018-05-02 11:01:26 +00:00
|
|
|
bool xdp_umem_validate_queues(struct xdp_umem *umem);
|
2018-05-02 11:01:23 +00:00
|
|
|
void xdp_get_umem(struct xdp_umem *umem);
|
|
|
|
void xdp_put_umem(struct xdp_umem *umem);
|
2018-06-04 12:05:57 +00:00
|
|
|
void xdp_add_sk_umem(struct xdp_umem *umem, struct xdp_sock *xs);
|
|
|
|
void xdp_del_sk_umem(struct xdp_umem *umem, struct xdp_sock *xs);
|
2018-05-22 07:35:02 +00:00
|
|
|
struct xdp_umem *xdp_umem_create(struct xdp_umem_reg *mr);
|
2018-05-02 11:01:23 +00:00
|
|
|
|
|
|
|
#endif /* XDP_UMEM_H_ */
|