P2P: improve RX/TX flow control