diff options
author | Ram Amrani <Ram.Amrani@cavium.com> | 2017-04-30 11:49:08 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-01 18:42:14 +0300 |
commit | e015d58b44a93a3fd89ed910d68659dfdc57237c (patch) | |
tree | 776b5a7f9fb74e62df243b06de4966ff7446e9d7 /drivers/net/ethernet/qlogic/qed/qed_roce.h | |
parent | 105361943d3036f00f70a6621983b98673839591 (diff) | |
download | linux-e015d58b44a93a3fd89ed910d68659dfdc57237c.tar.xz |
qed: verify RoCE resource bitmaps are released
Add mechanism to verify RoCE resources are released prior to freeing the
bitmaps. If this is not the case, print what resources were not released.
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_roce.h')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_roce.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_roce.h b/drivers/net/ethernet/qlogic/qed/qed_roce.h index 3ccc08a7c995..9742af516183 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_roce.h +++ b/drivers/net/ethernet/qlogic/qed/qed_roce.h @@ -67,9 +67,11 @@ enum qed_rdma_toggle_bit { QED_RDMA_TOGGLE_BIT_SET = 1 }; +#define QED_RDMA_MAX_BMAP_NAME (10) struct qed_bmap { unsigned long *bitmap; u32 max_count; + char name[QED_RDMA_MAX_BMAP_NAME]; }; struct qed_rdma_info { |