From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
To: davem@davemloft.net
Cc: Neerav Parikh <Neerav.Parikh@intel.com>,
netdev@vger.kernel.org, gospo@redhat.com, sassmann@redhat.com,
Neerav Parikh <neerav.parikh@intel.com>,
Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Subject: [net-next 14/15] i40e/i40evf: Retrieve and store missing link config information
Date: Mon, 28 Apr 2014 06:52:37 -0700 [thread overview]
Message-ID: <1398693158-2815-15-git-send-email-jeffrey.t.kirsher@intel.com> (raw)
In-Reply-To: <1398693158-2815-1-git-send-email-jeffrey.t.kirsher@intel.com>
From: Neerav Parikh <Neerav.Parikh@intel.com>
Some information returned via "Get Link Status" command was not
being cached in the struct i40e_link_status.
Add this so the driver can utilize this information as needed.
Change-ID: If084a0ae2a63b16b97572196b993742af2c67772
Signed-off-by: Neerav Parikh <neerav.parikh@intel.com>
Acked-by: Greg Rose <gregory.v.rose@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---
drivers/net/ethernet/intel/i40e/i40e_common.c | 7 +++++++
drivers/net/ethernet/intel/i40e/i40e_type.h | 3 +++
drivers/net/ethernet/intel/i40evf/i40e_type.h | 3 +++
3 files changed, 13 insertions(+)
diff --git a/drivers/net/ethernet/intel/i40e/i40e_common.c b/drivers/net/ethernet/intel/i40e/i40e_common.c
index 55d029f..22eefda 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_common.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_common.c
@@ -975,6 +975,13 @@ i40e_status i40e_aq_get_link_info(struct i40e_hw *hw,
hw_link_info->an_info = resp->an_info;
hw_link_info->ext_info = resp->ext_info;
hw_link_info->loopback = resp->loopback;
+ hw_link_info->max_frame_size = le16_to_cpu(resp->max_frame_size);
+ hw_link_info->pacing = resp->config & I40E_AQ_CONFIG_PACING_MASK;
+
+ if (resp->config & I40E_AQ_CONFIG_CRC_ENA)
+ hw_link_info->crc_enable = true;
+ else
+ hw_link_info->crc_enable = false;
if (resp->command_flags & cpu_to_le16(I40E_AQ_LSE_ENABLE))
hw_link_info->lse_enable = true;
diff --git a/drivers/net/ethernet/intel/i40e/i40e_type.h b/drivers/net/ethernet/intel/i40e/i40e_type.h
index 668acc7..c4df8ba 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_type.h
+++ b/drivers/net/ethernet/intel/i40e/i40e_type.h
@@ -167,6 +167,9 @@ struct i40e_link_status {
u8 loopback;
/* is Link Status Event notification to SW enabled */
bool lse_enable;
+ u16 max_frame_size;
+ bool crc_enable;
+ u8 pacing;
};
struct i40e_phy_info {
diff --git a/drivers/net/ethernet/intel/i40evf/i40e_type.h b/drivers/net/ethernet/intel/i40evf/i40e_type.h
index 449a3be..51a6dee 100644
--- a/drivers/net/ethernet/intel/i40evf/i40e_type.h
+++ b/drivers/net/ethernet/intel/i40evf/i40e_type.h
@@ -173,6 +173,9 @@ struct i40e_link_status {
u8 loopback;
/* is Link Status Event notification to SW enabled */
bool lse_enable;
+ u16 max_frame_size;
+ bool crc_enable;
+ u8 pacing;
};
struct i40e_phy_info {
--
1.9.0
next prev parent reply other threads:[~2014-04-28 13:52 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-28 13:52 [net-next 00/15][pull request] Intel Wired LAN Driver Updates Jeff Kirsher
2014-04-28 13:52 ` [net-next 01/15] i40e: remove ptp_tx_work timestamp work item Jeff Kirsher
2014-04-28 13:52 ` [net-next 02/15] i40e: Retain MAC filters when changing port VLAN Jeff Kirsher
2014-04-28 13:52 ` [net-next 03/15] i40evf: support ethtool RSS options Jeff Kirsher
2014-04-29 12:35 ` Ben Hutchings
2014-04-29 23:51 ` Williams, Mitch A
2014-04-28 13:52 ` [net-next 04/15] i40e: Use port VLAN in MAC/VLAN filter configuration Jeff Kirsher
2014-04-28 13:52 ` [net-next 05/15] i40e/i40evf: add driver version string to driver version command Jeff Kirsher
2014-04-28 13:52 ` [net-next 06/15] i40e: Redistribute queue vectors after DCB reconfiguration Jeff Kirsher
2014-04-28 13:52 ` [net-next 07/15] i40e: Don't stop driver probe when querying DCB config fails Jeff Kirsher
2014-04-28 13:52 ` [net-next 08/15] i40evf: fix panic on PF driver fail Jeff Kirsher
2014-04-28 13:52 ` [net-next 09/15] i40evf: remove debugging message Jeff Kirsher
2014-04-28 13:52 ` [net-next 10/15] i40e: Change variable type to avoid typecheck failure Jeff Kirsher
2014-04-28 13:52 ` [net-next 11/15] i40e: Do not enable NTUPLE feature control in MFP mode Jeff Kirsher
2014-04-28 13:52 ` [net-next 12/15] i40e: Do not expose fd-sb commands from debugfs Jeff Kirsher
2014-04-28 13:52 ` [net-next 13/15] i40e: Update function formal parameters Jeff Kirsher
2014-04-28 13:52 ` Jeff Kirsher [this message]
2014-04-28 13:52 ` [net-next 15/15] i40e/i40evf: Bump build version Jeff Kirsher
2014-04-28 18:53 ` [net-next 00/15][pull request] Intel Wired LAN Driver Updates David Miller
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=1398693158-2815-15-git-send-email-jeffrey.t.kirsher@intel.com \
--to=jeffrey.t.kirsher@intel.com \
--cc=Neerav.Parikh@intel.com \
--cc=davem@davemloft.net \
--cc=gospo@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=sassmann@redhat.com \
/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;
as well as URLs for NNTP newsgroup(s).