Debian Codegraph @

drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Marvell RVU Admin Function driver
3 *
4 * Copyright (C) 2022 Marvell.
5 *
6 */
7
8 #ifndef __RVU_NPC_FS_H
9 #define __RVU_NPC_FS_H
10
11 #define IPV6_WORDS 4
12 #define NPC_BYTESM GENMASK_ULL(19, 16)
13 #define NPC_HDR_OFFSET GENMASK_ULL(15, 8)
14 #define NPC_KEY_OFFSET GENMASK_ULL(5, 0)
15 #define NPC_LDATA_EN BIT_ULL(7)
16
17 void npc_update_entry(struct rvu *rvu, enum key_fields type,
18 struct mcam_entry_mdata *mdata, u64 val_lo,
19 u64 val_hi, u64 mask_lo, u64 mask_hi, u8 intf);
20
21 void npc_update_flow(struct rvu *rvu, struct mcam_entry_mdata *mdata,
22 u64 features, struct flow_msg *pkt,
23 struct flow_msg *mask,
24 struct rvu_npc_mcam_rule *output, u8 intf,
25 int blkaddr);
26
27 void
28 npc_populate_mcam_mdata(struct rvu *rvu,
29 struct mcam_entry_mdata *mdata,
30 struct cn20k_mcam_entry *cn20k_entry,
31 struct mcam_entry *entry);
32
33 #endif /* RVU_NPC_FS_H */