net: ipmr: add getlink support
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Wed, 7 Jun 2017 15:02:32 +0000 (18:02 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Jun 2017 18:38:59 +0000 (14:38 -0400)
commit772c344dbb23b2ce4568ac30afae92a842fa6d8f
treef8c77ece43ee405254bf4267fef597f63a918938
parentcb7f8fc59dd45c8dd8b9bcb9ef1c8a50e2f5df25
net: ipmr: add getlink support

Currently there's no way to dump the VIF table for an ipmr table other
than the default (via proc). This is a major issue when debugging ipmr
issues and in general it is good to know which interfaces are
configured. This patch adds support for RTM_GETLINK for the ipmr family
so we can dump the VIF table and the ipmr table's current config for
each table. We're protected by rtnl so no need to acquire RCU or
mrt_lock.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/mroute.h
net/ipv4/ipmr.c