struct ixgbe_hw *hw = &adapter->hw;
        struct ixgbe_fcoe *fcoe = &adapter->fcoe;
        struct ixgbe_ring_feature *f = &adapter->ring_feature[RING_F_FCOE];
+#ifdef CONFIG_IXGBE_DCB
+       u8 tc;
+       u32 up2tc;
+#endif
 
        /* create the pool for ddp if not created yet */
        if (!fcoe->pool) {
                        IXGBE_FCRXCTRL_FCOELLI |
                        IXGBE_FCRXCTRL_FCCRCBO |
                        (FC_FCOE_VER << IXGBE_FCRXCTRL_FCOEVER_SHIFT));
+#ifdef CONFIG_IXGBE_DCB
+       up2tc = IXGBE_READ_REG(&adapter->hw, IXGBE_RTTUP2TC);
+       for (i = 0; i < MAX_USER_PRIORITY; i++) {
+               tc = (u8)(up2tc >> (i * IXGBE_RTTUP2TC_UP_SHIFT));
+               tc &= (MAX_TRAFFIC_CLASS - 1);
+               if (fcoe->tc == tc) {
+                       fcoe->up = i;
+                       break;
+               }
+       }
+#endif
 }
 
 /**
  */
 u8 ixgbe_fcoe_getapp(struct ixgbe_adapter *adapter)
 {
-       int i;
-       u8 tc;
-       u32 up2tc;
-
-       up2tc = IXGBE_READ_REG(&adapter->hw, IXGBE_RTTUP2TC);
-       for (i = 0; i < MAX_USER_PRIORITY; i++) {
-               tc = (u8)(up2tc >> (i * IXGBE_RTTUP2TC_UP_SHIFT));
-               tc &= (MAX_TRAFFIC_CLASS - 1);
-               if (adapter->fcoe.tc == tc)
-                       return 1 << i;
-       }
-
-       return 0;
+       return 1 << adapter->fcoe.up;
 }
 
 /**
                                up2tc >>= (i * IXGBE_RTTUP2TC_UP_SHIFT);
                                up2tc &= (MAX_TRAFFIC_CLASS - 1);
                                adapter->fcoe.tc = (u8)up2tc;
+                               adapter->fcoe.up = i;
                                return 0;
                        }
                }
 
                adapter->flags |= IXGBE_FLAG_FCOE_CAPABLE;
                adapter->flags &= ~IXGBE_FLAG_FCOE_ENABLED;
                adapter->ring_feature[RING_F_FCOE].indices = 0;
+#ifdef CONFIG_IXGBE_DCB
                /* Default traffic class to use for FCoE */
                adapter->fcoe.tc = IXGBE_FCOE_DEFTC;
+#endif
 #endif /* IXGBE_FCOE */
        }
 
            (skb->protocol == htons(ETH_P_FCOE))) {
                tx_flags |= IXGBE_TX_FLAGS_FCOE;
 #ifdef IXGBE_FCOE
+#ifdef CONFIG_IXGBE_DCB
+               tx_flags &= ~(IXGBE_TX_FLAGS_VLAN_PRIO_MASK
+                             << IXGBE_TX_FLAGS_VLAN_SHIFT);
+               tx_flags |= ((adapter->fcoe.up << 13)
+                             << IXGBE_TX_FLAGS_VLAN_SHIFT);
+#endif
                r_idx = smp_processor_id();
                r_idx &= (adapter->ring_feature[RING_F_FCOE].indices - 1);
                r_idx += adapter->ring_feature[RING_F_FCOE].mask;