IB/ipoib: Set MTU to max allowed by mode when mode changes
authorErez Shitrit <erezsh@mellanox.com>
Sun, 7 Jun 2015 10:36:11 +0000 (13:36 +0300)
committerDoug Ledford <dledford@redhat.com>
Tue, 14 Jul 2015 17:20:13 +0000 (13:20 -0400)
commitedcd2a7474ba3b47e54c3c9a300287342de74766
tree8d3c0e536ea383c80a8ffb02c0e64815dd7a9059
parentc42687784b9a6b9733fee701ed236a5fe088fac4
IB/ipoib: Set MTU to max allowed by mode when mode changes

When switching between modes (datagram / connected) change the MTU
accordingly.
datagram mode up to 4K, connected mode up to (64K - 0x10).

Signed-off-by: ELi Cohen <eli@mellanox.com>
Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c