]> git.baikalelectronics.ru Git - kernel.git/commit
net: vrf: set operstate and mtu at link create
authorDavid Ahern <dsa@cumulusnetworks.com>
Thu, 2 Jun 2016 04:16:39 +0000 (21:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jun 2016 22:15:17 +0000 (18:15 -0400)
commit937177f3ff675917d333a22077fe326d7d62888a
tree3a41e76bcbc661afc7181c8d74a90a0fc6a23fe4
parent38b18109c00b2c9c52854e8eb29b27e85462231c
net: vrf: set operstate and mtu at link create

The VRF device exists to define L3 domains and guide FIB lookups. As
such its operstate is not relevant. Seeing 'state UNKNOWN' in the
output of 'ip link show' can be confusing, so set operstate at link
create.

Similarly, the MTU for a VRF device is not used; any fragmentation
of the payload is done on the output path based on the real egress
device. An MTU of 1500 on the VRF device while enslaved devices
have a higher MTU can lead to confusion. Since the VRF MTU is not
relevant set to 64k similar to what is done for loopback.

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