On error exit from ibv_resize_cq we should to check if the function is implemented. This commit was SVN r16799.