diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-22 19:21:36 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-22 19:21:36 +0100 |
commit | 2a3bcfdde613884ba7c5bf0e116cfd1991d4ba20 (patch) | |
tree | e853693868d15168382978c7b98e7d10c85d47b3 /net/core | |
parent | net: add __rcu annotations to sk_wq and wq (diff) | |
parent | sfc: Implement hardware acceleration of RFS (diff) | |
download | linux-2a3bcfdde613884ba7c5bf0e116cfd1991d4ba20.tar.xz linux-2a3bcfdde613884ba7c5bf0e116cfd1991d4ba20.zip |
Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/bwh/sfc-next-2.6
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 9d8bfd9d444b..578415c1ef75 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -2610,7 +2610,8 @@ set_rps_cpu(struct net_device *dev, struct sk_buff *skb, int rc; /* Should we steer this flow to a different hardware queue? */ - if (!skb_rx_queue_recorded(skb) || !dev->rx_cpu_rmap) + if (!skb_rx_queue_recorded(skb) || !dev->rx_cpu_rmap || + !(dev->features & NETIF_F_NTUPLE)) goto out; rxq_index = cpu_rmap_lookup_index(dev->rx_cpu_rmap, next_cpu); if (rxq_index == skb_get_rx_queue(skb)) |