net: ipmr: factor out common vif init code
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Sat, 21 Nov 2015 14:57:32 +0000 (15:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Nov 2015 20:06:39 +0000 (15:06 -0500)
commita0b477366a9550ae46f78caa9e55de34fac4ba9c
tree78a1d5bf37775537145e6fb3742ea474ff4332db
parent29e97d214509ef4977838e073d30f6b16f75c6d5
net: ipmr: factor out common vif init code

Factor out common vif init code used in both tunnel and pimreg
initialization and create ipmr_init_vif_indev() function.

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