f1debd77ef
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>
16 lines
339 B
C
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_ */
|