tcp: replace ehash_size by ehash_mask
[linux-2.6.git] / include / net / inet_hashtables.h
index d522dcf3031ab8ad7806af1d572e22751c93a6da..5f11c4a0daca6f9b5f6801563bb53233c46f76dc 100644 (file)
@@ -125,7 +125,7 @@ struct inet_hashinfo {
         */
        struct inet_ehash_bucket        *ehash;
        spinlock_t                      *ehash_locks;
-       unsigned int                    ehash_size;
+       unsigned int                    ehash_mask;
        unsigned int                    ehash_locks_mask;
 
        /* Ok, let's try this, I give up, we do need a local binding
@@ -158,7 +158,7 @@ static inline struct inet_ehash_bucket *inet_ehash_bucket(
        struct inet_hashinfo *hashinfo,
        unsigned int hash)
 {
-       return &hashinfo->ehash[hash & (hashinfo->ehash_size - 1)];
+       return &hashinfo->ehash[hash & hashinfo->ehash_mask];
 }
 
 static inline spinlock_t *inet_ehash_lockp(