For Stateful Switchover (SSO) to function correctly, the redundancy ports on both the primary and secondary controllers must be directly connected. This allows for the necessary state and configuration information to be synchronized between the two controllers, preventing the secondary controller from entering maintenance mode in the event of a failover.