Message ID | E1YX620-0005n3-Uy@gondolin.me.apana.org.au |
---|---|
State | Changes Requested, archived |
Delegated to: | David Miller |
Headers | show |
On 3/15/2015 1:44 PM, Herbert Xu wrote: > This patch converts tipc to use rhashtable max_size instead of > the obsolete max_shift. You're converting 'min_shift' to 'min_size' as well... > Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> > --- > net/tipc/socket.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > diff --git a/net/tipc/socket.c b/net/tipc/socket.c > index 934947f..64eb669 100644 > --- a/net/tipc/socket.c > +++ b/net/tipc/socket.c > @@ -2361,8 +2361,8 @@ int tipc_sk_rht_init(struct net *net) > .key_offset = offsetof(struct tipc_sock, portid), > .key_len = sizeof(u32), /* portid */ > .hashfn = jhash, > - .max_shift = 20, /* 1M */ > - .min_shift = 8, /* 256 */ > + .max_size = 1048576, > + .min_size = 256, > }; > > return rhashtable_init(&tn->sk_rht, &rht_params); WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/tipc/socket.c b/net/tipc/socket.c index 934947f..64eb669 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c @@ -2361,8 +2361,8 @@ int tipc_sk_rht_init(struct net *net) .key_offset = offsetof(struct tipc_sock, portid), .key_len = sizeof(u32), /* portid */ .hashfn = jhash, - .max_shift = 20, /* 1M */ - .min_shift = 8, /* 256 */ + .max_size = 1048576, + .min_size = 256, }; return rhashtable_init(&tn->sk_rht, &rht_params);
This patch converts tipc to use rhashtable max_size instead of the obsolete max_shift. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> --- net/tipc/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html