net/bnxt: fix log levels for non error conditions
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Fri, 21 Jul 2017 03:22:26 +0000 (22:22 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 31 Jul 2017 17:58:41 +0000 (19:58 +0200)
1) handle_async_event is a DEBUG level log message.
2) Log "Unable to get default VNIC for VF %d" at INFO level.

Fixes: 36735a932ca7 ("net/bnxt: support set VF QOS and MAC anti spoof")

Signed-off-by: Stephen Hurd <stephen.hurd@broadcom.com>
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_cpr.c
drivers/net/bnxt/rte_pmd_bnxt.c

index f369cf6..68979bc 100644 (file)
@@ -58,7 +58,7 @@ void bnxt_handle_async_event(struct bnxt *bp,
                bnxt_link_update_op(bp->eth_dev, 0);
                break;
        default:
-               RTE_LOG(ERR, PMD, "handle_async_event id = 0x%x\n", event_id);
+               RTE_LOG(DEBUG, PMD, "handle_async_event id = 0x%x\n", event_id);
                break;
        }
 }
index dd04f58..0a8fb1e 100644 (file)
@@ -333,7 +333,7 @@ int rte_pmd_bnxt_set_vf_vlan_anti_spoof(uint8_t port, uint16_t vf, uint8_t on)
                                 * This simply indicates there's no driver
                                 * loaded.  This is not an error.
                                 */
-                               RTE_LOG(ERR, PMD,
+                               RTE_LOG(INFO, PMD,
                                      "Unable to get default VNIC for VF %d\n",
                                        vf);
                        } else {