]> git.karo-electronics.de Git - karo-tx-linux.git/commit
RDMA/core: Add the function ib_mtu_int_to_enum
authorAmrani, Ram <Ram.Amrani@cavium.com>
Mon, 26 Dec 2016 06:40:57 +0000 (08:40 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 24 Jan 2017 20:34:22 +0000 (15:34 -0500)
commitd3f4aadd614c4627244452ad64eaf351179f2c31
tree05b887462f77741d410c5ee31caabb0489d4ba6c
parentff89b070b7c98eb6782361310ca7a15186f15b2c
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>
drivers/infiniband/hw/cxgb3/iwch_provider.c
drivers/infiniband/hw/cxgb4/provider.c
drivers/infiniband/hw/i40iw/i40iw_verbs.c
drivers/infiniband/hw/nes/nes_verbs.c
include/rdma/ib_verbs.h