generic: rtl8366: use smi->num_ports and smi->ops->get_vlan_4k