net: add vlan_get_protocol_and_depth() helper