]> git.baikalelectronics.ru Git - kernel.git/commit
net: vrf: Do not allow looback to be moved to a VRF
authorDavid Ahern <dsa@cumulusnetworks.com>
Wed, 26 Apr 2017 14:58:22 +0000 (07:58 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Apr 2017 20:49:43 +0000 (16:49 -0400)
commitac374a19e50fc46a6d1b67f098ef7e11c524c16f
tree2472181ae9570ec21f0bdcf12dc10da782eb172e
parentba7e0d63fb53b036706347b395d2eae41923e6eb
net: vrf: Do not allow looback to be moved to a VRF

Moving the loopback into a VRF breaks networking for the default VRF.
Since the VRF device is the loopback for VRF domains, there is no
reason to move the loopback. Given the repercussions, block attempts
to set lo into a VRF.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Reviewed-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vrf.c