]> git.baikalelectronics.ru Git - kernel.git/commit
net:rfs: adjust table size checking
authorEric Dumazet <edumazet@google.com>
Mon, 9 Feb 2015 04:39:13 +0000 (20:39 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Feb 2015 05:54:09 +0000 (21:54 -0800)
commit32fd5310c198b5e45aaf6a025deabbbe6d7824cb
tree80725b4e6f7b9d10689a7d8a0132db7113d04a30
parent2f7b9c2eb7b23c106151c4bd35d382154c3b744a
net:rfs: adjust table size checking

Make sure root user does not try something stupid.

Also make sure mask field in struct rps_sock_flow_table
does not share a cache line with the potentially often dirtied
flow table.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Fixes: 989404a1814c ("net: rfs: add hash collision detection")
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/sysctl_net_core.c