Skip to content

Commit 609aa68

Browse files
sgoutham-marvellkuba-moo
authored andcommitted
octeontx2-af: Removed unnecessary debug messages.
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>
1 parent 981f14d commit 609aa68

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,8 @@ void npc_config_secret_key(struct rvu *rvu, int blkaddr)
200200
struct rvu_hwinfo *hw = rvu->hw;
201201
u8 intf;
202202

203-
if (!hwcap->npc_hash_extract) {
204-
dev_info(rvu->dev, "HW does not support secret key configuration\n");
203+
if (!hwcap->npc_hash_extract)
205204
return;
206-
}
207205

208206
for (intf = 0; intf < hw->npc_intfs; intf++) {
209207
rvu_write64(rvu, blkaddr, NPC_AF_INTFX_SECRET_KEY0(intf),
@@ -221,10 +219,8 @@ void npc_program_mkex_hash(struct rvu *rvu, int blkaddr)
221219
struct rvu_hwinfo *hw = rvu->hw;
222220
u8 intf;
223221

224-
if (!hwcap->npc_hash_extract) {
225-
dev_dbg(rvu->dev, "Field hash extract feature is not supported\n");
222+
if (!hwcap->npc_hash_extract)
226223
return;
227-
}
228224

229225
for (intf = 0; intf < hw->npc_intfs; intf++) {
230226
npc_program_mkex_hash_rx(rvu, blkaddr, intf);
@@ -1853,19 +1849,13 @@ int rvu_npc_exact_init(struct rvu *rvu)
18531849

18541850
/* Check exact match feature is supported */
18551851
npc_const3 = rvu_read64(rvu, blkaddr, NPC_AF_CONST3);
1856-
if (!(npc_const3 & BIT_ULL(62))) {
1857-
dev_info(rvu->dev, "%s: No support for exact match support\n",
1858-
__func__);
1852+
if (!(npc_const3 & BIT_ULL(62)))
18591853
return 0;
1860-
}
18611854

18621855
/* Check if kex profile has enabled EXACT match nibble */
18631856
cfg = rvu_read64(rvu, blkaddr, NPC_AF_INTFX_KEX_CFG(NIX_INTF_RX));
1864-
if (!(cfg & NPC_EXACT_NIBBLE_HIT)) {
1865-
dev_info(rvu->dev, "%s: NPC exact match nibble not enabled in KEX profile\n",
1866-
__func__);
1857+
if (!(cfg & NPC_EXACT_NIBBLE_HIT))
18671858
return 0;
1868-
}
18691859

18701860
/* Set capability to true */
18711861
rvu->hw->cap.npc_exact_match_enabled = true;

0 commit comments

Comments
 (0)