]> git.droids-corp.org - dpdk.git/commitdiff
common/cnxk: convert warning to debug print
authorAkhil Goyal <gakhil@marvell.com>
Sun, 8 May 2022 07:48:19 +0000 (13:18 +0530)
committerJerin Jacob <jerinj@marvell.com>
Tue, 10 May 2022 14:26:57 +0000 (16:26 +0200)
Inbound SA SPI if not in min-max range specified in devargs,
was marked as a warning. But this is not converted to debug
print because if the entry is found to be duplicate in the mask,
it will give another error print. Hence, warning print is not needed
and is now converted to debug print.

Signed-off-by: Akhil Goyal <gakhil@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/cnxk/roc_nix_inl.c

index a66fbcd66ec12c9c4230e34d7fb6202920ec5bc0..9b8b6da523d9b4fcd564054dc787a6e7a0d22e3a 100644 (file)
@@ -231,7 +231,7 @@ roc_nix_inl_inb_sa_get(struct roc_nix *roc_nix, bool inb_inl_dev, uint32_t spi)
        mask = roc_nix_inl_inb_spi_range(roc_nix, inb_inl_dev, &min_spi,
                                         &max_spi);
        if (spi > max_spi || spi < min_spi)
-               plt_warn("Inbound SA SPI %u not in range (%u..%u)", spi,
+               plt_nix_dbg("Inbound SA SPI %u not in range (%u..%u)", spi,
                         min_spi, max_spi);
 
        /* Basic logic of SPI->SA for now */