Hardware Switching on CCR2004-16G-2S+

https://cdn.mikrotik.com/web-assets/product_files/CCR2004-16G-2S_240151.png
Switch Chip 88E6191X times 2 with 8 ports per switch, supports Bridge VLAN Filtering. No L3 Hardware Offloading.
https://help.mikrotik.com/docs/spaces/ROS/pages/15302988/Switch+Chip+Features
https://help.mikrotik.com/docs/spaces/ROS/pages/328068/Bridging+and+Switching#BridgingandSwitching-BridgeVLANFiltering
https://help.mikrotik.com/docs/spaces/ROS/pages/28606465/Bridge+VLAN+Table
Links above are suggested reading for your device. Forum VLAN tutorial follows.
http://forum.mikrotik.com/t/using-routeros-to-vlan-your-network/126489/1