Luffy was unaware that Ace was the son of the Pirate King. In reality, he did not care much as technicalities never bother him. He considered Ace his brother. The same case was for Ace, and both cared deeply for each other.