diff options
author | Junxian Huang <huangjunxian6@hisilicon.com> | 2023-10-17 20:52:38 +0800 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2023-10-19 09:49:40 +0300 |
commit | b4a797b894dc91a541ea230db6fa00cc74683bfd (patch) | |
tree | b5af2d1bfb27252d1ab357434a8678c0ab5074a8 /net/ieee802154 | |
parent | 27c5fd271d8b8730fc0bb1b6cae953ad7808a874 (diff) |
RDMA/hns: Fix unnecessary port_num transition in HW stats allocation
The num_ports capability of devices should be compared with the
number of port(i.e. the input param "port_num") but not the port
index(i.e. port_num - 1).
Fixes: 5a87279591a1 ("RDMA/hns: Support hns HW stats")
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://lore.kernel.org/r/20231017125239.164455-7-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'net/ieee802154')
0 files changed, 0 insertions, 0 deletions