Skip to content

Commit

Permalink
net: vrf: remove MTU limits for vrf device
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Hangbin Liu <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
liuhangbin authored and davem330 committed Feb 21, 2019
1 parent 18de100 commit ad49bc6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/vrf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,9 @@ static void vrf_setup(struct net_device *dev)

/* default to no qdisc; user can add if desired */
dev->priv_flags |= IFF_NO_QUEUE;

dev->min_mtu = 0;
dev->max_mtu = 0;
}

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

0 comments on commit ad49bc6

Please sign in to comment.