diff options
Diffstat (limited to 'drivers/net/ixgbe')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 724754a64d03..45bf8b9716e3 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -5168,9 +5168,15 @@ static netdev_tx_t ixgbe_xmit_frame(struct sk_buff *skb, | |||
5168 | tx_ring = &adapter->tx_ring[r_idx]; | 5168 | tx_ring = &adapter->tx_ring[r_idx]; |
5169 | 5169 | ||
5170 | if ((adapter->flags & IXGBE_FLAG_FCOE_ENABLED) && | 5170 | if ((adapter->flags & IXGBE_FLAG_FCOE_ENABLED) && |
5171 | (skb->protocol == htons(ETH_P_FCOE))) | 5171 | (skb->protocol == htons(ETH_P_FCOE))) { |
5172 | tx_flags |= IXGBE_TX_FLAGS_FCOE; | 5172 | tx_flags |= IXGBE_TX_FLAGS_FCOE; |
5173 | 5173 | #ifdef IXGBE_FCOE | |
5174 | r_idx = smp_processor_id(); | ||
5175 | r_idx &= (adapter->ring_feature[RING_F_FCOE].indices - 1); | ||
5176 | r_idx += adapter->ring_feature[RING_F_FCOE].mask; | ||
5177 | tx_ring = &adapter->tx_ring[r_idx]; | ||
5178 | #endif | ||
5179 | } | ||
5174 | /* four things can cause us to need a context descriptor */ | 5180 | /* four things can cause us to need a context descriptor */ |
5175 | if (skb_is_gso(skb) || | 5181 | if (skb_is_gso(skb) || |
5176 | (skb->ip_summed == CHECKSUM_PARTIAL) || | 5182 | (skb->ip_summed == CHECKSUM_PARTIAL) || |