CN10KB variant of CN10K series of silicons supports a new feature where in a large protocol field (eg 128bit IPv6 DIP) can be condensed into a small hashed 32bit data. This saves a lot of space in MCAM key and allows user to add more protocol fields into the filter. A max of two such protocol data can be hashed. This patch adds support for hashing IPv6 SIP and/or DIP. Signed-off-by: Suman Ghosh <sumang@marvell.com> Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
18 lines
377 B
C
18 lines
377 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Marvell RVU Admin Function driver
|
|
*
|
|
* Copyright (C) 2022 Marvell.
|
|
*
|
|
*/
|
|
|
|
#ifndef __RVU_NPC_FS_H
|
|
#define __RVU_NPC_FS_H
|
|
|
|
#define IPV6_WORDS 4
|
|
|
|
void npc_update_entry(struct rvu *rvu, enum key_fields type,
|
|
struct mcam_entry *entry, u64 val_lo,
|
|
u64 val_hi, u64 mask_lo, u64 mask_hi, u8 intf);
|
|
|
|
#endif /* RVU_NPC_FS_H */
|