commit | d3f4aadd614c4627244452ad64eaf351179f2c31 | [log] [tgz] |
---|---|---|
author | Amrani, Ram <Ram.Amrani@cavium.com> | Mon Dec 26 08:40:57 2016 +0200 |
committer | Doug Ledford <dledford@redhat.com> | Tue Jan 24 15:34:22 2017 -0500 |
tree | 05b887462f77741d410c5ee31caabb0489d4ba6c | |
parent | ff89b070b7c98eb6782361310ca7a15186f15b2c [diff] |
RDMA/core: Add the function ib_mtu_int_to_enum As the functionality to convert the MTU from a number to enum_ib_mtu is ubiquitous, define a dedicated function and remove the duplicated code. Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>