]> 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)
commit001a5de5a221c4103b47dd896f848b393210df87
treef8c77ece43ee405254bf4267fef597f63a918938
parentc37fc020c1bc6dfce8669de0f74a0c6f4da812f6
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