linux/drivers/net/ethernet/netronome/nfp/bpf/fw.h

/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
/* Copyright (C) 2017-2018 Netronome Systems, Inc. */

#ifndef NFP_BPF_FW_H
#define NFP_BPF_FW_H

#include <linux/bitops.h>
#include <linux/types.h>
#include "../ccm.h"

/* Kernel's enum bpf_reg_type is not uABI so people may change it breaking
 * our FW ABI.  In that case we will do translation in the driver.
 */
#define NFP_BPF_SCALAR_VALUE
#define NFP_BPF_MAP_VALUE
#define NFP_BPF_STACK
#define NFP_BPF_PACKET_DATA

enum bpf_cap_tlv_type {};

struct nfp_bpf_cap_tlv_func {};

struct nfp_bpf_cap_tlv_adjust_head {};

#define NFP_BPF_ADJUST_HEAD_NO_META

struct nfp_bpf_cap_tlv_maps {};

/*
 * Types defined for map related control messages
 */

/* BPF ABIv2 fixed-length control message fields */
#define CMSG_MAP_KEY_LW
#define CMSG_MAP_VALUE_LW

enum nfp_bpf_cmsg_status {};

struct cmsg_reply_map_simple {};

struct cmsg_req_map_alloc_tbl {};

struct cmsg_reply_map_alloc_tbl {};

struct cmsg_req_map_free_tbl {};

struct cmsg_reply_map_free_tbl {};

struct cmsg_req_map_op {};

struct cmsg_reply_map_op {};

struct cmsg_bpf_event {};
#endif