aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe_main.c
diff options
context:
space:
mode:
authorYi Zou <yi.zou@intel.com>2009-12-03 06:32:22 -0500
committerDavid S. Miller <davem@davemloft.net>2009-12-03 18:43:20 -0500
commit61a0f421ceccd52d0d893daf743b04c225ba5ef0 (patch)
tree5837bb8dd5e668c5aeac70a26331b9445d1dc34f /drivers/net/ixgbe/ixgbe_main.c
parent69ee472f2706371ca639de49b06df91615c07d8d (diff)
ixgbe: use known user priority for FCoE when DCB is enabled
Store the user priority for FCoE and use it directly for outgoing FCoE traffic when DCB is enabled. Signed-off-by: Yi Zou <yi.zou@intel.com> Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_main.c')
-rw-r--r--drivers/net/ixgbe/ixgbe_main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c
index 9ba506f6ef29..09990ed105f6 100644
--- a/drivers/net/ixgbe/ixgbe_main.c
+++ b/drivers/net/ixgbe/ixgbe_main.c
@@ -3958,8 +3958,10 @@ static int __devinit ixgbe_sw_init(struct ixgbe_adapter *adapter)
3958 adapter->flags |= IXGBE_FLAG_FCOE_CAPABLE; 3958 adapter->flags |= IXGBE_FLAG_FCOE_CAPABLE;
3959 adapter->flags &= ~IXGBE_FLAG_FCOE_ENABLED; 3959 adapter->flags &= ~IXGBE_FLAG_FCOE_ENABLED;
3960 adapter->ring_feature[RING_F_FCOE].indices = 0; 3960 adapter->ring_feature[RING_F_FCOE].indices = 0;
3961#ifdef CONFIG_IXGBE_DCB
3961 /* Default traffic class to use for FCoE */ 3962 /* Default traffic class to use for FCoE */
3962 adapter->fcoe.tc = IXGBE_FCOE_DEFTC; 3963 adapter->fcoe.tc = IXGBE_FCOE_DEFTC;
3964#endif
3963#endif /* IXGBE_FCOE */ 3965#endif /* IXGBE_FCOE */
3964 } 3966 }
3965 3967
@@ -5332,6 +5334,12 @@ static netdev_tx_t ixgbe_xmit_frame(struct sk_buff *skb,
5332 (skb->protocol == htons(ETH_P_FCOE))) { 5334 (skb->protocol == htons(ETH_P_FCOE))) {
5333 tx_flags |= IXGBE_TX_FLAGS_FCOE; 5335 tx_flags |= IXGBE_TX_FLAGS_FCOE;
5334#ifdef IXGBE_FCOE 5336#ifdef IXGBE_FCOE
5337#ifdef CONFIG_IXGBE_DCB
5338 tx_flags &= ~(IXGBE_TX_FLAGS_VLAN_PRIO_MASK
5339 << IXGBE_TX_FLAGS_VLAN_SHIFT);
5340 tx_flags |= ((adapter->fcoe.up << 13)
5341 << IXGBE_TX_FLAGS_VLAN_SHIFT);
5342#endif
5335 r_idx = smp_processor_id(); 5343 r_idx = smp_processor_id();
5336 r_idx &= (adapter->ring_feature[RING_F_FCOE].indices - 1); 5344 r_idx &= (adapter->ring_feature[RING_F_FCOE].indices - 1);
5337 r_idx += adapter->ring_feature[RING_F_FCOE].mask; 5345 r_idx += adapter->ring_feature[RING_F_FCOE].mask;