]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9bd26a0421c4fd2b8472a97477784beaae52cc95
treef8c77ece43ee405254bf4267fef597f63a918938
parentec39f0131997878948e885dcf61401815f4bcbbe
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