[next,S7,7/9] i40e: Log info when PF is entering and leaving Allmulti mode.
diff mbox series

Message ID 20190702122259.79070-7-alice.michael@intel.com
State Accepted
Delegated to: Jeff Kirsher
Headers show
Series
  • [next,S7,1/9] i40e: fix incorrect ethtool statistics veb and veb.tc_
Related show

Commit Message

Alice Michael July 2, 2019, 12:22 p.m. UTC
From: Czeslaw Zagorski <czeslawx.zagorski@intel.com>

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>
---
 drivers/net/ethernet/intel/i40e/i40e_main.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Bowers, AndrewX July 3, 2019, 9:42 p.m. UTC | #1
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces@osuosl.org] On
> Behalf Of Alice Michael
> Sent: Tuesday, July 2, 2019 5:23 AM
> To: Michael, Alice <alice.michael@intel.com>; intel-wired-
> lan@lists.osuosl.org
> Cc: Zagorski, CzeslawX <czeslawx.zagorski@intel.com>
> Subject: [Intel-wired-lan] [next PATCH S7 7/9] i40e: Log info when PF is
> entering and leaving Allmulti mode.
> 
> From: Czeslaw Zagorski <czeslawx.zagorski@intel.com>
> 
> 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>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_main.c | 4 ++++
>  1 file changed, 4 insertions(+)

Tested-by: Andrew Bowers <andrewx.bowers@intel.com>

Patch
diff mbox series

diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index db3ecb8e7051..452cbc423cb3 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -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");
 		}
 	}