]> git.proxmox.com Git - mirror_iproute2.git/commit
rdma: Fix statistics bind/unbing argument handling
authorIdo Kalir <idok@nvidia.com>
Sun, 14 Feb 2021 08:33:35 +0000 (10:33 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 22 Feb 2021 18:52:39 +0000 (10:52 -0800)
commit675e2df632d0c8ad1bf936506e2090cdc83b2f7e
tree6501d1579e0d0bcce5ae45f432c61d85536c70c1
parent2741208502e6ba5158334ee903708dc825759466
rdma: Fix statistics bind/unbing argument handling

The dump isn't supported for the statistics bind/unbind commands
because they operate on specific QP counters. This is different
from query commands that can operate on many objects at the same
time.

Let's check the user input and ensure that arguments are valid.

Fixes: a6d0773ebecc ("rdma: Add stat manual mode support")
Signed-off-by: Ido Kalir <idok@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
rdma/rdma.h
rdma/stat.c
rdma/utils.c