]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6: compute anycast address hash only if dev is null
authorLi RongQing <lirongqing@baidu.com>
Thu, 8 Nov 2018 06:58:07 +0000 (14:58 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Nov 2018 01:04:43 +0000 (17:04 -0800)
commit2107c9b9e39df77ccf7c27abf0804b8dc1b2ce06
tree27a8408a497b734addd97562eee2501e452c9bf0
parent08c16b2ea5dc44b9080c6157065090bdc233f57c
net/ipv6: compute anycast address hash only if dev is null

avoid to compute the hash value if dev is not null, since
hash value is not used

Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/anycast.c