]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipoib: added an error message when trying to change mtu to 2K-4K
authorNoa Osherovich <noaos@mellanox.com>
Thu, 5 Dec 2013 08:24:55 +0000 (10:24 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 21:45:16 +0000 (14:45 -0700)
commit8faaa4d5a85e707196423277941370391b51a8eb
tree42230564caa7f7ecc418e0494986b3dc418ab1ac
parentb58f79751529935c5f2aa738ff230da0df5d0214
ipoib: added an error message when trying to change mtu to 2K-4K

Max mtu defined by IB is 4K, but mcast_mtu is limited to 2K,
so any request to change mtu to a value between 2K-4K didn't
change the mtu, but also didn't show an error message.
An error value (-EINVAL) is now returned and an ipoib_warn
is issued in such cases.

Signed-off-by: Noa Osherovich <noaos@mellanox.com>
(Ported from Mellanox OFED 2.4)

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c