mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
13 lines
300 B
C
13 lines
300 B
C
/* SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-clause) */
|
|
|
|
#ifndef __XDP_HELPERS_H
|
|
#define __XDP_HELPERS_H
|
|
|
|
#define _CONCAT(x,y) x ## y
|
|
#define XDP_RUN_CONFIG(f) _CONCAT(_,f) SEC(".xdp_run_config")
|
|
|
|
#define XDP_DEFAULT_RUN_PRIO 50
|
|
#define XDP_DEFAULT_CHAIN_CALL_ACTIONS (1<<XDP_PASS)
|
|
|
|
#endif
|