rfs: better sizing of dev_flow_table
authorEric Dumazet <eric.dumazet@gmail.com>
Sat, 24 Dec 2011 06:56:49 +0000 (06:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Dec 2011 21:13:27 +0000 (16:13 -0500)
commit60b778ce519625102d3f72a2071ea72a05e990ce
treeecae42cc8809809287e10007643370eaed7e3055
parent035c4c16bea2814890c64c657d177e91cec1f473
rfs: better sizing of dev_flow_table

Aim of this patch is to provide full range of rps_flow_cnt on 64bit arches.

Theorical limit on number of flows is 2^32

Fix some buggy RPS/RFS macros as well.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Tom Herbert <therbert@google.com>
CC: Xi Wang <xi.wang@gmail.com>
CC: Laurent Chavey <chavey@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/net-sysfs.c