|
@@ -1240,6 +1240,7 @@ static struct net_device *ipoib_add_port(const char *format,
|
|
goto alloc_mem_failed;
|
|
goto alloc_mem_failed;
|
|
|
|
|
|
SET_NETDEV_DEV(priv->dev, hca->dma_device);
|
|
SET_NETDEV_DEV(priv->dev, hca->dma_device);
|
|
|
|
+ priv->dev->dev_id = port - 1;
|
|
|
|
|
|
if (!ib_query_port(hca, port, &attr))
|
|
if (!ib_query_port(hca, port, &attr))
|
|
priv->max_ib_mtu = ib_mtu_enum_to_int(attr.max_mtu);
|
|
priv->max_ib_mtu = ib_mtu_enum_to_int(attr.max_mtu);
|