Hi Roland,

I have a question about ipoib_main.c::ipoib_change_mtu:

static int ipoib_change_mtu(struct net_device *dev, int new_mtu)
{
        struct ipoib_dev_priv *priv = netdev_priv(dev);

        if (new_mtu > IPOIB_PACKET_SIZE - IPOIB_ENCAP_LEN)
                return -EINVAL;

Shouldn't the new MTU be compared to the link MTU (minus the
encapsulation header length) rather than a hardcoded 2K ?

-- Hal

_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to