]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: Check rps_flow_table when RPS map length is 1
authorTom Herbert <therbert@google.com>
Tue, 1 Feb 2011 00:23:42 +0000 (16:23 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Feb 2011 00:23:42 +0000 (16:23 -0800)
commit8587523640441a9ff2564ebc6efeb39497ad6709
treec42ae4809263f9db59ee0721eb03e1b9b18fb0b1
parentcc09b5f6466528867b280f6eb4077311aa099588
net: Check rps_flow_table when RPS map length is 1

In get_rps_cpu, add check that the rps_flow_table for the device is
NULL when trying to take fast path when RPS map length is one.
Without this, RFS is effectively disabled if map length is one which
is not correct.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c