The role of mixing in the large-scale ocean circulation