net: hns3: refactor hns3_get_new_int_gl function