Roughly the border with Persia fluctuated around the Van area and there was also some swapping of Baghdad but it was mostly Ottoman. The Ottomans did eventually acknowledge that the Shia weren't heretics and Nader Shah forced them to allow them to travel to Mecca. So mostly peaceful-ish coexistence at the state level with some exceptions like Nader Shah who kicked them around a bit. Eventually both of them became far more concerned with the Russians than each other.