diff options
author | Patrisious Haddad <phaddad@nvidia.com> | 2021-03-18 12:05:02 +0100 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-03-26 15:52:09 +0100 |
commit | 49695e95ceea08913e7355c9914a25ddffc504ba (patch) | |
tree | b6ca1e8ab6b02f5b43ca1ed8913f79d1b309f0f2 /drivers/infiniband/hw/mlx5/fs.c | |
parent | RDMA/bnxt_re: Move device to error state upon device crash (diff) | |
download | linux-49695e95ceea08913e7355c9914a25ddffc504ba.tar.xz linux-49695e95ceea08913e7355c9914a25ddffc504ba.zip |
RDMA/uverbs: Refactor rdma_counter_set_auto_mode and __counter_set_mode
Success is returned in the following flows:
* New mode is the same as the current one.
* Switched to new mode and there are no bound counters yet.
Link: https://lore.kernel.org/r/20210318110502.673676-1-leon@kernel.org
Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Reviewed-by: Mark Zhang <markzhang@nvidia.com>
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions