kernel: ar8216: move port vlan setup into a separate function