net: allow gso_max_size to exceed 65536
[linux-2.6-microblaze.git] / drivers / scsi / fcoe / fcoe.c
index 44ca611..79b2827 100644 (file)
@@ -667,7 +667,7 @@ static void fcoe_netdev_features_change(struct fc_lport *lport,
 
        if (netdev->features & NETIF_F_FSO) {
                lport->seq_offload = 1;
-               lport->lso_max = netdev->gso_max_size;
+               lport->lso_max = min(netdev->gso_max_size, GSO_LEGACY_MAX_SIZE);
                FCOE_NETDEV_DBG(netdev, "Supports LSO for max len 0x%x\n",
                                lport->lso_max);
        } else {