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)
commit1708ebc9636a249e104b83c6d105f15244825281
tree8885d527cdf896f339fccf50a8068cdf3fa54de8
parent07b76ba9f827ffe8faebe78a98c96174a2538078
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