datapath: Calculate flow hash after extracting metadata.