/* MR destructor and constructor used in Reregister MR verb, sets all fields in ehca_mr_t to 0, except struct ib_mr and spinlock  */
void ehca_mr_deletenew(struct ehca_mr *mr)
/* MR destructor and constructor used in Reregister MR verb, sets all fields in ehca_mr_t to 0, except struct ib_mr and spinlock  */
void ehca_mr_deletenew(struct ehca_mr *mr)
{
	mr->flags = 0;
	mr->num_kpages = 0;
	mr->num_hwpages = 0;
	mr->acl = 0;
	mr->start = NULL;
	mr->fmr_page_size = 0;
	mr->fmr_max_pages = 0;
	mr->fmr_max_maps = 0;
	mr->fmr_map_cnt = 0;
	memset(&mr->ipz_mr_handle, 0, sizeof(mr->ipz_mr_handle));
	memset(&mr->galpas, 0, sizeof(mr->galpas));
}