Commit 24453a84 authored by Karen Sornek's avatar Karen Sornek Committed by Tony Nguyen

igbvf: Refactor traces

Refactoring "PF still resetting" and changing "Failed
 to add vlan id" to "Vlan id is not added"
messages because previous version looked like a bug
- it informed about changes that worked as
designed but might confuse users
Signed-off-by: default avatarKaren Sornek <karen.sornek@intel.com>
Reviewed-by: default avatarAleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
parent 6ec12e1e
...@@ -1236,7 +1236,7 @@ static int igbvf_vlan_rx_add_vid(struct net_device *netdev, ...@@ -1236,7 +1236,7 @@ static int igbvf_vlan_rx_add_vid(struct net_device *netdev,
spin_lock_bh(&hw->mbx_lock); spin_lock_bh(&hw->mbx_lock);
if (hw->mac.ops.set_vfta(hw, vid, true)) { if (hw->mac.ops.set_vfta(hw, vid, true)) {
dev_err(&adapter->pdev->dev, "Failed to add vlan id %d\n", vid); dev_warn(&adapter->pdev->dev, "Vlan id %d\n is not added", vid);
spin_unlock_bh(&hw->mbx_lock); spin_unlock_bh(&hw->mbx_lock);
return -EINVAL; return -EINVAL;
} }
...@@ -1520,7 +1520,7 @@ static void igbvf_reset(struct igbvf_adapter *adapter) ...@@ -1520,7 +1520,7 @@ static void igbvf_reset(struct igbvf_adapter *adapter)
/* Allow time for pending master requests to run */ /* Allow time for pending master requests to run */
if (mac->ops.reset_hw(hw)) if (mac->ops.reset_hw(hw))
dev_err(&adapter->pdev->dev, "PF still resetting\n"); dev_warn(&adapter->pdev->dev, "PF still resetting\n");
mac->ops.init_hw(hw); mac->ops.init_hw(hw);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment