diff options
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_cm.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_multicast.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c b/drivers/infiniband/ulp/ipoib/ipoib_cm.c index b4269139135..87f9f3ef3b2 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c | |||
@@ -1458,7 +1458,7 @@ static ssize_t set_mode(struct device *d, struct device_attribute *attr, | |||
1458 | if (priv->hca_caps & IB_DEVICE_UD_TSO) | 1458 | if (priv->hca_caps & IB_DEVICE_UD_TSO) |
1459 | dev->features |= NETIF_F_TSO; | 1459 | dev->features |= NETIF_F_TSO; |
1460 | } | 1460 | } |
1461 | dev->mtu = min(priv->mcast_mtu, dev->mtu); | 1461 | dev_set_mtu(dev, min(priv->mcast_mtu, dev->mtu)); |
1462 | rtnl_unlock(); | 1462 | rtnl_unlock(); |
1463 | ipoib_flush_paths(dev); | 1463 | ipoib_flush_paths(dev); |
1464 | 1464 | ||
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c index be1ed38cdcf..1fcc9a898d8 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c | |||
@@ -577,7 +577,7 @@ void ipoib_mcast_join_task(struct work_struct *work) | |||
577 | 577 | ||
578 | if (!ipoib_cm_admin_enabled(dev)) { | 578 | if (!ipoib_cm_admin_enabled(dev)) { |
579 | rtnl_lock(); | 579 | rtnl_lock(); |
580 | dev->mtu = min(priv->mcast_mtu, priv->admin_mtu); | 580 | dev_set_mtu(dev, min(priv->mcast_mtu, priv->admin_mtu)); |
581 | rtnl_unlock(); | 581 | rtnl_unlock(); |
582 | } | 582 | } |
583 | 583 | ||