mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
octeontx2-af: Removed unnecessary debug messages.
[ Upstream commit609aa68d60] NPC exact match feature is supported only on one silicon variant, removed debug messages which print that this feature is not available on all other silicon variants. Signed-off-by: Sunil Goutham <sgoutham@marvell.com> Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Link: https://lore.kernel.org/r/20230201040301.1034843-1-rkannoth@marvell.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Stable-dep-of:4e62c99d71("octeontx2-af: Fix hash extraction enable configuration") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
517a4f3b09
commit
9b0c968a13
@@ -203,10 +203,8 @@ void npc_config_secret_key(struct rvu *rvu, int blkaddr)
|
|||||||
struct rvu_hwinfo *hw = rvu->hw;
|
struct rvu_hwinfo *hw = rvu->hw;
|
||||||
u8 intf;
|
u8 intf;
|
||||||
|
|
||||||
if (!hwcap->npc_hash_extract) {
|
if (!hwcap->npc_hash_extract)
|
||||||
dev_info(rvu->dev, "HW does not support secret key configuration\n");
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
for (intf = 0; intf < hw->npc_intfs; intf++) {
|
for (intf = 0; intf < hw->npc_intfs; intf++) {
|
||||||
rvu_write64(rvu, blkaddr, NPC_AF_INTFX_SECRET_KEY0(intf),
|
rvu_write64(rvu, blkaddr, NPC_AF_INTFX_SECRET_KEY0(intf),
|
||||||
@@ -224,10 +222,8 @@ void npc_program_mkex_hash(struct rvu *rvu, int blkaddr)
|
|||||||
struct rvu_hwinfo *hw = rvu->hw;
|
struct rvu_hwinfo *hw = rvu->hw;
|
||||||
u8 intf;
|
u8 intf;
|
||||||
|
|
||||||
if (!hwcap->npc_hash_extract) {
|
if (!hwcap->npc_hash_extract)
|
||||||
dev_dbg(rvu->dev, "Field hash extract feature is not supported\n");
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
for (intf = 0; intf < hw->npc_intfs; intf++) {
|
for (intf = 0; intf < hw->npc_intfs; intf++) {
|
||||||
npc_program_mkex_hash_rx(rvu, blkaddr, intf);
|
npc_program_mkex_hash_rx(rvu, blkaddr, intf);
|
||||||
@@ -1864,19 +1860,13 @@ int rvu_npc_exact_init(struct rvu *rvu)
|
|||||||
|
|
||||||
/* Check exact match feature is supported */
|
/* Check exact match feature is supported */
|
||||||
npc_const3 = rvu_read64(rvu, blkaddr, NPC_AF_CONST3);
|
npc_const3 = rvu_read64(rvu, blkaddr, NPC_AF_CONST3);
|
||||||
if (!(npc_const3 & BIT_ULL(62))) {
|
if (!(npc_const3 & BIT_ULL(62)))
|
||||||
dev_info(rvu->dev, "%s: No support for exact match support\n",
|
|
||||||
__func__);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
|
||||||
|
|
||||||
/* Check if kex profile has enabled EXACT match nibble */
|
/* Check if kex profile has enabled EXACT match nibble */
|
||||||
cfg = rvu_read64(rvu, blkaddr, NPC_AF_INTFX_KEX_CFG(NIX_INTF_RX));
|
cfg = rvu_read64(rvu, blkaddr, NPC_AF_INTFX_KEX_CFG(NIX_INTF_RX));
|
||||||
if (!(cfg & NPC_EXACT_NIBBLE_HIT)) {
|
if (!(cfg & NPC_EXACT_NIBBLE_HIT))
|
||||||
dev_info(rvu->dev, "%s: NPC exact match nibble not enabled in KEX profile\n",
|
|
||||||
__func__);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
|
||||||
|
|
||||||
/* Set capability to true */
|
/* Set capability to true */
|
||||||
rvu->hw->cap.npc_exact_match_enabled = true;
|
rvu->hw->cap.npc_exact_match_enabled = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user