DPDK patches and discussions
 help / color / mirror / Atom feed
From: Wei Dai <wei.dai@intel.com>
To: dev@dpdk.org
Cc: ferruh.yigit@intel.com, helin.zhang@intel.com,
	konstantin.ananyev@intel.com, Wei Dai <wei.dai@intel.com>
Subject: [dpdk-dev] [PATCH v2 3/7] net/ixgbe/base: configure speeds for KR/KX backplane
Date: Thu, 12 Jan 2017 22:53:27 +0800	[thread overview]
Message-ID: <1484232811-39257-4-git-send-email-wei.dai@intel.com> (raw)
In-Reply-To: <1484232811-39257-1-git-send-email-wei.dai@intel.com>

This patch ensures that the advertised link speeds are configured
for KR/KX backplane on some new platform. Without this patch the
link remains at 1G when resuming from low power after being
downshifted by LPLU(Low Power Link Up).
This patch ensures that the advertise speeds are not changed
for 2.5G configurations.

Signed-off-by: Wei Dai <wei.dai@intel.com>
---
 drivers/net/ixgbe/base/ixgbe_x550.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c
index 2f7f446..b23d479 100644
--- a/drivers/net/ixgbe/base/ixgbe_x550.c
+++ b/drivers/net/ixgbe/base/ixgbe_x550.c
@@ -2627,12 +2627,11 @@ s32 ixgbe_init_ext_t_x550em(struct ixgbe_hw *hw)
 /**
  *  ixgbe_setup_kr_x550em - Configure the KR PHY.
  *  @hw: pointer to hardware structure
- *
- *  Configures the integrated KR PHY for X550EM_x.
  **/
 s32 ixgbe_setup_kr_x550em(struct ixgbe_hw *hw)
 {
-	if (hw->mac.type != ixgbe_mac_X550EM_x)
+	/* leave link alone for 2.5G */
+	if (hw->phy.autoneg_advertised & IXGBE_LINK_SPEED_2_5GB_FULL)
 		return IXGBE_SUCCESS;
 
 	return ixgbe_setup_kr_speed_x550em(hw, hw->phy.autoneg_advertised);
-- 
2.7.4

  parent reply	other threads:[~2017-01-12 14:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-12 14:53 [dpdk-dev] [PATCH v2 0/7] update ixgbe shared code to version 2017-01-05 Wei Dai
2017-01-12 14:53 ` [dpdk-dev] [PATCH v2 1/7] net/ixgbe/base: support XFI backplane for X550 Wei Dai
2017-01-12 14:53 ` [dpdk-dev] [PATCH v2 2/7] net/ixgbe/base: remove a compiler warning Wei Dai
2017-01-12 14:53 ` Wei Dai [this message]
2017-01-12 14:53 ` [dpdk-dev] [PATCH v2 4/7] net/ixgbe/base: support Marvell 1000BASE-T PHYs Wei Dai
2017-01-12 14:53 ` [dpdk-dev] [PATCH v2 5/7] net/ixgbe/base: use clause 22 MDIO functions for Marvell PHYs Wei Dai
2017-01-12 14:53 ` [dpdk-dev] [PATCH v2 6/7] net/ixgbe/base: add some debug traces Wei Dai
2017-01-12 14:53 ` [dpdk-dev] [PATCH v2 7/7] net/ixgbe/base: update version of shared code Wei Dai
2017-01-12 17:15 ` [dpdk-dev] [PATCH v2 0/7] update ixgbe shared code to version 2017-01-05 Ferruh Yigit

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=1484232811-39257-4-git-send-email-wei.dai@intel.com \
    --to=wei.dai@intel.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=helin.zhang@intel.com \
    --cc=konstantin.ananyev@intel.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).