Hi
The IP address is the payload of Ethernet frames, so, it will be transparent for Layer 3 communication. The same way happens between switch and PC. The PC is somehow a layer 3 devices as well as it has IP address and routing table. But, the Macsec works just fine with PC and switches.