]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0ef468a1dfad8fe23cbad0cad539e55f98071744
treeef5142af1141fdb9fb574f21117e49368d905c82
parente0b352084b5d350110fe810f959858217818fb55
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