[openib-general] IPoIB MTU Changing

Hal Rosenstock halr at voltaire.com
Thu Jun 9 05:48:10 PDT 2005


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




More information about the general mailing list