linux/drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h

/* SPDX-License-Identifier: GPL-2.0 */
/* Marvell RVU Admin Function driver
 *
 * Copyright (C) 2018 Marvell.
 *
 */

#ifndef NPC_PROFILE_H
#define NPC_PROFILE_H

#define NPC_KPU_PROFILE_VER
#define NPC_KPU_VER_MAJ(ver)
#define NPC_KPU_VER_MIN(ver)
#define NPC_KPU_VER_PATCH(ver)

#define NPC_IH_W
#define NPC_IH_UTAG

#define NPC_ETYPE_IP
#define NPC_ETYPE_IP6
#define NPC_ETYPE_ARP
#define NPC_ETYPE_RARP
#define NPC_ETYPE_NGIO
#define NPC_ETYPE_MPLSU
#define NPC_ETYPE_MPLSM
#define NPC_ETYPE_ETAG
#define NPC_ETYPE_CTAG
#define NPC_ETYPE_SBTAG
#define NPC_ETYPE_ITAG
#define NPC_ETYPE_PTP
#define NPC_ETYPE_FCOE
#define NPC_ETYPE_QINQ
#define NPC_ETYPE_TRANS_ETH_BR
#define NPC_ETYPE_PPP
#define NPC_ETYPE_NSH
#define NPC_ETYPE_DSA
#define NPC_ETYPE_PPPOE
#define NPC_ETYPE_ERSPA

#define NPC_PPP_IP
#define NPC_PPP_IP6

#define NPC_IPNH_HOP
#define NPC_IPNH_ICMP
#define NPC_IPNH_IGMP
#define NPC_IPNH_IP
#define NPC_IPNH_TCP
#define NPC_IPNH_UDP
#define NPC_IPNH_IP6
#define NPC_IPNH_ROUT
#define NPC_IPNH_FRAG
#define NPC_IPNH_GRE
#define NPC_IPNH_ESP
#define NPC_IPNH_AH
#define NPC_IPNH_ICMP6
#define NPC_IPNH_NONH
#define NPC_IPNH_DEST
#define NPC_IPNH_SCTP
#define NPC_IPNH_MOBILITY
#define NPC_IPNH_MPLS
#define NPC_IPNH_HOSTID
#define NPC_IPNH_SHIM6
#define NPC_IPNH_CUSTOM

#define NPC_IP6_ROUTE_TYPE

#define NPC_UDP_PORT_PTP_E
#define NPC_UDP_PORT_PTP_G
#define NPC_UDP_PORT_GTPC
#define NPC_UDP_PORT_GTPU
#define NPC_UDP_PORT_VXLAN
#define NPC_UDP_PORT_VXLANGPE
#define NPC_UDP_PORT_GENEVE
#define NPC_UDP_PORT_MPLS
#define NPC_UDP_PORT_ESP

#define NPC_VXLANGPE_NP_IP
#define NPC_VXLANGPE_NP_IP6
#define NPC_VXLANGPE_NP_ETH
#define NPC_VXLANGPE_NP_NSH
#define NPC_VXLANGPE_NP_MPLS
#define NPC_VXLANGPE_NP_GBP
#define NPC_VXLANGPE_NP_VBNG

#define NPC_NSH_NP_IP
#define NPC_NSH_NP_IP6
#define NPC_NSH_NP_ETH
#define NPC_NSH_NP_NSH
#define NPC_NSH_NP_MPLS

#define NPC_TCP_PORT_HTTP
#define NPC_TCP_PORT_HTTPS
#define NPC_TCP_PORT_PPTP

#define NPC_MPLS_S

#define NPC_IP_TTL_MASK
#define NPC_IP_VER_4
#define NPC_IP_VER_6
#define NPC_IP_VER_MASK
#define NPC_IP_HDR_LEN_5
#define NPC_IP_HDR_LEN_MASK
#define NPC_IP_HDR_MF
#define NPC_IP_HDR_FRAGOFF

#define NPC_IP6_HOP_MASK
#define NPC_IP6_FRAG_FRAGOFF

#define NPC_GRE_F_CSUM
#define NPC_GRE_F_ROUTE
#define NPC_GRE_F_KEY
#define NPC_GRE_F_SEQ
#define NPC_GRE_F_ACK
#define NPC_GRE_FLAG_MASK
#define NPC_GRE_VER_MASK
#define NPC_GRE_VER_1

#define NPC_VXLAN_I

#define NPC_VXLANGPE_VER
#define NPC_VXLANGPE_I
#define NPC_VXLANGPE_P
#define NPC_VXLANGPE_B
#define NPC_VXLANGPE_NP_MASK

#define NPC_NSH_NP_MASK

#define NPC_GENEVE_F_OAM
#define NPC_GENEVE_F_CRI_OPT

#define NPC_GTP_PT_GTP
#define NPC_GTP_PT_MASK
#define NPC_GTP_VER1
#define NPC_GTP_VER_MASK
#define NPC_GTP_MT_G_PDU
#define NPC_GTP_MT_MASK

#define NPC_TCP_FLAGS_FIN
#define NPC_TCP_FLAGS_SYN
#define NPC_TCP_FLAGS_RST
#define NPC_TCP_FLAGS_PSH
#define NPC_TCP_FLAGS_ACK
#define NPC_TCP_FLAGS_URG
#define NPC_TCP_FLAGS_MASK

#define NPC_TCP_DATA_OFFSET_5
#define NPC_TCP_DATA_OFFSET_MASK

#define NPC_DSA_EXTEND
#define NPC_DSA_EDSA
#define NPC_DSA_FDSA

#define NPC_KEXOF_DMAC
#define MKEX_SIGN
#define KEX_LD_CFG(bytesm1, hdr_ofs, ena, flags_ena, key_ofs)

/* Rx parse key extract nibble enable */
#define NPC_PARSE_NIBBLE_INTF_RX
/* Tx parse key extract nibble enable */
#define NPC_PARSE_NIBBLE_INTF_TX

enum npc_kpu_parser_state {};

enum npc_kpu_la_uflag {};
enum npc_kpu_la_lflag {};

enum npc_kpu_lb_uflag {};
enum npc_kpu_lb_lflag {};

enum npc_kpu_lc_uflag {};
enum npc_kpu_lc_lflag {};

enum npc_kpu_ld_lflag {};

enum npc_kpu_le_lflag {};

enum npc_kpu_lf_uflag {};

enum npc_kpu_lf_lflag {};

enum npc_kpu_lg_uflag {};

enum npc_kpu_lh_uflag {};

enum npc_kpu_lh_lflag {};

enum npc_kpu_err_code {};

enum NPC_ERRLEV_E {};

#define NPC_KPU_NOP_CAM

#define NPC_KPU_NOP_ACTION

static struct npc_kpu_profile_action ikpu_action_entries[] =;

static struct npc_kpu_profile_cam kpu1_cam_entries[] =;

static struct npc_kpu_profile_cam kpu2_cam_entries[] =;

static struct npc_kpu_profile_cam kpu3_cam_entries[] =;

static struct npc_kpu_profile_cam kpu4_cam_entries[] =;

static struct npc_kpu_profile_cam kpu5_cam_entries[] =;

static struct npc_kpu_profile_cam kpu6_cam_entries[] =;

static struct npc_kpu_profile_cam kpu7_cam_entries[] =;

static struct npc_kpu_profile_cam kpu8_cam_entries[] =;

static struct npc_kpu_profile_cam kpu9_cam_entries[] =;

static struct npc_kpu_profile_cam kpu10_cam_entries[] =;

static struct npc_kpu_profile_cam kpu11_cam_entries[] =;

static struct npc_kpu_profile_cam kpu12_cam_entries[] =;

static struct npc_kpu_profile_cam kpu13_cam_entries[] =;

static struct npc_kpu_profile_cam kpu14_cam_entries[] =;

static struct npc_kpu_profile_cam kpu15_cam_entries[] =;

static struct npc_kpu_profile_cam kpu16_cam_entries[] =;

static struct npc_kpu_profile_action kpu1_action_entries[] =;

static struct npc_kpu_profile_action kpu2_action_entries[] =;

static struct npc_kpu_profile_action kpu3_action_entries[] =;

static struct npc_kpu_profile_action kpu4_action_entries[] =;

static struct npc_kpu_profile_action kpu5_action_entries[] =;

static struct npc_kpu_profile_action kpu6_action_entries[] =;

static struct npc_kpu_profile_action kpu7_action_entries[] =;

static struct npc_kpu_profile_action kpu8_action_entries[] =;

static struct npc_kpu_profile_action kpu9_action_entries[] =;

static struct npc_kpu_profile_action kpu10_action_entries[] =;

static struct npc_kpu_profile_action kpu11_action_entries[] =;

static struct npc_kpu_profile_action kpu12_action_entries[] =;

static struct npc_kpu_profile_action kpu13_action_entries[] =;

static struct npc_kpu_profile_action kpu14_action_entries[] =;

static struct npc_kpu_profile_action kpu15_action_entries[] =;

static struct npc_kpu_profile_action kpu16_action_entries[] =;

static struct npc_kpu_profile npc_kpu_profiles[] =;

static struct npc_lt_def_cfg npc_lt_defaults =;

static struct npc_mcam_kex npc_mkex_default =;

#endif /* NPC_PROFILE_H */