Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Nov 2014 18:08:01 +0000 (UTC)
From:      "Alexander V. Chernikov" <melifaro@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r274588 - head/sys/dev/ixgbe
Message-ID:  <201411161808.sAGI81RG018208@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: melifaro
Date: Sun Nov 16 18:08:00 2014
New Revision: 274588
URL: https://svnweb.freebsd.org/changeset/base/274588

Log:
  Fix r273112: do not turn DROP_EN by default.
  
  Due to adapter->hw.fc.requested_mode is filled with default value
  after ixgbe_initialize_receive_units(), this leads to enabling
  DROP_EN in most cases.
  
  Tested by:	ae
  MFC after:	1 week

Modified:
  head/sys/dev/ixgbe/ixgbe.c

Modified: head/sys/dev/ixgbe/ixgbe.c
==============================================================================
--- head/sys/dev/ixgbe/ixgbe.c	Sun Nov 16 17:53:48 2014	(r274587)
+++ head/sys/dev/ixgbe/ixgbe.c	Sun Nov 16 18:08:00 2014	(r274588)
@@ -4385,7 +4385,7 @@ ixgbe_initialize_receive_units(struct ad
 		 * this code is moved elsewhere.
 		 */
 		if (adapter->num_queues > 1 &&
-		    adapter->hw.fc.requested_mode == ixgbe_fc_none) {
+		    adapter->fc == ixgbe_fc_none) {
 			srrctl |= IXGBE_SRRCTL_DROP_EN;
 		} else {
 			srrctl &= ~IXGBE_SRRCTL_DROP_EN;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411161808.sAGI81RG018208>