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)
commit26d31ac11fa47a0ee8dc4c64136ea34feda57e3e
tree2472181ae9570ec21f0bdcf12dc10da782eb172e
parentadeb45cbb5057731ce9c47aad93756135d7947bf
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