]> git.baikalelectronics.ru Git - kernel.git/commit
ipmr, ip6mr: add RTNH_F_UNRESOLVED flag to unresolved cache entries
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Tue, 3 Jan 2017 11:13:39 +0000 (12:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Jan 2017 15:04:31 +0000 (10:04 -0500)
commite21e55e74ade363e429551f480d461bf2b3046ff
tree8885d527cdf896f339fccf50a8068cdf3fa54de8
parentf5f81aa16f42e3ed77e07c65469091c5943ede95
ipmr, ip6mr: add RTNH_F_UNRESOLVED flag to unresolved cache entries

While working with ipmr, we noticed that it is impossible to determine
if an entry is actually unresolved or its IIF interface has disappeared
(e.g. virtual interface got deleted). These entries look almost
identical to user-space when dumping or receiving notifications. So in
order to recognize them add a new RTNH_F_UNRESOLVED flag which is set when
sending an unresolved cache entry to user-space.

Suggested-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/rtnetlink.h
net/ipv4/ipmr.c
net/ipv6/ip6mr.c