If you are going long on a perpetual contract and its mark price is less than the index price, your order is a convergent order and will earn funding payment. Similarly, if you go short on a perpetual contract whose mark price is greater than the index price, your order is a convergent order and will earn a funding payment.