net/dpaa2: decrease link state log level
authorShreyansh Jain <shreyansh.jain@nxp.com>
Wed, 17 Oct 2018 10:10:38 +0000 (10:10 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 24 Oct 2018 22:51:05 +0000 (00:51 +0200)
In case the link is down during initial link state check, messages for
link state check flood the console. Reducing the log level for these.

Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
drivers/net/dpaa2/dpaa2_ethdev.c

index 3987d13..d8b7fa1 100644 (file)
@@ -1412,7 +1412,7 @@ dpaa2_dev_link_update(struct rte_eth_dev *dev,
 
        ret = dpni_get_link_state(dpni, CMD_PRI_LOW, priv->token, &state);
        if (ret < 0) {
-               DPAA2_PMD_ERR("error: dpni_get_link_state %d", ret);
+               DPAA2_PMD_DEBUG("error: dpni_get_link_state %d", ret);
                return -1;
        }
 
@@ -1474,7 +1474,7 @@ dpaa2_dev_set_link_up(struct rte_eth_dev *dev)
        }
        ret = dpni_get_link_state(dpni, CMD_PRI_LOW, priv->token, &state);
        if (ret < 0) {
-               DPAA2_PMD_ERR("Unable to get link state (%d)", ret);
+               DPAA2_PMD_DEBUG("Unable to get link state (%d)", ret);
                return -1;
        }