IB/rds: suppress incompatible protocol when version is known
Add an else to only print the incompatible protocol message when version hasn't been established. Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f2e9bd7032
commit
a49675988c
1 changed files with 5 additions and 6 deletions
|
@ -434,12 +434,11 @@ static u32 rds_ib_protocol_compatible(struct rdma_cm_event *event)
|
||||||
version = RDS_PROTOCOL_3_0;
|
version = RDS_PROTOCOL_3_0;
|
||||||
while ((common >>= 1) != 0)
|
while ((common >>= 1) != 0)
|
||||||
version++;
|
version++;
|
||||||
}
|
} else
|
||||||
printk_ratelimited(KERN_NOTICE "RDS: Connection from %pI4 using "
|
printk_ratelimited(KERN_NOTICE "RDS: Connection from %pI4 using incompatible protocol version %u.%u\n",
|
||||||
"incompatible protocol version %u.%u\n",
|
&dp->dp_saddr,
|
||||||
&dp->dp_saddr,
|
dp->dp_protocol_major,
|
||||||
dp->dp_protocol_major,
|
dp->dp_protocol_minor);
|
||||||
dp->dp_protocol_minor);
|
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue