Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Alice Michael <alice.michael@intel.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [next PATCH S7 3/9] i40e: Log disable-fw-lldp flag change by ethtool
Date: Tue,  2 Jul 2019 08:22:53 -0400	[thread overview]
Message-ID: <20190702122259.79070-3-alice.michael@intel.com> (raw)
In-Reply-To: <20190702122259.79070-1-alice.michael@intel.com>

From: Slawomir Laba <slawomirx.laba@intel.com>

Add logging for disable-fw-lldp flag by ethtool. Added check
for I40E_FLAG_DISABLE_FW_LLDP and logging state in dmesg.
Without this commit there was no clear statement in dmesg
about FW LLDP state in dmesg.

Signed-off-by: Slawomir Laba <slawomirx.laba@intel.com>
---
 drivers/net/ethernet/intel/i40e/i40e_main.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index 8dac7a87834d..db3ecb8e7051 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -8499,6 +8499,11 @@ void i40e_do_reset(struct i40e_pf *pf, u32 reset_flags, bool lock_acquired)
 		dev_dbg(&pf->pdev->dev, "PFR requested\n");
 		i40e_handle_reset_warning(pf, lock_acquired);
 
+		dev_info(&pf->pdev->dev,
+			 pf->flags & I40E_FLAG_DISABLE_FW_LLDP ?
+			 "FW LLDP is disabled\n" :
+			 "FW LLDP is enabled\n");
+
 	} else if (reset_flags & BIT_ULL(__I40E_REINIT_REQUESTED)) {
 		int v;
 
-- 
2.21.0


  parent reply	other threads:[~2019-07-02 12:22 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-02 12:22 [Intel-wired-lan] [next PATCH S7 1/9] i40e: fix incorrect ethtool statistics veb and veb.tc_ Alice Michael
2019-07-02 12:22 ` [Intel-wired-lan] [next PATCH S7 2/9] i40e: make visible changed vf mac on host Alice Michael
2019-07-03 21:37   ` Bowers, AndrewX
2019-07-02 12:22 ` Alice Michael [this message]
2019-07-03 21:39   ` [Intel-wired-lan] [next PATCH S7 3/9] i40e: Log disable-fw-lldp flag change by ethtool Bowers, AndrewX
2019-07-02 12:22 ` [Intel-wired-lan] [next PATCH S7 4/9] i40e: don't report link up for a VF who hasn't enabled queues Alice Michael
2019-07-03 21:40   ` Bowers, AndrewX
2019-07-02 12:22 ` [Intel-wired-lan] [next PATCH S7 5/9] i40e: fix code comments Alice Michael
2019-07-03 21:41   ` Bowers, AndrewX
2019-07-02 12:22 ` [Intel-wired-lan] [next PATCH S7 6/9] i40e: Update visual effect for advertised FEC mode Alice Michael
2019-07-03 21:41   ` Bowers, AndrewX
2019-07-02 12:22 ` [Intel-wired-lan] [next PATCH S7 7/9] i40e: Log info when PF is entering and leaving Allmulti mode Alice Michael
2019-07-03 21:42   ` Bowers, AndrewX
2019-07-02 12:22 ` [Intel-wired-lan] [next PATCH S7 8/9] i40e: verify string count matches even on early return Alice Michael
2019-07-03 21:42   ` Bowers, AndrewX
2019-07-02 12:22 ` [Intel-wired-lan] [next PATCH S7 9/9] i40e: Remove unicast log when VF is leaving multicast mode Alice Michael
2019-07-03 21:43   ` Bowers, AndrewX
2019-07-03 21:33 ` [Intel-wired-lan] [next PATCH S7 1/9] i40e: fix incorrect ethtool statistics veb and veb.tc_ Bowers, AndrewX

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190702122259.79070-3-alice.michael@intel.com \
    --to=alice.michael@intel.com \
    --cc=intel-wired-lan@osuosl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox