mpls: make RTA_OIF optional
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Tue, 21 Jul 2015 16:16:24 +0000 (09:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jul 2015 05:27:19 +0000 (22:27 -0700)
commit01faef2cebae02685e2bcfc9bbee8416d5ec19fc
treeef5142af1141fdb9fb574f21117e49368d905c82
parentfd36ef606ccf49c45bd7f71ea25007ace17968e3
mpls: make RTA_OIF optional

If user did not specify an oif, try and get it from the via address.
If failed to get device, return with -ENODEV.

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mpls/af_mpls.c