--- zzzz-none-000/linux-4.9.279/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c 2023-02-08 11:43:42.000000000 +0000 @@ -1107,10 +1107,6 @@ int ret; struct port_info *pi = netdev_priv(dev); - /* accommodate SACK */ - if (new_mtu < 81) - return -EINVAL; - ret = t4vf_set_rxmode(pi->adapter, pi->viid, new_mtu, -1, -1, -1, -1, true); if (!ret) @@ -2968,6 +2964,8 @@ netdev->features |= NETIF_F_HIGHDMA; netdev->priv_flags |= IFF_UNICAST_FLT; + netdev->min_mtu = 81; + netdev->max_mtu = ETH_MAX_MTU; netdev->netdev_ops = &cxgb4vf_netdev_ops; netdev->ethtool_ops = &cxgb4vf_ethtool_ops;