aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe_main.c
diff options
context:
space:
mode:
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 9ba506f6ef2..09990ed105f 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;