[NETFILTER] CLUSTERIP: use a bitmap to store node responsibility data
authorKOVACS Krisztian <hidden@balabit.hu>
Sat, 17 Sep 2005 00:00:04 +0000 (17:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Sep 2005 00:00:04 +0000 (17:00 -0700)
commit136e92bbec0a6d4c2dd1e5b5ac869ab5470547a4
tree514a8ae63cc351bafdd47d605afca005753f1e90
parent4451362445b2d83886003f1d739b94e4f000eeeb
[NETFILTER] CLUSTERIP: use a bitmap to store node responsibility data

Instead of maintaining an array containing a list of nodes this instance
is responsible for let's use a simple bitmap. This provides the
following features:

  * clusterip_responsible() and the add_node()/delete_node() operations
    become very simple and don't need locking
  * the config structure is much smaller

In spite of the completely different internal data representation the
user-space interface remains almost unchanged; the only difference is
that the proc file does not list nodes in the order they were added.
(The target info structure remains the same.)

Signed-off-by: KOVACS Krisztian <hidden@balabit.hu>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ipt_CLUSTERIP.c