|
@@ -5329,8 +5329,11 @@ static u16 ixgbe_select_queue(struct net_device *dev, struct sk_buff *skb)
|
|
struct ixgbe_adapter *adapter = netdev_priv(dev);
|
|
struct ixgbe_adapter *adapter = netdev_priv(dev);
|
|
int txq = smp_processor_id();
|
|
int txq = smp_processor_id();
|
|
|
|
|
|
- if (adapter->flags & IXGBE_FLAG_FDIR_HASH_CAPABLE)
|
|
|
|
|
|
+ if (adapter->flags & IXGBE_FLAG_FDIR_HASH_CAPABLE) {
|
|
|
|
+ while (unlikely(txq >= dev->real_num_tx_queues))
|
|
|
|
+ txq -= dev->real_num_tx_queues;
|
|
return txq;
|
|
return txq;
|
|
|
|
+ }
|
|
|
|
|
|
#ifdef IXGBE_FCOE
|
|
#ifdef IXGBE_FCOE
|
|
if ((adapter->flags & IXGBE_FLAG_FCOE_ENABLED) &&
|
|
if ((adapter->flags & IXGBE_FLAG_FCOE_ENABLED) &&
|