From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
To: davem@davemloft.net
Cc: Mark Rustad <mark.d.rustad@intel.com>,
netdev@vger.kernel.org, gospo@redhat.com, sassmann@redhat.com,
Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Subject: [net-next 3/9] ixgbe: Fix PFC mask generation
Date: Thu, 6 Oct 2011 04:02:33 -0700 [thread overview]
Message-ID: <1317898959-16550-4-git-send-email-jeffrey.t.kirsher@intel.com> (raw)
In-Reply-To: <1317898959-16550-1-git-send-email-jeffrey.t.kirsher@intel.com>
From: Mark Rustad <mark.d.rustad@intel.com>
Fix PFC mask generation to OR in only a single bit for each priority in
the PFC mask returned via netlink.
Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
index 83bf7cc..3d44b15 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
@@ -184,7 +184,7 @@ void ixgbe_dcb_unpack_pfc(struct ixgbe_dcb_config *cfg, u8 *pfc_en)
*pfc_en = 0;
for (i = 0; i < MAX_TRAFFIC_CLASS; i++)
- *pfc_en |= (cfg->tc_config[i].dcb_pfc & 0xF) << i;
+ *pfc_en |= !!(cfg->tc_config[i].dcb_pfc & 0xF) << i;
}
void ixgbe_dcb_unpack_refill(struct ixgbe_dcb_config *cfg, int direction,
--
1.7.6.4
next prev parent reply other threads:[~2011-10-06 11:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-06 11:02 [net-next 0/9][pull request] Intel Wired LAN Driver Updates Jeff Kirsher
2011-10-06 11:02 ` [net-next 1/9] e1000e: WoL can fail on 82578DM Jeff Kirsher
2011-10-06 11:02 ` [net-next 2/9] e1000e: WoL fails on device ID 0x1501 Jeff Kirsher
2011-10-06 11:02 ` Jeff Kirsher [this message]
2011-10-06 11:02 ` [net-next 4/9] ixgbe: fixup hard dependencies on supporting 8 traffic classes Jeff Kirsher
2011-10-06 11:02 ` [net-next 5/9] ixgbe: DCB X540 devices support max traffic class of 4 Jeff Kirsher
2011-10-06 11:02 ` [net-next 6/9] ixgbe: X540 devices RX PFC frames pause traffic even if disabled Jeff Kirsher
2011-10-06 11:02 ` [net-next 7/9] igb: Code to prevent overwriting SFP I2C Jeff Kirsher
2011-10-06 11:02 ` [net-next 8/9] igb: Alternate MAC Address EEPROM Updates Jeff Kirsher
2011-10-06 11:02 ` [net-next 9/9] igb: Alternate MAC Address Updates for Func2&3 Jeff Kirsher
2011-10-06 18:33 ` [net-next 0/9][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=1317898959-16550-4-git-send-email-jeffrey.t.kirsher@intel.com \
--to=jeffrey.t.kirsher@intel.com \
--cc=davem@davemloft.net \
--cc=gospo@redhat.com \
--cc=mark.d.rustad@intel.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).