There are variants of the MII (GMII; RMII; SGMII; RGMII...) interface for connecting MACs to PHYs or MACs to MACs, in some of them there is a MAC or PHY role.
The RGMII interface is a dual data rate (DDR) interface that consists of a transmit path and a receive path. Both paths have an independent clock, 4 data signals and a control signal. This means that in RGMII there is no PHY or MAC role, so no special support is needed for MAC-to-MAC connection as it is the case, being both ends in RGMII mode is enough for the communication to be carried out.
The RGMII standard specifies that data and clock be output simultaneously (ie. without any skew on the clock) but for proper sampling of the data signals at the receiver side, the RGMII standard specifies that skew be added to the clock signal, either by the PCB traces, or internally by any of the MACs.
Despite existing 2 independent clock paths it's necessary that both clocks run at the same frequency, for example 25Mhz for a 100Mbps link, or 125Mhz for a 1000Mbps link.