Re: [PATCH][net-next] net/ipv6: compute anycast address hash only if dev is null

2018-11-07 Thread David Miller
From: Li RongQing Date: Thu, 8 Nov 2018 13:35:40 +0800 > avoid to compute the hash value if dev is not null, since > hash value is not used > > Signed-off-by: Li RongQing > --- > net/ipv6/anycast.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/net/ipv6/anycas

[PATCH][net-next] net/ipv6: compute anycast address hash only if dev is null

2018-11-07 Thread Li RongQing
avoid to compute the hash value if dev is not null, since hash value is not used Signed-off-by: Li RongQing --- net/ipv6/anycast.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c index 94999058e110..a20e344486cb 100644 --- a/net/i