diff options
Diffstat (limited to 'drivers/infiniband/ulp/ipoib')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_cm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c b/drivers/infiniband/ulp/ipoib/ipoib_cm.c index c64249f7caed..472c632ee52c 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c | |||
@@ -759,9 +759,9 @@ static int ipoib_cm_rep_handler(struct ib_cm_id *cm_id, struct ib_cm_event *even | |||
759 | 759 | ||
760 | p->mtu = be32_to_cpu(data->mtu); | 760 | p->mtu = be32_to_cpu(data->mtu); |
761 | 761 | ||
762 | if (p->mtu < priv->dev->mtu + IPOIB_ENCAP_LEN) { | 762 | if (p->mtu <= IPOIB_ENCAP_LEN) { |
763 | ipoib_warn(priv, "Rejecting connection: mtu %d < device mtu %d + 4\n", | 763 | ipoib_warn(priv, "Rejecting connection: mtu %d <= %d\n", |
764 | p->mtu, priv->dev->mtu); | 764 | p->mtu, IPOIB_ENCAP_LEN); |
765 | return -EINVAL; | 765 | return -EINVAL; |
766 | } | 766 | } |
767 | 767 | ||