]> 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)
commitb8c4620c76b9fa394067e1453e74fdd4a5150c8f
tree8885d527cdf896f339fccf50a8068cdf3fa54de8
parent0e7c497b1e6cb66376f183db462f22b24c56e608
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