[XFRM] STATE: Use destination address for src hash.
authorMasahide NAKAMURA <nakam@linux-ipv6.org>
Tue, 3 Oct 2006 22:56:09 +0000 (15:56 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 4 Oct 2006 07:31:02 +0000 (00:31 -0700)
commit667bbcb6c099d1b74f95c6963ddf37a32e7afc29
treea4deb7718b21098bb9fbdeacfd55b78a1eb32bb4
parentc5e29460f5f9eb189cab5d9fdaa137e64f7734b6
[XFRM] STATE: Use destination address for src hash.

Src hash is introduced for Mobile IPv6 route optimization usage.
On current kenrel code it is calculated with source address only.
It results we uses the same hash value for outbound state (when
the node has only one address for Mobile IPv6).
This patch use also destination address as peer information for
src hash to be dispersed.

Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_hash.h
net/xfrm/xfrm_state.c