DPDK patches and discussions
 help / color / mirror / Atom feed
From: Wenzhuo Lu <wenzhuo.lu@intel.com>
To: dev@dpdk.org
Cc: Wenzhuo Lu <wenzhuo.lu@intel.com>
Subject: [dpdk-dev] [PATCH 6/9] net/ixgbe/base: disable FC for 15B0
Date: Wed,  1 Mar 2017 14:04:49 +0800	[thread overview]
Message-ID: <1488348292-118243-7-git-send-email-wenzhuo.lu@intel.com> (raw)
In-Reply-To: <1488348292-118243-1-git-send-email-wenzhuo.lu@intel.com>

Make sure that ixgbe_device_supports_autoneg_fc()
returns false and hw->fc.disable_fc_autoneg is set
to true to avoid running the fc_autoneg function
for the device 15B0, as this device doesn't support
this function.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
---
 drivers/net/ixgbe/base/ixgbe_common.c | 5 ++++-
 drivers/net/ixgbe/base/ixgbe_x550.c   | 3 +++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ixgbe/base/ixgbe_common.c b/drivers/net/ixgbe/base/ixgbe_common.c
index df6fbf9..4dabb43 100644
--- a/drivers/net/ixgbe/base/ixgbe_common.c
+++ b/drivers/net/ixgbe/base/ixgbe_common.c
@@ -189,7 +189,10 @@ bool ixgbe_device_supports_autoneg_fc(struct ixgbe_hw *hw)
 
 		break;
 	case ixgbe_media_type_backplane:
-		supported = true;
+		if (hw->device_id == IXGBE_DEV_ID_X550EM_X_XFI)
+			supported = false;
+		else
+			supported = true;
 		break;
 	case ixgbe_media_type_copper:
 		/* only some copper devices support flow control autoneg */
diff --git a/drivers/net/ixgbe/base/ixgbe_x550.c b/drivers/net/ixgbe/base/ixgbe_x550.c
index 1058684..3049865 100644
--- a/drivers/net/ixgbe/base/ixgbe_x550.c
+++ b/drivers/net/ixgbe/base/ixgbe_x550.c
@@ -4005,6 +4005,9 @@ s32 ixgbe_setup_fc_X550em(struct ixgbe_hw *hw)
 		/* This device does not fully support AN. */
 		hw->fc.disable_fc_autoneg = true;
 		break;
+	case IXGBE_DEV_ID_X550EM_X_XFI:
+		hw->fc.disable_fc_autoneg = true;
+		break;
 	default:
 		break;
 	}
-- 
1.9.3

  parent reply	other threads:[~2017-03-01  6:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-01  6:04 [dpdk-dev] [PATCH 0/9] Update ixgbe base driver Wenzhuo Lu
2017-03-01  6:04 ` [dpdk-dev] [PATCH 1/9] net/ixgbe/base: make a debug message simple Wenzhuo Lu
2017-03-01  6:04 ` [dpdk-dev] [PATCH 2/9] net/ixgbe/base: remove X550em SFP iXFI setup Wenzhuo Lu
2017-03-01  6:04 ` [dpdk-dev] [PATCH 3/9] net/ixgbe/base: add link block check for KR Wenzhuo Lu
2017-03-01  6:04 ` [dpdk-dev] [PATCH 4/9] net/ixgbe/base: add bit for enabling L3/L4 filtering Wenzhuo Lu
2017-03-01  6:04 ` [dpdk-dev] [PATCH 5/9] net/ixgbe/base: complete hw init when SFP not present Wenzhuo Lu
2017-03-01  6:04 ` Wenzhuo Lu [this message]
2017-03-01  6:04 ` [dpdk-dev] [PATCH 7/9] net/ixgbe: support xcast promisc mode Wenzhuo Lu
2017-03-01  6:04 ` [dpdk-dev] [PATCH 8/9] net/ixgbe/base: fix build error Wenzhuo Lu
2017-03-03 22:27   ` Ferruh Yigit
2017-03-01  6:04 ` [dpdk-dev] [PATCH 9/9] net/ixgbe/base: update readme Wenzhuo Lu
2017-03-03 22:28   ` Ferruh Yigit
2017-03-03 22:29 ` [dpdk-dev] [PATCH 0/9] Update ixgbe base driver 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=1488348292-118243-7-git-send-email-wenzhuo.lu@intel.com \
    --to=wenzhuo.lu@intel.com \
    --cc=dev@dpdk.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;
as well as URLs for NNTP newsgroup(s).