diff options
| author | Parav Pandit <[email protected]> | 2018-07-29 11:53:15 +0300 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2018-07-30 20:49:04 -0600 |
| commit | 79d684f026473c344ce32708687f16b2bd12aff4 (patch) | |
| tree | 7aec2ef7fc481d434891a8f5c8271a99d71c6940 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | 7582df826734bad71522b442b8977e3dee63a77a (diff) | |
RDMA/core: Simplify gid type check in cma_acquire_dev()
cma_add_one() initializes the default GID regardless of device type.
listen_id is bound to a device and an IP address, its GID type is
initialized by cma_acquire_dev().
Therefore a valid default GID type is always available, it is not needed
to check port type during cma_acquire_dev().
Initialize gid type of a cm id when the cm_id is created instead of
doing conditional checks during cma_acquire_dev() and trying to
initialize to 0 during _cma_attach_to_dev().
Signed-off-by: Parav Pandit <[email protected]>
Reviewed-by: Daniel Jurgens <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions