Skip to content

Commit ad49bc6

Browse files
liuhangbindavem330
authored andcommitted
net: vrf: remove MTU limits for vrf device
Similiar to commit e94cd81 ("net: remove MTU limits for dummy and ifb device"), MTU is irrelevant for VRF device. We init it as 64K while limit it to [68, 1500] may make users feel confused. Reported-by: Jianlin Shi <jishi@redhat.com> Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Reviewed-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 18de100 commit ad49bc6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/vrf.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,9 @@ static void vrf_setup(struct net_device *dev)
12731273

12741274
/* default to no qdisc; user can add if desired */
12751275
dev->priv_flags |= IFF_NO_QUEUE;
1276+
1277+
dev->min_mtu = 0;
1278+
dev->max_mtu = 0;
12761279
}
12771280

12781281
static int vrf_validate(struct nlattr *tb[], struct nlattr *data[],

0 commit comments

Comments
 (0)