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