]> 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)
commitfc267fcd5bec0de711d00f5465b5e729ec4fb65f
tree27a8408a497b734addd97562eee2501e452c9bf0
parent9d231c5cb224aa7b3efebfd6a9d63e286051a34c
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