IPoIB: Copy child MTU from parent
authorEli Cohen <eli@dev.mellanox.co.il>
Tue, 29 Apr 2008 20:46:53 +0000 (13:46 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 29 Apr 2008 20:46:53 +0000 (13:46 -0700)
commitb4132efa1a47858d741ecb05b8735e6fcb603bc8
tree7345487035fb8725d5f6d3edeaf23839eef1da7e
parentbaaad380c0aa955f7d62e846467316c94067f1a5
IPoIB: Copy child MTU from parent

When creating a child interface, copy the MTU information from the
parent.  Otherwise when the child's multicast join completes, the MTU
will not be updated since the code does

dev->mtu = min(priv->mcast_mtu, priv->admin_mtu);

and priv->admin_mtu will be set to 0.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_vlan.c