i40e: Log info when PF is entering and leaving Allmulti mode.
authorCzeslaw Zagorski <czeslawx.zagorski@intel.com>
Tue, 2 Jul 2019 12:22:57 +0000 (08:22 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 5 Aug 2019 18:42:05 +0000 (11:42 -0700)
Add log when PF is entering and leaving allmulti mode. The
change of PF state is visible in dmesg now. Without this commit,
entering and leaving allmulti mode is not logged in dmesg.

Signed-off-by: Czeslaw Zagorski <czeslawx.zagorski@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c

index 423a4820af4cd2ee23f87de3f3e42630cbdd3843..6d456e5793143bccdaaf287877762510618194f0 100644 (file)
@@ -2530,6 +2530,10 @@ int i40e_sync_vsi_filters(struct i40e_vsi *vsi)
                                 vsi_name,
                                 i40e_stat_str(hw, aq_ret),
                                 i40e_aq_str(hw, hw->aq.asq_last_status));
+               } else {
+                       dev_info(&pf->pdev->dev, "%s is %s allmulti mode.\n",
+                                vsi->netdev->name,
+                                cur_multipromisc ? "entering" : "leaving");
                }
        }