support 40G ethernet port

To support 40G ethernet port.
Support changing 40G port to 4 10G port.
Remove some inactive codes