Home
last modified time | relevance | path

Searched refs:region_12kb (Results 1 – 1 of 1) sorted by relevance

/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_atcam.c121 struct mlxsw_sp_acl_atcam_region_12kb *region_12kb; in mlxsw_sp_acl_atcam_region_12kb_init() local
129 region_12kb = kzalloc(sizeof(*region_12kb), GFP_KERNEL); in mlxsw_sp_acl_atcam_region_12kb_init()
130 if (!region_12kb) in mlxsw_sp_acl_atcam_region_12kb_init()
133 region_12kb->used_lkey_id = bitmap_zalloc(max_lkey_id, GFP_KERNEL); in mlxsw_sp_acl_atcam_region_12kb_init()
134 if (!region_12kb->used_lkey_id) { in mlxsw_sp_acl_atcam_region_12kb_init()
139 err = rhashtable_init(&region_12kb->lkey_ht, in mlxsw_sp_acl_atcam_region_12kb_init()
144 region_12kb->max_lkey_id = max_lkey_id; in mlxsw_sp_acl_atcam_region_12kb_init()
145 aregion->priv = region_12kb; in mlxsw_sp_acl_atcam_region_12kb_init()
150 bitmap_free(region_12kb->used_lkey_id); in mlxsw_sp_acl_atcam_region_12kb_init()
152 kfree(region_12kb); in mlxsw_sp_acl_atcam_region_12kb_init()
[all …]