Your knees should be slightly bent. Locking your knees can cause reduced circulation and may lead to you becoming woozy or even passing out.
Your legs and pelvis should have ample ability to move and shift position without detracting from your driving. This will relieve pressure points and keep blood circulating during long drives. Staying in a cramped position for too long may lead to Deep Vein Thrombosis.