numam-dpdk/drivers/net/af_xdp/af_xdp_deps.h
Xiaolong Ye f1debd77ef net/af_xdp: introduce AF_XDP PMD
Add a new PMD driver for AF_XDP which is a proposed faster version of
AF_PACKET interface in Linux. More info about AF_XDP, please refer to [1]
[2].

This is the vanilla version PMD which just uses a raw buffer registered as
the umem.

[1] https://fosdem.org/2018/schedule/event/af_xdp/
[2] https://lwn.net/Articles/745934/

Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Luca Boccassi <bluca@debian.org>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
2019-04-05 17:45:22 +02:00

16 lines
339 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2019 Intel Corporation.
*/
#ifndef AF_XDP_DEPS_H_
#define AF_XDP_DEPS_H_
#include <rte_atomic.h>
#include <rte_branch_prediction.h>
/* This is to fix the xsk.h's dependency on asm/barrier.h */
#define smp_rmb() rte_rmb()
#define smp_wmb() rte_wmb()
#endif /* AF_XDP_DEPS_H_ */