Pcie completion header and data advertising infinite credits

Hi,

Can anyone explain when there is no peer to peer communication supported by the pcie root complex the infinite credits are advertised and what happes in the root complex which supports the peer to peer communication in data link layer in the initialization time.

Also why the peer to peer communication is related to the completion header and data credits?

Thanks.