]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ipoib: When given an invalid UD MTU, give debug msg
authorFeras Daoud <ferasda@mellanox.com>
Wed, 28 Dec 2016 12:47:20 +0000 (14:47 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 12 Jan 2017 18:59:56 +0000 (13:59 -0500)
commit488fe042e688bb820043a811e470006a56c84c8e
tree1389be462641e028cbcdc72315c559a36feba2fd
parent59a6b603447b51ee9ee6d2f5d9741f2b50f2ce9c
IB/ipoib: When given an invalid UD MTU, give debug msg

In datagram mode, the IB UD (Unreliable Datagram) transport is used
so the MTU of the interface is equal to the IB L2 MTU minus the
IPoIB encapsulation header. Any request to change the MTU value
above the maximum range will change the MTU to the max allowed, but
will not show any warning message. An ipoib_warn is issued in such
cases, letting the user know that even though the value is legal,
it can't be currently applied.

Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Noa Osherovich <noaos@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c